Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Small doc improvements

  • Loading branch information...
commit 73aa9da202ef83c87e90cf03e1c5009bc329a1ef 1 parent 081d6b3
@carlosantoniodasilva carlosantoniodasilva authored
View
4 lib/simple_form/components.rb
@@ -1,10 +1,10 @@
module SimpleForm
# Components are a special type of helpers that can work on their own.
# For example, by using a component, it will automatically change the
- # output under given circunstences without user input. For example,
+ # output under given circumstances without user input. For example,
# the disabled helper always need a :disabled => true option given
# to the input in order to be enabled. On the other hand, things like
- # hint can generate output automatically by doing I18n lookups.
+ # hints can generate output automatically by doing I18n lookups.
module Components
autoload :Errors, 'simple_form/components/errors'
autoload :Hints, 'simple_form/components/hints'
View
3  lib/simple_form/helpers/autofocus.rb
@@ -2,9 +2,10 @@ module SimpleForm
module Helpers
module Autofocus
private
+
def has_autofocus?
options[:autofocus] == true
end
end
end
-end
+end
View
4 lib/simple_form/helpers/required.rb
@@ -24,10 +24,10 @@ def required_by_default?
end
# Do not use has_required? because we want to add the class
- # regardless of the
+ # regardless of the required option.
def required_class
required_field? ? :required : :optional
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.