Class: Cms::ToolbarController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- Cms::ToolbarController
- Defined in:
- app/controllers/cms/toolbar_controller.rb
Instance Method Summary collapse
Methods inherited from BaseController
Methods inherited from ApplicationController
Instance Method Details
#index ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/controllers/cms/toolbar_controller.rb', line 8 def index if params[:page_toolbar] != "0" @mode = params[:mode] = true end @page_version = params[:page_version] @page = Page.find(params[:page_id]).as_of_version(params[:page_version]) if params[:page_id] end |