Sha256: c664d3f44e31ac2b3afc5036bc7a998e12b2f62eaf4fa55dc76b099c742374ce

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

Spree::CheckoutController.class_eval do
  def permitted_source_attributes
    super.push(permitted_komoju_konbini_attributes)
    super.push(permitted_komoju_banktransfer_attributes)
    super.flatten
  end

  private

  def permitted_komoju_konbini_attributes
    :convenience
  end

  def permitted_komoju_banktransfer_attributes
    [:email, :phone, :family_name, :given_name, :family_name_kana, :given_name_kana]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_komoju-0.0.5 app/controllers/spree/checkout_controller_decorator.rb
spree_komoju-0.0.4 app/controllers/spree/checkout_controller_decorator.rb
spree_komoju-0.0.3 app/controllers/spree/checkout_controller_decorator.rb