Sha256: 0e3654666085554b4e7d4cf95f615d68f73d4f96bf479e583163d3f3796e13df

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 Bytes

Contents

if Gem::Version.new(EffectiveDatatables::VERSION) < Gem::Version.new('3.0')
  module Effective
    module Datatables
      class Menus < Effective::Datatable
        datatable do
          table_column :id, visible: false
          table_column :updated_at, visible: false

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

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

Version data entries

7 entries across 7 versions & 1 rubygems

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