Rails 3 includes translations globalize3 activerecord
You should enable eager loading of translations in the model. Recommended way to do this is:
class Category < ActiveRecord::Base
has_many :posts
translates :name # globalize3
default_scope includes(:translations)
end
Rails 4,5,6: Taking the answer from Michał Szajbe this still works with a slight modification:
class Category < ActiveRecord::Base
has_many :posts
translates :name
default_scope { includes(:translations) }
end