Class: SolidusAdmin::CountriesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/solidus_admin/countries_controller.rb

Instance Method Summary collapse

Methods included from ComponentsHelper

#component

Instance Method Details

#statesObject



7
8
9
10
# File 'app/controllers/solidus_admin/countries_controller.rb', line 7

def states
  @states = Spree::State.where(country_id: params[:country_id])
  render json: @states.select(:id, :name)
end