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.7 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.6 app/controllers/admin/shipping_methods_controller.rb
apispree_core-0.0.0 app/controllers/admin/shipping_methods_controller.rb
My-Commerce_core-1.1.0 app/controllers/admin/shipping_methods_controller.rb
My-Commerce_core-1.0.0 app/controllers/admin/shipping_methods_controller.rb
MyCommerceapi-1.0.0 core/app/controllers/admin/shipping_methods_controller.rb
MyCommerce-0.0.3 core/app/controllers/admin/shipping_methods_controller.rb
rfcommerce_core-0.0.3 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.6 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.5 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.4 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.5 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.3 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.2 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.4 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.3 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.1 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.0 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.60.2 app/controllers/admin/shipping_methods_controller.rb
spree_core-0.70.0.rc2 app/controllers/admin/shipping_methods_controller.rb