app/models/audit.rb in track_changes-1.0.0.pre2 vs app/models/audit.rb in track_changes-1.0.0.pre3

- old
+ new

@@ -29,11 +29,11 @@ belongs_to :user serialize :change_set, Hash scope :desc, :order => "audits.created_at DESC, audits.id DESC" - scope :recent, :order => "aduits.created_at DESC", :limit => 25 - scope :changees_on_attribute, lambda { |attr| + scope :recent, :order => "audits.created_at DESC", :limit => 25 + scope :changes_on_attribute, lambda { |attr| { :conditions => ["audits.change_set LIKE ?", "%#{attr}:%"]} } # Create an Audit given the <tt>model</tt>, <tt>change_set</tt> and <tt>user</tt>. def self.create_changes(model, change_set, user=nil)