lib/groovehq/resource.rb in groovehq-1.0.5 vs lib/groovehq/resource.rb in groovehq-1.0.6

- old
+ new

@@ -18,10 +18,10 @@ @rels = parse_links(links) end def parse_links(links) (links || {}).each_with_object({}) do |(relation, value), result| - result[relation] = Relation.new(@client, value[:href]) + result[relation] = Relation.new(@client, value[:href]) if value[:href] end.with_indifferent_access end def method_missing(method_sym, *arguments, &block) if @data.respond_to?(method_sym)