Sha256: f7aaaa28248b672647f543020360878b1aeb2542a24c51a8c032d2d3e28f0a6a

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true
module GoodJob
  class BaseController < ActionController::Base # rubocop:disable Rails/ApplicationController
    protect_from_forgery with: :exception

    around_action :switch_locale

    private

    def switch_locale(&action)
      I18n.with_locale(:en, &action)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
good_job-2.6.2 engine/app/controllers/good_job/base_controller.rb
good_job-2.6.1 engine/app/controllers/good_job/base_controller.rb
good_job-2.6.0 engine/app/controllers/good_job/base_controller.rb
good_job-2.5.0 engine/app/controllers/good_job/base_controller.rb
good_job-2.4.2 engine/app/controllers/good_job/base_controller.rb
good_job-2.4.1 engine/app/controllers/good_job/base_controller.rb