Advertisement
AlexandrShadow

Untitled

Nov 20th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.12 KB | None | 0 0
  1. scope :value, ->(value) { value.each { |i| joins(:item_properties).where(item_properties: { property_value_id: i }) } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement