initialize instance variables
This commit is contained in:
parent
6054c092dc
commit
5ddb60f2b3
@ -1527,6 +1527,7 @@ def initialize(attributes = nil, options = {})
|
|||||||
@marked_for_destruction = false
|
@marked_for_destruction = false
|
||||||
@previously_changed = {}
|
@previously_changed = {}
|
||||||
@changed_attributes = {}
|
@changed_attributes = {}
|
||||||
|
@relation = nil
|
||||||
|
|
||||||
ensure_proper_type
|
ensure_proper_type
|
||||||
set_serialized_attributes
|
set_serialized_attributes
|
||||||
@ -1568,6 +1569,7 @@ def encode_with(coder)
|
|||||||
# post.title # => 'hello world'
|
# post.title # => 'hello world'
|
||||||
def init_with(coder)
|
def init_with(coder)
|
||||||
@attributes = coder['attributes']
|
@attributes = coder['attributes']
|
||||||
|
@relation = nil
|
||||||
|
|
||||||
set_serialized_attributes
|
set_serialized_attributes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user