Sha256: 9f142bebe5f99bbab3bfaf7b1095104a94e7cecfbfc8164b278156d642b614f3

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

module Kadmin
  module Forms
    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

1 entries across 1 versions & 1 rubygems

Version Path
kadmin-0.3.2 app/helpers/kadmin/forms/inverted_check_box.rb