Method: Effective::Datatable#to_json
- Defined in:
- app/models/effective/datatable.rb
#to_json ⇒ Object
140 141 142 143 144 145 146 147 148 149 150 151 |
# File 'app/models/effective/datatable.rb', line 140 def to_json @json ||= ( { data: (compute || []), draw: (params[:draw] || 0), recordsTotal: (@total_records || 0), recordsFiltered: (@display_records || 0), aggregates: (@aggregates_data || []), charts: (@charts_data || {}) } ) end |