lib/recurly/resource.rb in recurly-2.0.10 vs lib/recurly/resource.rb in recurly-2.0.11

- old
+ new

@@ -465,13 +465,13 @@ define_method("#{member_name}=") { |member| associated_uri = "#{path}/#{member_name}" self[member_name] = case member when Hash associated.send :new, member.merge(:uri => associated_uri) - when associated_class + when associated member.uri = associated_uri and member else - raise ArgumentError, "expected #{associated_class}" + raise ArgumentError, "expected #{associated}" end } define_method("build_#{member_name}") { |*args| attributes = args.shift || {} self[member_name] = associated.send(