Class: Tolk::ApplicationController
- Inherits:
-
Object
- Object
- 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
11
12
13
14
|
# File 'app/controllers/tolk/application_controller.rb', line 11
def authenticate
instance_exec(nil, &self.authenticator) if self.authenticator && self.authenticator.respond_to?(:instance_exec)
end
|
#ensure_no_primary_locale ⇒ Object
16
17
18
|
# File 'app/controllers/tolk/application_controller.rb', line 16
def ensure_no_primary_locale
redirect_to tolk.locales_path if @locale.primary?
end
|