lib/formulaic/inputs/boolean_input.rb in formulaic-0.0.6 vs lib/formulaic/inputs/boolean_input.rb in formulaic-0.1.0
- old
+ new
@@ -1,12 +1,12 @@
module Formulaic
module Inputs
class BooleanInput < Input
def fill
if value
- check(input(model_name, field))
+ check(label)
else
- uncheck(input(model_name, field))
+ uncheck(label)
end
end
end
end
end