config/routes.rb in cm-admin-2.3.4 vs config/routes.rb in cm-admin-2.4.0
- old
+ new
@@ -21,9 +21,13 @@
scope model.name.tableize do
send(:post, 'reset_sort_columns', to: "#{model.name.underscore}#reset_sort_columns", as: "#{model.name.underscore}_reset_sort_columns")
end
end
+ scope model.name.tableize do
+ send(:get, 'fetch_drawer', to: "#{model.name.underscore}#fetch_drawer", as: "cm_fetch_drawer_#{model.name.underscore}")
+ end
+
model.available_actions.sort_by { |act| act.name }.each do |act|
scope model.name.tableize do
# Define route only when action trail related field is present
if act.name == 'history'
send(:get, ':id/history', to: "#{model.name.underscore}#history", as: "#{model.name.underscore}_history")