Class: Optimacms::ApplicationController

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

Overview

class ApplicationController < ActionController::Base

Instance Method Summary collapse

Instance Method Details

#current_langObject


11
12
13
# File 'app/controllers/optimacms/application_controller.rb', line 11

def current_lang
  return I18n.locale
end

#not_foundObject

Raises:

  • (ActionController::RoutingError)

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

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