recurly/recurly-client-ruby — pull request #53 by trliner (2012-01-15 06:44:53+00:00)
Title: Fix issue in assigning non-readonly has_one relationships

This fixes a bug in assigning a has_one non-readonly relationship from an instance of the has_one association. Demonstrated below:

account = Recurly::Account.new
billing_info = Recurly::BillingInfo.send(:new)
account.billing_info = billing_info
#=> NameError: undefined local variable or method 'associated_class'