ruby

时间:2016-07-31 11:20:35

标签: ruby lambda

->lambda之间有什么区别?例如:

scope :test, lambda {where(:name => "test")}

scope :test, -> {where(:name => "test")}

0 个答案:

没有答案