Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 450

Show
Ignore:
Timestamp:
01/17/05 19:55:21 (4 years ago)
Author:
david
Message:

Added Inflector.humanize to turn attribute names like employee_salary into "Employee salary". Used by automated error reporting in AR.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/lib/core_ext/string/inflections.rb

    r442 r450  
    3232          Inflector.classify(self) 
    3333        end 
     34         
     35        def humanize 
     36          Inflector.humanize(self) 
     37        end 
    3438 
    3539        def foreign_key(separate_class_name_and_id_with_underscore = true)