app/controllers/spree/admin/states_controller.rb in solidus_backend-1.2.3 vs app/controllers/spree/admin/states_controller.rb in solidus_backend-1.3.0.beta1
- old
+ new
@@ -5,25 +5,25 @@
before_action :load_data
def index
respond_with(@collection) do |format|
format.html
- format.js { render :partial => 'state_list' }
+ format.js { render partial: 'state_list' }
end
end
private
- def location_after_save
- admin_country_states_url(@country)
- end
+ def location_after_save
+ admin_country_states_url(@country)
+ end
- def collection
- super.order(:name)
- end
+ def collection
+ super.order(:name)
+ end
- def load_data
- @countries = Country.order(:name)
- end
+ def load_data
+ @countries = Country.order(:name)
+ end
end
end
end