spec/fixtures/developer.rb in will_paginate-3.0.4 vs spec/fixtures/developer.rb in will_paginate-3.0.5
- old
+ new
@@ -5,9 +5,11 @@
with_scope :find => { :conditions => ['salary <= ?', 80000], :order => 'salary' } do
yield
end
end
- scope :poor, :conditions => ['salary <= ?', 80000], :order => 'salary'
+ scope :poor, lambda {
+ where(['salary <= ?', 80000]).order('salary')
+ }
def self.per_page() 10 end
end