Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #scope
- scope :sold, where(state: 'sold')
- default_scope where(state: 'available')
- #proc_object
- scope :sold, ->{ where(state: 'sold')}
- default_scope ->{ where(state: 'available')}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement