lib/pmp/parser.rb in pmp-0.3.2 vs lib/pmp/parser.rb in pmp-0.4.0

- old
+ new

@@ -13,11 +13,11 @@ result end def extract_attributes(obj=self) - obj.attributes.inject({}) do |result, pair| + obj.attributes_map.inject({}) do |result, pair| value = pair.last name = to_json_key_name(pair.first) result[name] = value result end @@ -69,10 +69,10 @@ end end end def parse_link(name, info) - if ['query', 'edit', 'navigation'].include?(name.to_s) + if ['query', 'edit', 'navigation', 'auth'].include?(name.to_s) parse_links_list(info) elsif !info.is_a?(Array) Link.new(info) else info.map{|l| Link.new(l)}