lib/riveter/attributes.rb in riveter-0.0.9 vs lib/riveter/attributes.rb in riveter-0.0.10
- old
+ new
@@ -113,10 +113,9 @@
def attr_boolean(name, options={}, &block)
options = {
:validate => true
}.merge(options)
- required = options[:required] == true
converter = block_given? ? block : Converters.converter_for(:boolean)
attr_reader_with_converter name, converter
alias_method "#{name}?", name