Class: Golden::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/golden/action_view/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#label(method, text = nil, options = {}, &block) ⇒ Object



5
6
7
8
# File 'lib/golden/action_view/form_builder.rb', line 5

def label(method, text = nil, options = {}, &block)
  text ||= I18n.t("helpers.label.#{object.model_name.i18n_key}.#{method}")
  super(method, text, options, &block)
end