Skip to content

Commit

Permalink
Update comments to reflect item_wrapper_tag functionality
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
carlosantoniodasilva committed Jan 30, 2012
1 parent 12850f8 commit 0289167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -122,10 +122,12 @@ SimpleForm.setup do |config|
# You can define the class to use on all collection wrappers. Defaulting to none.
# config.collection_wrapper_class = nil

# You can wrap each item in a collection of radio/check boxes with a tag, defaulting to :span.
# You can wrap each item in a collection of radio/check boxes with a tag,
# defaulting to :span. Please note that when using :boolean_style = :nested,
# SimpleForm will force this option to be a label.
# config.item_wrapper_tag = :span

# You can define a clsas to use in all item wrappers. Defaulting to none.
# You can define a class to use in all item wrappers. Defaulting to none.
# config.item_wrapper_class = nil

# How the label text should be generated altogether with the required text.
Expand Down
4 changes: 3 additions & 1 deletion lib/simple_form.rb
Expand Up @@ -49,7 +49,9 @@ module SimpleForm
mattr_accessor :collection_wrapper_class
@@collection_wrapper_class = nil

# You can wrap each item in a collection of radio/check boxes with a tag, defaulting to none.
# You can wrap each item in a collection of radio/check boxes with a tag,
# defaulting to none. Please note that when using :boolean_style = :nested,
# SimpleForm will force this option to be a :label.
mattr_accessor :item_wrapper_tag
@@item_wrapper_tag = :span

Expand Down

0 comments on commit 0289167

Please sign in to comment.