Sha256: a8a89c39b06d6c5cf5a7b1056a917a9c655e9a1f648dcd54c7301f1270786708

Contents?: true

Size: 457 Bytes

Versions: 7

Compression:

Stored size: 457 Bytes

Contents

unless Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
  class EffectivePagesDatatable < Effective::Datatable

    datatable do
      order :title, :asc
      length :all

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

      col :title
      col :slug
      col :draft

      actions_col partial: 'admin/pages/actions', partial_as: :page
    end

    collection do
      Effective::Page.all
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_pages-1.2.0 app/datatables/effective_pages_datatable.rb
effective_pages-1.1.9 app/datatables/effective_pages_datatable.rb
effective_pages-1.1.8 app/datatables/effective_pages_datatable.rb
effective_pages-1.1.7 app/datatables/effective_pages_datatable.rb
effective_pages-1.1.6 app/datatables/effective_pages_datatable.rb
effective_pages-1.1.5 app/datatables/effective_pages_datatable.rb
effective_pages-1.1.4 app/datatables/effective_pages_datatable.rb