initialize instance variables

This commit is contained in:
Aaron Patterson 2011-06-27 14:47:11 -07:00
parent 6054c092dc
commit 5ddb60f2b3

@ -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