Implement basic rendering

Woo actioncontroller
This commit is contained in:
Steve Klabnik
2014-07-09 17:52:31 -04:00
parent 45803f1aa1
commit 970b542549
6 changed files with 102 additions and 2 deletions

View File

@@ -6,10 +6,10 @@ module ActiveModel
@serializer = serializer
end
def to_json
def to_json(options={})
@serializer.attributes.each_with_object({}) do |(attr, value), h|
h[attr] = value
end.to_json
end.to_json # FIXME: why does passing options here cause {}?
end
end
end