Permalink
Browse files

initialize instance variables

  • Loading branch information...
tenderlove committed Jun 27, 2011
1 parent 3a14e6f commit 0de56aac7f31df20b04fb3476e5e72dda9f82331
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/lib/active_record/base.rb
@@ -1528,6 +1528,7 @@ def initialize(attributes = nil, options = {})
@marked_for_destruction = false
@previously_changed = {}
@changed_attributes = {}
+ @relation = nil
ensure_proper_type
set_serialized_attributes
@@ -1569,6 +1570,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 0de56aa

Please sign in to comment.