Sha256: 6c6fe90dd90eef581b6133ceed23d18a64a74165b87ea00d3f4fad20c1bef28d
Contents?: true
Size: 498 Bytes
Versions: 10
Compression:
Stored size: 498 Bytes
Contents
class BaseGrid include Datagrid self.default_column_options = { # Uncomment to disable the default order # order: false, # Uncomment to make all columns HTML by default # html: true, } # Enable forbidden attributes protection # self.forbidden_attributes_protection = true def self.date_column(name, *args) column(name, *args) do |model| format(block_given? ? yield : model.send(name)) do |date| date.strftime("%m/%d/%Y") end end end end
Version data entries
10 entries across 10 versions & 1 rubygems