What is the difference between ->
and lambda
? Example:
scope :test, lambda {where(:name => "test")}
versus
scope :test, -> {where(:name => "test")}
What is the difference between ->
and lambda
? Example:
scope :test, lambda {where(:name => "test")}
versus
scope :test, -> {where(:name => "test")}