Sha256: 03f8c415f26c78781a265cf71d3bd9a2b6a08513a915742bcbe2402a0f881412

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

if defined?(EffectiveDatatables)
  module Effective
    module Datatables
      class Menus < Effective::Datatable
        datatable do
          table_column :id

          table_column :title
          actions_column partial: '/admin/menus/actions'
        end

        def collection
          Effective::Menu.all
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
effective_pages-1.1.0 app/models/effective/datatables/menus.rb
effective_pages-1.0.17 app/models/effective/datatables/menus.rb
effective_pages-1.0.16 app/models/effective/datatables/menus.rb
effective_pages-1.0.15 app/models/effective/datatables/menus.rb
effective_pages-1.0.14 app/models/effective/datatables/menus.rb