Skip to content

Commit

Permalink
fix for :blank_space=>false
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffp committed May 22, 2010
1 parent 1ccd8eb commit cd69a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/enumerated_attribute/rails_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def to_enum_select_tag(options, html_options={})
if (value = self.object.__send__(method_name.to_sym))
options[:selected] ||= value.to_s
else
options[:include_blank] ||= true
options[:include_blank] = enums.allows_nil? if options[:include_blank].nil?
end
end
to_select_tag(choices, options, html_options)
Expand Down

0 comments on commit cd69a04

Please sign in to comment.