Module: HasAccounts::ClassMethods

Defined in:
lib/has_accounts/class_methods.rb

Instance Method Summary collapse

Instance Method Details

#has_accounts(_options = {}) ⇒ Object


3
4
5
6
7
8
# File 'lib/has_accounts/class_methods.rb', line 3

def has_accounts(_options = {})
  class_eval "has_many :accounts, :as => 'holder'\nhas_one :account, :as => 'holder'\n"
end