mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
initialize instance variables
This commit is contained in:
@@ -1527,6 +1527,7 @@ MSG
|
||||
@marked_for_destruction = false
|
||||
@previously_changed = {}
|
||||
@changed_attributes = {}
|
||||
@relation = nil
|
||||
|
||||
ensure_proper_type
|
||||
set_serialized_attributes
|
||||
@@ -1568,6 +1569,7 @@ MSG
|
||||
# post.title # => 'hello world'
|
||||
def init_with(coder)
|
||||
@attributes = coder['attributes']
|
||||
@relation = nil
|
||||
|
||||
set_serialized_attributes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user