lib/cfoundry/v2/model.rb in cfoundry-0.3.5 vs lib/cfoundry/v2/model.rb in cfoundry-0.3.6

- old
+ new

@@ -49,10 +49,10 @@ def to_many(plural, opts = {}) singular = plural.to_s.sub(/s$/, "").to_sym object = opts[:as] || singular - plural_object = object.to_s.sub(/s$/, "").to_sym + plural_object = :"#{object}s" define_method(plural) { if manifest[:entity].key? plural manifest[:entity][plural].collect do |json| @client.send(:"make_#{object}", json)