Module: TinyCore::Acts::User::ClassMethods
- Defined in:
- lib/tiny_core/acts/user.rb
Instance Method Summary collapse
Instance Method Details
#from_param!(param) ⇒ Object
17 18 19 |
# File 'lib/tiny_core/acts/user.rb', line 17 def from_param!(param) find(param) end |
#paginate_for_list(filter, options = {}) ⇒ Object
21 22 23 24 25 |
# File 'lib/tiny_core/acts/user.rb', line 21 def paginate_for_list(filter, = {}) with_search_scope(filter) do paginate(.merge(:order => 'users.created_at DESC')) end end |