Sha256: 5a1c3d65ec0f18686ce40ac0dbf903e5ba716a465e4948b89cf48fdb65b2fd3d

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

class Spree::Admin::AuctionSettingsController < Spree::Admin::BaseController
  def edit
    @config = Spree::AuctionSettings::Config
  end

  def update
    config = Spree::AuctionSettings::Config

    params.each do |name, value|
      next unless config.has_preference? name
      config[name] = value
    end

    redirect_to edit_admin_auction_settings_path
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_auction-0.0.6 app/controllers/spree/admin/auction_settings_controller.rb
solidus_auction-0.0.5 app/controllers/spree/admin/auction_settings_controller.rb
solidus_auction-0.0.4 app/controllers/spree/admin/auction_settings_controller.rb
solidus_auction-0.0.3 app/controllers/spree/admin/auction_settings_controller.rb
solidus_auction-0.0.1 app/controllers/spree/admin/auction_settings_controller.rb