Sha256: d13726010d6b5e69212053f71216c4eff508f93177cb44babbdea5b3bd0056fa

Contents?: true

Size: 507 Bytes

Versions: 12

Compression:

Stored size: 507 Bytes

Contents

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

        table_column :id, :visible => false

        table_column :title
        table_column :slug
        table_column :draft

        table_column :actions, :sortable => false, :filter => false, :partial => '/admin/pages/actions'

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_pages-1.0.5 app/models/effective/datatables/pages.rb
effective_pages-1.0.4 app/models/effective/datatables/pages.rb
effective_pages-1.0.3 app/models/effective/datatables/pages.rb
effective_pages-1.0.2 app/models/effective/datatables/pages.rb
effective_pages-1.0.1 app/models/effective/datatables/pages.rb
effective_pages-1.0.0 app/models/effective/datatables/pages.rb
effective_pages-0.9.9 app/models/effective/datatables/pages.rb
effective_pages-0.9.8 app/models/effective/datatables/pages.rb
effective_pages-0.9.7 app/models/effective/datatables/pages.rb
effective_pages-0.9.6 app/models/effective/datatables/pages.rb
effective_pages-0.9.5 app/models/effective/datatables/pages.rb
effective_pages-0.9.4 app/models/effective/datatables/pages.rb