Sha256: 91fda5c5647bbef92d73c6c1330f12e2f627f19ca3989e51229dfc6ae71e7242

Contents?: true

Size: 345 Bytes

Versions: 24

Compression:

Stored size: 345 Bytes

Contents

class Admin::ShippingMethodsController < Admin::ResourceController
  before_filter :load_data, :except => [:index]

  private
  
  def location_after_save
    edit_admin_shipping_method_path(@shipping_method)
  end

  def load_data
    @available_zones = Zone.order(:name)
    @calculators = ShippingMethod.calculators.sort_by(&:name)
  end
end

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
spree_core-0.70.RC1 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.1 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.0 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.0.RC1 app/controllers/admin/shipping_methods_controller.rb