Sha256: aab4934f5623c32a426b179ae54411c4bdfa35050f8a72d0ce87170be0108473

Contents?: true

Size: 687 Bytes

Versions: 19

Compression:

Stored size: 687 Bytes

Contents

class Admin::GatewayConfigurationsController < Admin::BaseController
  resource_controller
  
  before_filter :load_data
    
  update.after do
    @gateway_configuration.gateway_option_values.clear
    if params[:option]
      params[:option].each do |key, value|
        GatewayOptionValue.create(:gateway_configuration => @gateway_configuration,
                                  :gateway_option_id => key,
                                  :value => value)
      end
    end
  end
  
  update.response do |wants|
    wants.html {redirect_to edit_object_url}
  end
    
  private
  
      def load_data
        @available_gateways = Gateway.find(:all, :order => :name)
      end  
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.9.4 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.9.3 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.9.2 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.9.1 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.9.0 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.8.4 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.8.5 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.4.1 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.4.0 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.5.0 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.6.0 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.5.1 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.7.1 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.7.0 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.8.0 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.8.1 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.8.2 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb
spree-0.8.3 vendor/extensions/payment_gateway/app/controllers/admin/gateway_configurations_controller.rb