public
Rubygem
Description: acts_as_revisable enables revision tracking, querying, reverting and branching of ActiveRecord models. Inspired by acts_as_versioned.
Clone URL: git://github.com/fatjam/acts_as_revisable.git
don't assume associations don't return nil
rich (author)
Thu Jul 17 09:22:47 -0700 2008
commit  30301e62c87b8f297350ca634c79eda576e935cb
tree    b5cfb2466e617651ee565246a6a755770551d764
parent  2f07f2c7f13cc4c2aff2495948dea0135925b434
...
2
3
4
5
 
6
7
8
...
2
3
4
 
5
6
7
8
0
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
0
   s.rdoc_options = ["--main", "README.rdoc"]
0
   s.summary = "acts_as_revisable enables revision tracking, querying, reverting and branching of ActiveRecord models. Inspired by acts_as_versioned."
0
   s.name = "acts_as_revisable"
0
- s.version = "0.9.2"
0
+ s.version = "0.9.3"
0
   s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
0
   s.email = "cavanaugh@fatjam.com"
0
   s.has_rdoc = true
...
164
165
166
167
 
168
169
170
 
 
 
171
172
173
...
164
165
166
 
167
168
169
 
170
171
172
173
174
175
0
@@ -164,10 +164,12 @@ module FatJam
0
                 if [:has_many, :has_one].member? assoc.macro
0
                   models << (assoc.options[:class_name] ? assoc.options[:class_name] : #{a.inspect}.to_s.singularize.camelize).constantize
0
                 end
0
-
0
+
0
                 begin
0
                   models.each {|m| m.scoped_model_enabled = false}
0
- #{a.to_s}_without_open_scope(*args, &block).reload
0
+ if associated = #{a.to_s}_without_open_scope(*args, &block)
0
+ associated.reload
0
+ end
0
                 ensure
0
                   models.each {|m| m.scoped_model_enabled = true}
0
                 end
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@ module FatJam #:nodoc:
0
     module VERSION #:nodoc:
0
       MAJOR = 0
0
       MINOR = 9
0
- TINY = 2
0
+ TINY = 3
0
 
0
       STRING = [MAJOR, MINOR, TINY].join('.')
0
     end

Comments

    No one has commented yet.