Method: Effective::Resources::Klass#datatable_klass

Defined in:
app/models/effective/resources/klass.rb

#datatable_klassObject



9
10
11
12
13
14
15
16
17
18
# File 'app/models/effective/resources/klass.rb', line 9

def datatable_klass
  if defined?(EffectiveDatatables)
    "#{namespaced_class_name.pluralize}Datatable".safe_constantize ||
    "#{class_name.pluralize.camelize}Datatable".safe_constantize ||
    "#{name.pluralize.camelize}Datatable".safe_constantize ||
    "Effective::Datatables::#{namespaced_class_name.pluralize}".safe_constantize ||
    "Effective::Datatables::#{class_name.pluralize.camelize}".safe_constantize ||
    "Effective::Datatables::#{name.pluralize.camelize}".safe_constantize
  end
end