Sha256: 0aa73ed96e2918d4f9c56ee05a17dcd6e38973504ecff6be8918a05f5bc7ba50

Contents?: true

Size: 336 Bytes

Versions: 20

Compression:

Stored size: 336 Bytes

Contents

# encoding: utf-8
class MagicLocales::BaseController < ApplicationController
  
  # => layout proc { |controller| controller.request.xhr? ? false : "application" }
  
  before_action :authenticate_visitor, except: [:change_locale]
  
  
  private

    # overwrite for authentication
    def authenticate_visitor
      true
    end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
magic_locales-0.0.20 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.19 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.18 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.17 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.17.beta2 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.17.beta1 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.16 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.15 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.14 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.13 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.12 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.11 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.10 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.9 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.8 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.7 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.6 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.5 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.4 lib/app/controllers/magic_locales/base_controller.rb
magic_locales-0.0.3 lib/app/controllers/magic_locales/base_controller.rb