Sha256: d6f844db49eeb41ae365e4520ec7c395979a1f611eca6ced602bbc9bee752bf5
Contents?: true
Size: 266 Bytes
Versions: 3
Compression:
Stored size: 266 Bytes
Contents
class Restfulie::Common::Builder::Rules::Links < Array alias_method :old_delete, :delete def delete(item) item = item.to_s if item.kind_of?(Symbol) deleted = old_delete(item) deleted.nil? ? old_delete(find { |i| i.rel == item }) : deleted end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
restfulie-0.7.2 | lib/restfulie/common/builder/rules/links.rb |
restfulie-0.7.1 | lib/restfulie/common/builder/rules/links.rb |
restfulie-0.7.0 | lib/restfulie/common/builder/rules/links.rb |