Module: Concerns::Model::User::Ranking::AddThingToUserList
- Defined in:
- lib/concerns/model/user/ranking.rb
Instance Method Summary collapse
- #<<(*args) ⇒ Object (also: #create)
Instance Method Details
#<<(*args) ⇒ Object Also known as: create
6 7 8 9 10 |
# File 'lib/concerns/model/user/ranking.rb', line 6 def << *args thing = args.first proxy_association.owner.user_list_items.create!(list: thing.class.list, thing: thing) self end |