title: Wrong number of arguments (given 2, expected 1) on Rails 5
body: <p>I'm upgrading the project from Rails 3 project to Rails 5. Today I've encountered the strange error for me.</p>
  
  <p>Now project is running on Rails 5. In project there are models <code>User</code> and <code>Article</code>. When I'm querying the <code>User</code> model, everything is fine:</p>
  
  <pre><code>User.all # returns all records 
  User.first # returns first record
  </code></pre>
  
  <p>But when I'm querying the <code>Article</code> model, the same error appears for every query:</p>
  
  <pre><code>Article.all # ArgumentError: wrong number of arguments (given 2, expected 1)
  Atricle.first # ArgumentError: wrong number of arguments (given 2, expected 1)
  </code></pre>
  
  <p>The project uses the <code>devise</code> gem, the <code>User</code> model was created by this gem, but the <code>Article</code> model is not.</p>
  
  <p>The question is how I can investigate this kind of problem? What approach should I use to find the source of error? </p>
  
  <p>P.S.</p>
  
  <pre><code>class Article &lt; ApplicationRecord
    extend FriendlyId
  
    belongs_to :user
  
    attr_accessor :active, :description, :meta_d, :meta_k, :photo, :short_desc, :title, :photo_cache, :article_category_id, :tag_list, :tag_ids
    attr_accessor :main_slider, :main_photo, :main_photo_cache
  
    friendly_id :title, use: :slugged
  
    acts_as_taggable
  
    def normalize_friendly_id(text)
      text.to_slug.normalize(transliterations: :russian).to_s
    end
  
    belongs_to :article_category
  end
  </code></pre>