Sha256: 4215b30fba7ed301d27b98e532adc4a8f2dee9e3a011dd924956cad3e2002336

Contents?: true

Size: 553 Bytes

Versions: 3

Compression:

Stored size: 553 Bytes

Contents

if defined?(EffectiveDatatables)
  module Effective
    module Datatables
      class Pages < Effective::Datatable
        datatable do
          default_order :title, :asc
          default_entries :all

          table_column :id, visible: false
          table_column :updated_at, visible: false

          table_column :title
          table_column :slug
          table_column :draft

          actions_column partial: '/admin/pages/actions'
        end

        def collection
          Effective::Page.all
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_pages-1.1.3 app/models/effective/datatables/pages.rb
effective_pages-1.1.2 app/models/effective/datatables/pages.rb
effective_pages-1.1.1 app/models/effective/datatables/pages.rb