Sha256: fd3389db38d496927afc3a393a400e84035d811618990ecd95f2fb310baf5bea

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 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_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.3.0 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.2.0 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.6 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.5 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.4 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.3 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.2 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.1 app/datatables/admin/effective_polls_datatable.rb
effective_polls-0.1.0 app/datatables/admin/effective_polls_datatable.rb