Sha256: b789cae79bf0fd64c1a2a0fb751d55443151e3c8d757608c871cf36c737c56d1

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

module Workarea
  decorate Storefront::Users::LoginsController, with: :global_e do
    decorated { after_action :set_global_e_culture_code_cookie }

    private

      def set_global_e_culture_code_cookie
        return unless current_user&.global_e_culture_code.present?

        cookies["GlobalECultureCode"] = current_user.global_e_culture_code
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-global_e-1.3.0 app/controllers/workarea/storefront/users/logins_controller.decorator
workarea-global_e-1.2.1 app/controllers/workarea/storefront/users/logins_controller.decorator