Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Do not need this comment

  • Loading branch information...
commit 9cf66e09c8239f6c0d8629ced71e79d1d2bccbea 1 parent 12778f1
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/simple_form/inputs/base.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.