I'm using the following scope in a Rails 3.2 application:
scope :consumable, lambda { where('expiration_date > ?', Date.today) }
What is the correct syntax to achieve the same in Rails 4 with Ruby 2.0?
I'm using the following scope in a Rails 3.2 application:
scope :consumable, lambda { where('expiration_date > ?', Date.today) }
What is the correct syntax to achieve the same in Rails 4 with Ruby 2.0?