Sha256: 3a5d26d23ffc42af527e96171a47049feb7a3ca88e3c66f182cad2b3fa84437b
Contents?: true
Size: 575 Bytes
Versions: 4
Compression:
Stored size: 575 Bytes
Contents
module Tolk class ApplicationController < ActionController::Base include Tolk::Pagination::Methods helper :all protect_from_forgery cattr_accessor :authenticator before_action :authenticate 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 def ensure_no_primary_locale redirect_to tolk.locales_path if @locale.primary? end end end
Version data entries
4 entries across 4 versions & 1 rubygems