Sha256: e59f649526a235dccd43b0f96f1eee63b57fc8489e5acea41b773fddfac3a1b9

Contents?: true

Size: 352 Bytes

Versions: 27

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

module SolidusNexio
  class BasePaymentController < ::Spree::Api::BaseController
    skip_before_action :authenticate_user

    before_action :payment_method

    private

    def payment_method
      @payment_method ||= ::Spree::PaymentMethod.active.available_to_users.find(params[:payment_method_id])
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
solidus_nexio-1.0.1 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-1.0.0 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.12 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.11 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.10 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.9 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.8 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.7 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.6 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.5 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.4 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.3 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.1 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.7.0 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.6.9 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.6.8 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.6.7 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.6.6 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.6.5 app/controllers/solidus_nexio/base_payment_controller.rb
solidus_nexio-0.6.4 app/controllers/solidus_nexio/base_payment_controller.rb