-
Returns a camelized string from a lower case and underscored string by replaceing slash with
double-colon and upper-casing each letter preceded by an underscore.
returns Camelized string.
-
Returns model class name for given database table.
returns Classified table name.
-
(string) demodulize ()
Browse code
Returns classname::module with classname:: stripped off.
returns Module name.
-
(strong) foreign_key (, )
Browse code
Returns classname in underscored form, with "_id" tacked on at the end.
This is for use in dealing with foreign keys in the database.
returns Foreign key
-
Returns a human-readable string from a lower case and underscored word by replacing underscores
with a space, and by upper-casing the initial characters.
returns Human-readable string.
-
Returns corresponding table name for given classname.
returns Name of the databse table for given class.
-
(string) underscore ()
Browse code
Returns an underscore-syntaxed version or the CamelCased string.
returns Underscored string.