Sha256: 0b365d28971cc1a29a79055d593ffd4200da6b086e5ca00eed994909f6dfba25

Contents?: true

Size: 267 Bytes

Versions: 41

Compression:

Stored size: 267 Bytes

Contents

class <%= grid_class_name %>

  include Datagrid

  scope do
    <%= grid_model_name %>
  end

  filter(:id, :integer)
  filter(:created_at, :date, :range => true)

  column(:id)
  column(:name)
  column(:created_at) do |model|
    model.created_at.to_date
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
datagrid-1.5.5 templates/grid.rb.erb
datagrid-1.5.4 templates/grid.rb.erb
datagrid-1.5.3 templates/grid.rb.erb
datagrid-1.5.2 templates/grid.rb.erb
datagrid-1.5.1 templates/grid.rb.erb
datagrid-1.5.0 templates/grid.rb.erb
datagrid-1.4.4 templates/grid.rb.erb
datagrid-1.4.3 templates/grid.rb.erb
datagrid-1.4.2 templates/grid.rb.erb
datagrid-1.4.1 templates/grid.rb.erb
datagrid-1.4.0 templates/grid.rb.erb
datagrid-1.3.9 templates/grid.rb.erb
datagrid-1.3.7 templates/grid.rb.erb
datagrid-1.3.6 templates/grid.rb.erb
datagrid-1.3.5 templates/grid.rb.erb
datagrid-1.3.4 templates/grid.rb.erb
datagrid-1.3.3 templates/grid.rb.erb
datagrid-1.3.2 templates/grid.rb.erb
datagrid-1.3.1 templates/grid.rb.erb
datagrid-1.3.0 templates/grid.rb.erb