Class: Optimacms::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ApplicationHelper
Defined in:
app/controllers/optimacms/application_controller.rb

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

Raises:

  • (ActionController::RoutingError)


14
15
16
# File 'app/controllers/optimacms/application_controller.rb', line 14

def not_found
  raise ActionController::RoutingError.new('Not Found')
end