diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-27 14:47:11 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-27 14:47:11 -0700 |
commit | 5ddb60f2b35e67b500efbc2da0c752a64e36385b (patch) | |
tree | a0ad33e94bc9ad75453927d7094f7ce1399d0b6a /activerecord | |
parent | 6054c092dcebac126771bbc9cb6f2f1f8c37cbf1 (diff) | |
download | rails-5ddb60f2b35e67b500efbc2da0c752a64e36385b.tar.gz rails-5ddb60f2b35e67b500efbc2da0c752a64e36385b.tar.bz2 rails-5ddb60f2b35e67b500efbc2da0c752a64e36385b.zip |
initialize instance variables
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 6a5d282973..6106b03ba3 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1527,6 +1527,7 @@ MSG @marked_for_destruction = false @previously_changed = {} @changed_attributes = {} + @relation = nil ensure_proper_type set_serialized_attributes @@ -1568,6 +1569,7 @@ MSG # post.title # => 'hello world' def init_with(coder) @attributes = coder['attributes'] + @relation = nil set_serialized_attributes |