Flowdock
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.