Sha256: 1df16457933bf45613e383a9a3eec2ed4d1711ed2601c89bd660aae8210d8f37

Contents?: true

Size: 159 Bytes

Versions: 9

Compression:

Stored size: 159 Bytes

Contents

class Datagrid::Filters::BooleanFilter < Datagrid::Filters::BaseFilter

  def format(value)
    [true, 1, "1", "true", "yes", "on"].include?(value)
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datagrid-0.3.3 lib/datagrid/filters/boolean_filter.rb
datagrid-0.3.2 lib/datagrid/filters/boolean_filter.rb
datagrid-0.3.1 lib/datagrid/filters/boolean_filter.rb
datagrid-0.3.0 lib/datagrid/filters/boolean_filter.rb
datagrid-0.2.0 lib/datagrid/filters/boolean_filter.rb
datagrid-0.1.2 lib/datagrid/filters/boolean_filter.rb
datagrid-0.1.1 lib/datagrid/filters/boolean_filter.rb
datagrid-0.1.0 lib/datagrid/filters/boolean_filter.rb
datagrid-0.0.3 lib/datagrid/filters/boolean_filter.rb