Sha256: 4b457f23d3699f8084ad7e3797390afc2284530b0e7bba7e6a6d1867070d853a

Contents?: true

Size: 235 Bytes

Versions: 4

Compression:

Stored size: 235 Bytes

Contents

module Formulaic
  module Inputs
    class BooleanInput < Input
      def fill
        if value
          check(input(model_name, field))
        else
          uncheck(input(model_name, field))
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
formulaic-0.0.6 lib/formulaic/inputs/boolean_input.rb
formulaic-0.0.5 lib/formulaic/inputs/boolean_input.rb
formulaic-0.0.4 lib/formulaic/inputs/boolean_input.rb
formulaic-0.0.3 lib/formulaic/inputs/boolean_input.rb