lib/roar/representer/xml.rb in roar-0.12.4 vs lib/roar/representer/xml.rb in roar-0.12.5
- old
+ new
@@ -37,10 +37,10 @@
module ClassMethods
include Representable::XML::ClassMethods
def links_definition_options
# FIXME: this doesn't belong into the generic XML representer.
- [:links_array, {:from => :link, :class => Feature::Hypermedia::Hyperlink, :collection => true, :extend => XML::HyperlinkRepresenter,
+ [:links_array, {:as => :link, :class => Feature::Hypermedia::Hyperlink, :collection => true, :extend => XML::HyperlinkRepresenter,
:decorator_scope => true}] # TODO: merge with JSON.
end
# Generic entry-point for parsing.
def deserialize(*args)