class Golden::FormBuilder

Public Instance Methods

label(method, text = nil, options = {}, &block) click to toggle source
Calls superclass method
# 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