Sha256: 090b82459a12b2c25de87f4451f80434b7eeda01b25d2dfd93dfa0ebb3c72561
Contents?: true
Size: 278 Bytes
Versions: 55
Compression:
Stored size: 278 Bytes
Contents
module HasAccounts module ClassMethods def has_accounts(options = {}) class_eval <<-end_eval has_many :accounts, :as => 'holder' has_one :account, :as => 'holder' end_eval end end end ActiveRecord::Base.extend(HasAccounts::ClassMethods)
Version data entries
55 entries across 55 versions & 1 rubygems