Module: Effective::EffectiveDatatable::Resource
- Included in:
- Datatable
- Defined in:
- app/models/effective/effective_datatable/resource.rb
Constant Summary collapse
- AGGREGATE_SQL_FUNCTIONS =
['ARRAY_AGG(', 'AVG(', 'COUNT(', 'MAX(', 'MIN(', 'STRING_AGG(', 'SUM(']
Instance Method Summary collapse
Instance Method Details
#admin_namespace? ⇒ Boolean
6 7 8 |
# File 'app/models/effective/effective_datatable/resource.rb', line 6 def admin_namespace? controller_namespace == 'admin' end |
#controller_namespace ⇒ Object
10 11 12 |
# File 'app/models/effective/effective_datatable/resource.rb', line 10 def controller_namespace @attributes.key?(:namespace) ? @attributes[:namespace] : @attributes[:_n] end |