Sha256: 8d65b9b83aef274ef5b355dcd0fd2ad0bc904c51ebedd30d288460fe861952d9
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
class DatatableCondStartWith < ComplexDatatable def view_columns super.deep_merge(first_name: { cond: :start_with }) end end class DatatableCondEndWith < ComplexDatatable def view_columns super.deep_merge(last_name: { cond: :end_with }) end end class DatatableCondNullValue < ComplexDatatable def view_columns super.deep_merge(email: { cond: :null_value }) end end class DatatableWithFormater < ComplexDatatable def view_columns super.deep_merge(last_name: { formater: -> (o) { o.upcase } }) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ajax-datatables-rails-0.4.2 | spec/support/datatable_cond_string.rb |
ajax-datatables-rails-0.4.1 | spec/support/datatable_cond_string.rb |