lib/travis/client/entity.rb in travis-1.6.17.travis.587.5 vs lib/travis/client/entity.rb in travis-1.6.17.travis.588.5

- old
+ new

@@ -70,9 +70,16 @@ relations << name define_method(name) { relation(name.to_s) } end end + def self.has_singleton(*list) + list.each do |name| + alias_method :"#{name}_id", :id unless method_defined? :"#{name}_id" + has(name) + end + end + def self.inspect_info(name) alias_method(:inspect_info, name) private(:inspect_info) end