title: How can I delegate to scope ? rails
body: <p>I have :</p>
  
  <pre><code>class UserItem &lt; ActiveRecord::Base
  
    belongs_to :user
    belongs_to :item
  
    scope :equipped, -&gt; { where(equipped: true) }
  end
  
  class Item &lt; ActiveRecord::Base
     has_many :user_items
     has_many :users, through: :user_items
  
     scope :armor, -&gt; { where(type: 'Armor') }
     delegate :equipped, to: :user_items
  
  end
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>If i try </p>
  
  <p><code>User.first.items.equipped</code> => <code>undefined method 'equipped' for #&lt;ActiveRecord::Associations::CollectionProxy []&gt;</code></p>
  
  <p><code>User.first.items.armor.equipped</code> => <code>undefined method 'equipped' for #&lt;ActiveRecord::AssociationRelation []&gt;</code></p>
  
  <p>How can I delegate to scope?</p>