Permalink
Browse files

Small doc improvements

  • Loading branch information...
1 parent 081d6b3 commit 73aa9da202ef83c87e90cf03e1c5009bc329a1ef @carlosantoniodasilva carlosantoniodasilva committed Dec 10, 2011
Showing with 6 additions and 5 deletions.
  1. +2 −2 lib/simple_form/components.rb
  2. +2 −1 lib/simple_form/helpers/autofocus.rb
  3. +2 −2 lib/simple_form/helpers/required.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'
@@ -2,9 +2,10 @@ module SimpleForm
module Helpers
module Autofocus
private
+
def has_autofocus?
options[:autofocus] == true
end
end
end
-end
+end
@@ -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

0 comments on commit 73aa9da

Please sign in to comment.