From 02891677af5e884b4a7638aa1d98c9e1a24e5b70 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 30 Jan 2012 11:27:17 -0200 Subject: [PATCH] Update comments to reflect item_wrapper_tag functionality [ci skip] --- .../templates/config/initializers/simple_form.rb.tt | 6 ++++-- lib/simple_form.rb | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) 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 5f10a127a..6ea12bcf5 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 3955b976d..88297514e 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