spec/fixtures/topic.rb in will_paginate-3.0.5 vs spec/fixtures/topic.rb in will_paginate-3.0.6
- old
+ new
@@ -1,11 +1,8 @@
class Topic < ActiveRecord::Base
- has_many :replies, :dependent => :destroy, :order => 'replies.created_at DESC'
+ has_many :replies, :dependent => :destroy
belongs_to :project
scope :mentions_activerecord, lambda {
where(['topics.title LIKE ?', '%ActiveRecord%'])
- }
- scope :distinct, lambda {
- select("DISTINCT #{table_name}.*")
}
end