GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Provides a history of attribute and association updates for models. This coincides with a versioning system (such as acts_as_versioned). When used in tandem, you get both a history of changes and a history of what changed.
Homepage: http://rubyforge.org/projects/ruby-shadow/
Clone URL: git://github.com/TheBreeze/shadow.git
Fixed infinite loop.
TheBreeze (author)
Tue Aug 12 13:19:22 -0700 2008
commit  ebbde5262650ea0d69a90a854348dfef209d820c
tree    046c9a69a0ec64dc026fa223ed2186bc34e83fb0
parent  84ad89725a2d6b725a6f8e433372094cfe68ce8f
...
115
116
117
118
 
119
120
121
...
115
116
117
 
118
119
120
121
0
@@ -115,7 +115,7 @@ module ActiveRecord
0
                 @record ||= if self.record_version.blank?
0
                   self.association.to_s.classify.constantize.find(self.record_id)
0
                 else
0
- self.record.versions.find_by_version(self.record_version)
0
+ self.association.to_s.classify.constantize.find(self.record_id).versions.find_by_version(self.record_version)
0
                 end
0
               end
0
             end

Comments

    No one has commented yet.