Flowdock
method

singular

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::Naming
singular(record_or_class) public

Returns the singular class name of a record or class.

ActiveModel::Naming.singular(post)             # => "post"
ActiveModel::Naming.singular(Highrise::Person) # => "highrise_person"
Show source
Register or log in to add new notes.