Class: Optimacms::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Optimacms::ApplicationController
- Includes:
- ApplicationHelper
- Defined in:
- app/controllers/optimacms/application_controller.rb
Direct Known Subclasses
Optimacms::Admin::AdminBaseController, DevController, ElfinderController, PageBaseController, PagesController, TinymceAssetsController
Instance Method Summary collapse
Methods included from ApplicationHelper
#block, #meta_tags, #method_missing, #site_page_path, #tinymce_editor_insert_block
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Optimacms::ApplicationHelper
Instance Method Details
#current_lang ⇒ Object
10 11 12 |
# File 'app/controllers/optimacms/application_controller.rb', line 10 def current_lang return I18n.locale end |
#not_found ⇒ Object
14 15 16 |
# File 'app/controllers/optimacms/application_controller.rb', line 14 def not_found raise ActionController::RoutingError.new('Not Found') end |