Sha256: 09adf32510490d59f41c779d5be279d03547186a4fd8e065a2a8e36b702a216c

Contents?: true

Size: 502 Bytes

Versions: 5

Compression:

Stored size: 502 Bytes

Contents

# encoding: UTF-8
module Wice


  class ViewColumnBoolean < ViewColumnCustomDropdown #:nodoc:
    include ActionView::Helpers::FormOptionsHelper

    attr_accessor :boolean_filter_true_label, :boolean_filter_false_label

    def render_filter_internal(params) #:nodoc:
      @custom_filter = {
        @filter_all_label => nil,
        @boolean_filter_true_label  => 't',
        @boolean_filter_false_label => 'f'
      }

      @turn_off_select_toggling = true
      super(params)
    end
  end


end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wice_grid-3.2.0 lib/view_columns/view_column_boolean.rb
wice_grid-3.2.0.pre4 lib/view_columns/view_column_boolean.rb
wice_grid-3.2.0.pre3 lib/view_columns/view_column_boolean.rb
wice_grid-3.2.0.pre2 lib/view_columns/view_column_boolean.rb
wice_grid-3.2.0.pre1 lib/view_columns/view_column_boolean.rb