config/routes.rb in effective_datatables-3.6.3 vs config/routes.rb in effective_datatables-3.7.0
- old
+ new
@@ -1,9 +1,10 @@
-Rails.application.routes.draw do
- mount EffectiveDatatables::Engine => '/', :as => 'effective_datatables'
-end
-
EffectiveDatatables::Engine.routes.draw do
scope :module => 'effective' do
match 'datatables/:id(.:format)', to: 'datatables#show', via: [:get, :post], as: :datatable
+ match 'datatables/:id/reorder(.:format)', to: 'datatables#reorder', via: [:post], as: :reorder_datatable
end
+end
+
+Rails.application.routes.draw do
+ mount EffectiveDatatables::Engine => '/', :as => 'effective_datatables'
end