end of train commit

This commit is contained in:
2015-09-16 18:10:23 +02:00
parent 6a085b1ca2
commit 8e931cabd4
7 changed files with 23 additions and 6 deletions
+2 -1
View File
@@ -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