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