Sha256: 55d05d4c55e34e4f42559ee9fc31ad4687619c982929a750beac348c9818f464
Contents?: true
Size: 506 Bytes
Versions: 17
Compression:
Stored size: 506 Bytes
Contents
ActionView::Helpers::FormHelper.module_eval do def required_label(object_name, method, options = {}) options = {:class => "required"}.merge!(options) label(object_name, method, "#{label_humanize_text(method, options)} *", options) end def label_humanize_text method, options = {} object = options[:object] content ||= if object && object.class.respond_to?(:human_attribute_name) object.class.human_attribute_name(method) end content ||= method.humanize end end
Version data entries
17 entries across 17 versions & 1 rubygems