Sha256: 81385cb425af2ce8a9827e177b1c1d1bb2ede9d118bef31e70a98f86ab5b340d

Contents?: true

Size: 344 Bytes

Versions: 9

Compression:

Stored size: 344 Bytes

Contents

module Spree
  class StatesController < Spree::StoreController
    ssl_allowed :index

    respond_to :js

    def index
      # we return ALL known information, since billing country isn't restricted
      # by shipping country
      respond_with @state_info = Spree::State.states_group_by_country_id.to_json, :layout => nil
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/controllers/spree/states_controller.rb
spree_core-1.3.4 app/controllers/spree/states_controller.rb
spree_core-1.3.3 app/controllers/spree/states_controller.rb
spree_core-1.3.2 app/controllers/spree/states_controller.rb
spree_core-1.3.1 app/controllers/spree/states_controller.rb
spree_core-1.3.0 app/controllers/spree/states_controller.rb
spree_core-1.3.0.rc2 app/controllers/spree/states_controller.rb
dup_spree_core-1.3.0.rc1 app/controllers/spree/states_controller.rb
spree_core-1.3.0.rc1 app/controllers/spree/states_controller.rb