Sha256: 3a89e8dca978ce447363add58c2a9dd0142596848924a225712986eb1073fdb8

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

module Admin
  class EffectiveTracksDatatable < Effective::Datatable
    filters do
      filter_date_range

      scope :all
      scope :signed_in
      scope :signed_out
    end

    datatable do
      col :id, visible: false

      col :created_at

      col :action
      col :owner, label: 'Resource'
      col :user

      col :title
      col :details, visible: false
    end

    collection do
      Effective::Track.deep.all.where(created_at: date_range)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_logging-4.3.1 app/datatables/admin/effective_tracks_datatable.rb
effective_logging-4.3.0 app/datatables/admin/effective_tracks_datatable.rb