Sha256: 89a897b349a084e423169d5a2da96776fd6d6fcdeef6bd2e73b5bb3b2d96ba54

Contents?: true

Size: 472 Bytes

Versions: 5

Compression:

Stored size: 472 Bytes

Contents

module SpreeMobility
  # The fact this logic is in a single module also helps to apply a custom
  # locale on the spree/api context since api base controller inherits from
  # MetalController instead of Spree::BaseController
  module ControllerMobilityHelper
    extend ActiveSupport::Concern

    included do
      prepend_before_action :mobility_fallbacks

      private

      def mobility_fallbacks
        SpreeMobility::Fallbacks.config!
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_mobility-1.4.0 app/controllers/concerns/spree_mobility/controller_mobility_helper.rb
spree_mobility-1.3.0 app/controllers/concerns/spree_mobility/controller_mobility_helper.rb
spree_mobility-1.2.0 app/controllers/concerns/spree_mobility/controller_mobility_helper.rb
spree_mobility-1.1.0 app/controllers/concerns/spree_mobility/controller_mobility_helper.rb
spree_mobility-1.0.0 app/controllers/concerns/spree_mobility/controller_mobility_helper.rb