Permalink
Browse files

Do not need this comment

  • Loading branch information...
1 parent 12778f1 commit 9cf66e09c8239f6c0d8629ced71e79d1d2bccbea @rafaelfranca rafaelfranca committed Sep 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_form/inputs/base.rb
@@ -43,7 +43,7 @@ def initialize(builder, attribute_name, column, input_type, options = {})
@options = options
@required = calculate_required
@input_html_options = html_options_for(:input, input_html_classes).tap do |o|
- o[:required] = true if has_required? # Don't make this conditional on HTML5 here, because we want the CSS class to be set
+ o[:required] = true if has_required?
o[:disabled] = true if disabled?
o[:autofocus] = true if has_autofocus? && SimpleForm.html5
end

0 comments on commit 9cf66e0

Please sign in to comment.