lib/integrity/helpers/forms.rb in foca-integrity-0.1.7 vs lib/integrity/helpers/forms.rb in foca-integrity-0.1.8

- old
+ new

@@ -10,10 +10,10 @@ object.errors.on(field).nil? ? "" : "with_errors" end def checkbox(name, condition, extras={}) attrs = { :name => name, :type => "checkbox", :value => "1" } - attrs.merge(condition ? { :checked => "checked" } : {}) + attrs.merge!(:checked => condition ? true : nil) attrs.merge(extras) end def notifier_form(notifier) haml(notifier.to_haml, :layout => :notifier, :locals => { \ No newline at end of file