Module: WithForm::TranslationHelpers

Included in:
ScopeForm
Defined in:
lib/with_form/translation_helpers.rb

Instance Method Summary collapse

Instance Method Details

#label(model_name, attribute) ⇒ Object



7
8
9
# File 'lib/with_form/translation_helpers.rb', line 7

def label(model_name, attribute)
  translate(attribute, scope: [:helpers, :label, model_name])
end

#submit(model_name, action = :submit) ⇒ Object



3
4
5
# File 'lib/with_form/translation_helpers.rb', line 3

def submit(model_name, action = :submit)
  translate(action, scope: [:helpers, :submit, model_name])
end