Class: Tolk::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Tolk::ApplicationController
show all
- Defined in:
- app/controllers/tolk/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#authenticate ⇒ Object
11
12
13
|
# File 'app/controllers/tolk/application_controller.rb', line 11
def authenticate
self.authenticator.bind(self).call if self.authenticator && self.authenticator.respond_to?(:call)
end
|
#ensure_no_primary_locale ⇒ Object
15
16
17
|
# File 'app/controllers/tolk/application_controller.rb', line 15
def ensure_no_primary_locale
redirect_to tolk.locales_path if @locale.primary?
end
|