Sha256: fa848bd37ec918c050fcc3197206adb2e616354cf3e6a8c808d8208a0412df21
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
=begin gettext_rails/action_view/form_builder.rb - GetText for ActionView. Copyright (C) 2009 Masao Mutoh You may redistribute it and/or modify it under the same license terms as Ruby. Original: gettext/lib/rails.rb from Ruby-GetText-Package-1.93.0 $Id$ =end module ActionView #:nodoc: module Helpers #:nodoc: class FormBuilder include GetText def label_with_gettext(method, text = nil, options = {}) text ||= s_("#{@object.class}|#{method.to_s.humanize}") @template.label(@object_name, method, text, options.merge(:object => @object)) end alias_method_chain :label, :gettext end end end
Version data entries
6 entries across 6 versions & 1 rubygems