tab/app/grids/transactions_grid.rb
2015-09-10 00:35:59 +02:00

17 lines
249 B
Ruby

class TransactionsGrid
include Datagrid
scope do
Transaction
end
filter(:id, :integer)
filter(:created_at, :date, range: true)
column(:id)
column(:amount)
column(:created_at) do |model|
model.created_at.to_date
end
end