Sha256: 662998741e6a2be65d89d29bc1dd89212aece50d9a65e2825373828b86aeda81

Contents?: true

Size: 377 Bytes

Versions: 10

Compression:

Stored size: 377 Bytes

Contents

module Kadmin
  class FormBuilder < ActionView::Helpers::FormBuilder
    # Creates a checkbox where the value is 0 when checked, 1 when unchecked.
    # @see Kadmin::Forms::InvertedCheckBox
    def inverted_check_box(method, options = {})
      Kadmin::Forms::InvertedCheckBox.new(@object_name, method, @template, '0', '1', objectify_options(options)).render
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kadmin-0.3.1 app/helpers/kadmin/form_builder.rb
kadmin-0.3.0 app/helpers/kadmin/form_builder.rb
kadmin-0.2.8 app/helpers/kadmin/form_builder.rb
kadmin-0.2.7 app/helpers/kadmin/form_builder.rb
kadmin-0.2.6 app/helpers/kadmin/form_builder.rb
kadmin-0.2.3 app/helpers/kadmin/form_builder.rb
kadmin-0.2.2 app/helpers/kadmin/form_builder.rb
kadmin-0.1.7 app/helpers/kadmin/form_builder.rb
kadmin-0.1.6 app/helpers/kadmin/form_builder.rb
kadmin-0.1.4 app/helpers/kadmin/form_builder.rb