Ruby on Rails convert array into Relation object

scope :with_scope, -> { where(id: ARRAY_COLLECTION.map(&:id)) }

Поделиться с друзьями

Френдинг

 

Comments

No comments so far.

Leave a Reply

 
(will not be published)
 
 
Comment