diff --git a/lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt b/lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt index 5f10a127..6ea12bcf 100644 --- a/lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt +++ b/lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt @@ -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. diff --git a/lib/simple_form.rb b/lib/simple_form.rb index 3955b976..88297514 100644 --- a/lib/simple_form.rb +++ b/lib/simple_form.rb @@ -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