Skip to content
Browse files

initialize instance variables

  • Loading branch information...
1 parent 6054c09 commit 5ddb60f2b35e67b500efbc2da0c752a64e36385b @tenderlove tenderlove committed Jun 27, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -1527,6 +1527,7 @@ def initialize(attributes = nil, options = {})
@marked_for_destruction = false
@previously_changed = {}
@changed_attributes = {}
+ @relation = nil
ensure_proper_type
set_serialized_attributes
@@ -1568,6 +1569,7 @@ def encode_with(coder)
# post.title # => 'hello world'
def init_with(coder)
@attributes = coder['attributes']
+ @relation = nil
set_serialized_attributes

0 comments on commit 5ddb60f

Please sign in to comment.
Something went wrong with that request. Please try again.