Module: TinyCore::Acts::Account::ClassMethods

Defined in:
lib/tiny_core/acts/account.rb

Instance Method Summary collapse

Instance Method Details

#from_param!(param) ⇒ Object



25
26
27
# File 'lib/tiny_core/acts/account.rb', line 25

def from_param!(param)
  find(param)
end

#paginate_for_list(filter, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/tiny_core/acts/account.rb', line 19

def paginate_for_list(filter, options = {})
  with_search_scope(filter) do
    paginate(options.merge(:order => 'accounts.name ASC'))
  end
end