Module: GenericFormFor::Helpers::FieldsetHelper
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
Instance Method Summary collapse
Methods included from I18n
#translate, #translate_action, #translate_hint, #translate_label, #translate_legend, #translate_placeholder
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
6 7 8 |
# File 'lib/generic_form_for/helpers/fieldset_helper.rb', line 6 def args @args end |
#block ⇒ Object
Returns the value of attribute block.
6 7 8 |
# File 'lib/generic_form_for/helpers/fieldset_helper.rb', line 6 def block @block end |
Instance Method Details
#fieldset(*args, &block) ⇒ Object
8 9 10 11 12 |
# File 'lib/generic_form_for/helpers/fieldset_helper.rb', line 8 def fieldset(*args, &block) self.args, self.block = [*args], block instance_exec &builder.fieldset_wrapper_proc "" end |