1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Update comments to reflect item_wrapper_tag functionality

[ci skip]
This commit is contained in:
Carlos Antonio da Silva 2012-01-30 11:27:17 -02:00
parent 12850f848e
commit 02891677af
2 changed files with 7 additions and 3 deletions

View file

@ -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.

View file

@ -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