Class: Tolk::ApplicationController

Inherits:
Object
  • Object
show all
Includes:
Pagination::Methods
Defined in:
app/controllers/tolk/application_controller.rb

Direct Known Subclasses

LocalesController, SearchesController

Instance Method Summary collapse

Methods included from Pagination::Methods

#pagination_method, #pagination_param

Instance Method Details

#authenticateObject



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

def authenticate
#      self.authenticator.bind(self).call if self.authenticator && self.authenticator.respond_to?(:call)
  instance_exec(nil, &self.authenticator) if self.authenticator && self.authenticator.respond_to?(:instance_exec)
end

#ensure_no_primary_localeObject



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