title: Attributes translated with globalize gem do not work with search form
body: <p>I am using this <a href="https://github.com/globalize/globalize" rel="nofollow noreferrer">gem</a> to translate the attributes of my model</p>
  
  <p>This is my model:</p>
  
  <pre><code>class Category &lt; ActiveRecord::Base
    translates :name
  
    Globalize.fallbacks = {:es =&gt; [:es, :en, :pt], :en =&gt; [:en, :es, :pt], :pt =&gt; [:pt, :es, :en]}
    globalize_accessors
  end
  </code></pre>
  
  <p>I have a form with a search to search by name</p>
  
  <p>but this doesn't work for me because when I bring my data from my database by the model, I don't have my name attribute</p>
  
  <pre><code>  def fetch_categories
      I18n.locale = @language
  
      categories = Category.where(event_id: @event.id).order("#{sort_column} #{sort_direction}")
      categories = categories.page(page).per_page(per_page)
      if params[:search][:value].present?
        categories = categories.where("name like :search", search: "%#{params[:search][:value]}%")
      end
      categories
    end
  </code></pre>
  
  <p><code>categories</code> returns me</p>
  
  <pre><code>#&lt;ActiveRecord::Relation [#&lt;Category id: 1, client_id: 1, event_id: 1, color: "#265BBD"&gt;, #&lt;Category id: 2, client_id: 1, event_id: 1, color: "#E35274"&gt;]&gt;
  </code></pre>
  
  <p>How can I get the name attribute in my query?</p>
  
  <p>I have my <code>categories</code> and <code>category_translations</code> tables</p>