end of train commit
This commit is contained in:
@@ -37,7 +37,7 @@ class Employee
|
||||
end
|
||||
end
|
||||
|
||||
def to_hash
|
||||
def object_attributes
|
||||
attributes.merge(settings.as_json).merge("id" => id)
|
||||
end
|
||||
|
||||
@@ -48,6 +48,7 @@ class Employee
|
||||
|
||||
def enrich_with_settings(settings)
|
||||
@settings = settings
|
||||
self
|
||||
end
|
||||
alias_method :settings=, :enrich_with_settings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user