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