Class: Tolk::ApplicationController

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

Direct Known Subclasses

LocalesController, SearchesController

Instance Method Summary collapse

Instance Method Details

#authenticateObject



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_localeObject



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