Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initialize instance variables

  • Loading branch information...
commit 0de56aac7f31df20b04fb3476e5e72dda9f82331 1 parent 3a14e6f
@tenderlove tenderlove authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  activerecord/lib/active_record/base.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.