diff options
| author | Sean Griffin <sean@thoughtbot.com> | 2014-10-28 17:00:47 -0600 | 
|---|---|---|
| committer | Sean Griffin <sean@thoughtbot.com> | 2014-10-28 17:00:47 -0600 | 
| commit | 4c248a0280f695c87757eacc8f30506cb6c1e90a (patch) | |
| tree | 5aeeaa82f13ba43558f2b62f3c5327dbeb9746db | |
| parent | fa7c004df124cbfdc919d5581c83a9c694a0100a (diff) | |
| download | rails-4c248a0280f695c87757eacc8f30506cb6c1e90a.tar.gz rails-4c248a0280f695c87757eacc8f30506cb6c1e90a.tar.bz2 rails-4c248a0280f695c87757eacc8f30506cb6c1e90a.zip  | |
Fix uninitialized ivar warning in tests
| -rw-r--r-- | activerecord/lib/active_record/attribute_methods.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb index f4a4e3f605..c797a11cec 100644 --- a/activerecord/lib/active_record/attribute_methods.rb +++ b/activerecord/lib/active_record/attribute_methods.rb @@ -90,7 +90,7 @@ module ActiveRecord        def undefine_attribute_methods # :nodoc:          generated_attribute_methods.synchronize do -          super if @attribute_methods_generated +          super if defined?(@attribute_methods_generated) && @attribute_methods_generated            @attribute_methods_generated = false          end        end  | 
