Module: GenericFormFor::Helpers::ActionsHelper

Includes:
I18n
Included in:
FormBuilder
Defined in:
lib/generic_form_for/helpers/actions_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from I18n

#translate, #translate_action, #translate_hint, #translate_label, #translate_legend, #translate_placeholder

Instance Attribute Details

#argsObject

Returns the value of attribute args.



6
7
8
# File 'lib/generic_form_for/helpers/actions_helper.rb', line 6

def args
  @args
end

#blockObject

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