Class: Mokio::CommonController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- ApplicationController
- BaseController
- Mokio::CommonController
- Includes:
- Mokio::Concerns::Controllers::Common
- Defined in:
- app/controllers/mokio/common_controller.rb
Overview
Creating simple actions for controllers, use in others with < Backend::CommonController
To override some actions just simply define them in your controller
If you need to add something more but still use CommonController remeber to call ‘super’ in your controller action ex: class Backend::SamplesController < Backend::CommonController
def index
super
my_additional_action
end
end
Remember that CommonController uses variable named as your controller For samples_controller variable is @sample
> See obj method in Common::Controller::Object lib
Direct Known Subclasses
ArticlesController, ContactsController, ContentsController, ExternalScriptsController, LangsController, MenusController, ModulePositionsController, MovGalleriesController, PicGalleriesController, StaticModulesController, SupportController, UsersController
Method Summary
Methods included from Mokio::Concerns::Controllers::Common
#additional_action_buttons, #additional_index_buttons, #ajax_collection, #copy, #create, #destroy, #edit, #index, #new, #render_additional_action_buttons, #render_additional_index_buttons, #update, #update_active
Methods included from Mokio::Concerns::Controllers::Base
#current_ability, #flash_to_headers, #prepare_locale, #redirect_back, #set_breadcrumbs_prefix