Class: Golden::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Golden::FormBuilder
- 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, = {}, &block) text ||= I18n.t("helpers.label.#{object.model_name.i18n_key}.#{method}") super(method, text, , &block) end |