Class: Admin::GroupsController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::GroupsController
- Defined in:
- app/controllers/admin/groups_controller.rb
Instance Method Summary collapse
Instance Method Details
#load_model ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/admin/groups_controller.rb', line 15 def load_model self.model = if params[:id] model_class.find(params[:id]) else model_class.new(:parent_id => params[:parent_id]) end end |
#load_models ⇒ Object
11 12 13 |
# File 'app/controllers/admin/groups_controller.rb', line 11 def load_models self.models = paginated? ? model_class.paginate(pagination_parameters) : model_class.all end |
#show ⇒ Object
7 8 9 |
# File 'app/controllers/admin/groups_controller.rb', line 7 def show end |