Open
Description
At the moment the attribute select helper adds the empty prompt option if the attribute is blank. However blank?
is true
for false
, meaning that the prompt will still be shown if a boolean attribute has been set to the valid value of false
rather than its initial null
.
Should the ActionView line linked above instead be: if value != false && value.blank? && options[:prompt]
?