Sha256: 37035a9d9fdfde2227c440f4e39414d2cde4cc541c47c1179e70a650817d86f0

Contents?: true

Size: 460 Bytes

Versions: 12

Compression:

Stored size: 460 Bytes

Contents

module JqueryUiForm 
  module Inputs
    module BooleanInput
      
      def boolean_input(method, options = {})
        basic_input_helper(:check_box, :boolean, method, options)   
      end
      
      def check_box(method, options = {})
        checked_value = options.delete(:checked_value) || "1"
        unchecked_value = options.delete(:unchecked_value) || "0"
        super(method, options,checked_value, unchecked_value)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jquery-ui-form-0.2.4 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.2.3 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.2.2 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.2.1 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.2.0 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.6 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.5 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.4 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.3 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.2 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.1 lib/jquery_ui_form/inputs/boolean_input.rb
jquery-ui-form-0.1.0 lib/jquery_ui_form/inputs/boolean_input.rb