module Admin::InheritedResource

Public Instance Methods

data_table() click to toggle source

This will call DataTable of the given resource.

# File app/controllers/concerns/admin/inherited_resource.rb, line 42
def data_table
  "#{resource_class.name.pluralize}Datatable".constantize.new(view_context)
end