Flowdock
method

singular

Importance_1
v3.2.8 - Show latest stable - 0 notes - Class: ActiveModel::Naming
singular(record_or_class) public

Returns the singular class name of a record or class. Examples:

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