Sha256: 8769f34dcdbe4843ad166b17e1218da430cbe3758366e52b2bc374425d6428bf

Contents?: true

Size: 485 Bytes

Versions: 20

Compression:

Stored size: 485 Bytes

Contents

module KepplerLanguages
  class ApplicationController < ::ApplicationController
    protect_from_forgery with: :exception
    before_action :user_signed_in?
    before_action :set_languages

    def user_signed_in?
      return if current_user
      redirect_to main_app.new_user_session_path
    end

    def set_languages
      @languages = YAML.load_file(
        "#{Rails.root}/rockets/keppler_languages/config/locales.yml"
      ).values.each(&:symbolize_keys!)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
keppler-2.1.18 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.17 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.16 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.15 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.14 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.13 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.12 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.11 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.10 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.9 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.8 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.7 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.6 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.5 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.4 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.3 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.2 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.1 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1.pre.p1 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb
keppler-2.1 installer/core/rockets/keppler_languages/app/controllers/keppler_languages/application_controller.rb