Sha256: a95178c7b54a59a2f1c14aadddad45ba386ebd5b1bb469194fa29a06c707d512
Contents?: true
Size: 454 Bytes
Versions: 1
Compression:
Stored size: 454 Bytes
Contents
class SimpleReport include Datagrid scope do ::Entry.includes(:group) end filter(:group_id, :integer) filter(:category, :enum, :select => ["first", "second"]) filter(:disabled, :eboolean) filter(:confirmed, :boolean) filter(:name) do |value| self.scoped(:conditions => {:name => value}) end column(:group, :order => "groups.name") do |model| group.name end column(:name) def param_name :report end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datagrid-0.0.3 | spec/support/simple_report.rb |