Module: GenericFormFor::Helpers::ActionsHelper
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/actions_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/actions_helper.rb', line 6 def block @block end |
Instance Method Details
#actions(*args, &block) ⇒ Object
8 9 10 11 12 |
# File 'lib/generic_form_for/helpers/actions_helper.rb', line 8 def actions(*args, &block) self.args, self.block = [*args], block instance_exec &builder.actions_wrapper_proc "" end |