Sha256: f83a1b0621f2ff8e508c487719e515cab65a106e560ff66f2ca835774af23f32

Contents?: true

Size: 438 Bytes

Versions: 7

Compression:

Stored size: 438 Bytes

Contents

class Admin::ShippingMethodsController < Admin::BaseController    
    resource_controller
    before_filter :load_data
    layout 'admin'
    
    update.response do |wants|
      wants.html { redirect_to collection_url }
    end
    
    
    create.response do |wants|
      wants.html { redirect_to collection_url }
    end
    
    private 
    def load_data     
      @available_zones = Zone.find :all, :order => :name
    end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
kdmny-spree-0.0.1 app/controllers/admin/shipping_methods_controller.rb
spree-0.8.4 app/controllers/admin/shipping_methods_controller.rb
spree-0.8.5 app/controllers/admin/shipping_methods_controller.rb
spree-0.8.0 app/controllers/admin/shipping_methods_controller.rb
spree-0.8.1 app/controllers/admin/shipping_methods_controller.rb
spree-0.8.2 app/controllers/admin/shipping_methods_controller.rb
spree-0.8.3 app/controllers/admin/shipping_methods_controller.rb