Sha256: 5265475eae10004efec5b7f96f863376f40bad0e37842ab86f93d3dc27e3f1b9

Contents?: true

Size: 231 Bytes

Versions: 43

Compression:

Stored size: 231 Bytes

Contents

module Kadmin
  module FormTags
    class InvertedCheckBox < ActionView::Helpers::Tags::CheckBox
      # Overload how it gets the value and return the invert
      def value(*args)
        return !super
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
kadmin-1.3.0 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.2.1 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.2.0 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.1.1 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.1.0 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.9 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.8 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.7 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.6 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.5 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.4 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.3 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.2 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.1 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-1.0.0 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-0.9.5 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-0.9.4 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-0.8.0 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-0.7.5 app/components/kadmin/form_tags/inverted_check_box.rb
kadmin-0.7.4 app/components/kadmin/form_tags/inverted_check_box.rb