lib/gh/nested_resources.rb in gh-0.13.3 vs lib/gh/nested_resources.rb in gh-0.14.0

- old
+ new

@@ -6,10 +6,10 @@ wraps GH::Normalizer double_dispatch def modify_hash(hash, loaded = false) hash = super(hash) - link = hash['_links'].try(:[], 'self') unless loaded + link = hash['_links']['self'] unless loaded or hash['_links'].nil? set_links hash, Addressable::URI.parse(link['href']) if link hash end def add(hash, link, name, path = name)