lib/almodovar/resource_presenter/link.rb in almodovar-0.9.4 vs lib/almodovar/resource_presenter/link.rb in almodovar-0.9.5
- old
+ new
@@ -11,10 +11,10 @@
def to_xml(options = {})
XmlSerializer.new(self, options.merge(:skip_instruct => true)).to_xml
end
- def as_json(options)
+ def as_json(options = {})
JsonSerializer.new(self, options).as_json
end
def resource
resource_collection? ? resource_collection : single_resource