lib/pr/fields/boolean_field.rb in pr-0.0.1 vs lib/pr/fields/boolean_field.rb in pr-0.0.2

- old
+ new

@@ -2,12 +2,13 @@ module Fields class BooleanField TrueValues = [1,"1","true",true] FalseValues = [0,"0","false",false, ""] - def initialize value = nil - @value = value + def initialize value = nil, options = {} + @value, @options = value, options end + attr_reader :options def populate value @value = value end