Class: Tolk::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Tolk::ApplicationController
show all
- Includes:
- Pagination::Methods
- Defined in:
- app/controllers/tolk/application_controller.rb
Instance Method Summary
collapse
#pagination_method, #pagination_param
Instance Method Details
#authenticate ⇒ Object
14
15
16
17
|
# File 'app/controllers/tolk/application_controller.rb', line 14
def authenticate
instance_exec(nil, &self.authenticator) if self.authenticator && self.authenticator.respond_to?(:instance_exec)
end
|
#ensure_no_primary_locale ⇒ Object
19
20
21
|
# File 'app/controllers/tolk/application_controller.rb', line 19
def ensure_no_primary_locale
redirect_to tolk.locales_path if @locale.primary?
end
|