Sha256: 494ba05251724bbe483ff77939e3dcd6568935885aacf29546ef877bbe9d9fa4

Contents?: true

Size: 519 Bytes

Versions: 9

Compression:

Stored size: 519 Bytes

Contents

class Admin::EffectivePollsDatatable < Effective::Datatable
  filters do
    scope :all
    scope :upcoming
    scope :available
    scope :completed
  end

  datatable do
    order :start_at, :desc

    col :token, visible: false
    col :created_at, visible: false
    col :updated_at, visible: false

    col :title
    col :start_at
    col :end_at
    col :audience

    col :poll_notifications
    col :poll_questions, visible: false

    actions_col
  end

  collection do
    Effective::Poll.all.deep
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
effective_polls-0.5.6 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.5.5 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.5.4 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.5.3 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.5.2 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.5.1 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.5.0 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.4.1 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.4.0 app/datatables/admin/effective_polls_datatable.rb