标签: ruby lambda
->和lambda之间有什么区别?例如:
->
lambda
scope :test, lambda {where(:name => "test")}
与
scope :test, -> {where(:name => "test")}