Module: TinyCore::Acts::Account::ActsMethods
- Defined in:
- lib/tiny_core/acts/account.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_account ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/tiny_core/acts/account.rb', line 5 def acts_as_account validates_presence_of :name has_many :user_accounts has_many :users, :through => :user_accounts named_scope :ordered_by_name, :order => 'name ASC' extend ClassMethods include InstanceMethods end |