Module: Effective::EffectiveDatatable::Resource

Included in:
Datatable
Defined in:
app/models/effective/effective_datatable/resource.rb

Instance Method Summary collapse

Instance Method Details

#admin_namespace?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'app/models/effective/effective_datatable/resource.rb', line 5

def admin_namespace?
  controller_namespace == 'admin'
end

#controller_namespaceObject



9
10
11
# File 'app/models/effective/effective_datatable/resource.rb', line 9

def controller_namespace
  @attributes[:_n]
end