Sha256: 039f3e7a31f35940359a528b74c458a0940a1d1282dcb6540c43f2b3e313f959

Contents?: true

Size: 523 Bytes

Versions: 14

Compression:

Stored size: 523 Bytes

Contents

class Admin::EffectivePollQuestionsDatatable < Effective::Datatable
  datatable do
    reorder :position

    col :updated_at, visible: false
    col :created_at, visible: false
    col :id, visible: false

    col :poll

    col :position do |poll_question|
      poll_question.position.to_i + 1
    end

    col :title
    col :body
    col :required

    col :category, label: 'Type'
    col :poll_question_options, label: 'Options'

    actions_col
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
effective_polls-0.5.0 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.4.1 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.4.0 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.3.0 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.2.0 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.6 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.5 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.4 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.3 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.2 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.1 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.1.0 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.0.2 app/datatables/admin/effective_poll_questions_datatable.rb
effective_polls-0.0.1 app/datatables/admin/effective_poll_questions_datatable.rb