spec/fixtures/reply.rb in will_paginate-3.0.4 vs spec/fixtures/reply.rb in will_paginate-3.0.5

- old
+ new

@@ -1,9 +1,10 @@ class Reply < ActiveRecord::Base belongs_to :topic, :include => [:replies] - scope :recent, - :conditions => ['replies.created_at > ?', 15.minutes.ago], - :order => 'replies.created_at DESC' + scope :recent, lambda { + where(['replies.created_at > ?', 15.minutes.ago]). + order('replies.created_at DESC') + } validates_presence_of :content end