config/routes.rb in lolita-3.4.3 vs config/routes.rb in lolita-4.0.0
- old
+ new
@@ -1,6 +1,6 @@
-Rails.application.routes.draw do
- match '/lolita' => "lolita/info#index"
- match '/lolita/info/properties' => "lolita/info#properties"
- match "/lolita/array_field/:name/:field_class/:class/:id" => "lolita/field_data#array_polymorphic", :as => "array_field_data_collector"
- match "/lolita/autocomplete_field/:field_class/:field_name" => "lolita/field_data#autocomplete_field", :as => "autocomplete_field"
-end
+Rails.application.routes.draw do
+ match '/lolita' => "lolita/info#index", via: [:get]
+ match '/lolita/info/properties' => "lolita/info#properties", via: [:get]
+ match "/lolita/array_field/:name/:field_class/:class/:id" => "lolita/field_data#array_polymorphic", :as => "array_field_data_collector", via: [:get]
+ match "/lolita/autocomplete_field/:field_class/:field_name" => "lolita/field_data#autocomplete_field", :as => "autocomplete_field", via: [:get]
+end