We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc8a9f commit af0c2efCopy full SHA for af0c2ef
app/helpers/effective_datatables_helper.rb
@@ -62,5 +62,13 @@ def datatable_widths(datatable)
62
datatable.table_columns.values.map { |options| {'sWidth' => options[:width]} if options[:width] }.to_json()
63
end
64
65
+ def datatables_admin_path?
66
+ (attributes[:admin_path] || request.referer.downcase.include?('/admin/')) rescue false
67
+ end
68
+
69
+ # TODO: Improve on this
70
+ def datatables_active_admin_path?
71
+ attributes[:active_admin_path] rescue false
72
73
74
0 commit comments