search for: primaryaccountus

Displaying 1 result from an estimated 1 matches for "primaryaccountus".

Did you mean: primary_accounts
2008 Jul 16
2
belongs_to causing endless loop on first call to save!
...Record::Base belongs_to :account #normal bidirectional association ... class CreditCard < PaymentMethod ... In the controller tier, I have a session object that--on the final step--loads an Account model object based on the current session state, and then calls save! on that model: class PrimaryAccountUser < User attr_reader :credit_card def initialize(service_id) @credit_card = {} #hash for storing credit card attributes end def persist_to_database add_session_data_to_account(PrimaryAccount.new) account.save! @id = account.id return account end private de...