singular(record_or_class)
Class Public methods
Returns the singular class name of a record or class.
ActiveModel::Naming.singular(post) # => "post" ActiveModel::Naming.singular(Highrise::Person) # => "highrise_person"
Returns the singular class name of a record or class.
ActiveModel::Naming.singular(post) # => "post" ActiveModel::Naming.singular(Highrise::Person) # => "highrise_person"
Please login to continue.