Flowdock
tableize(class_name) public

Creates the name of a table like Rails does for models to table names. This method uses the #pluralize method on the last word in the string.

tableize('RawScaledScorer') # => "raw_scaled_scorers"
tableize('ham_and_egg')     # => "ham_and_eggs"
tableize('fancyCategory')   # => "fancy_categories"
Show source
Register or log in to add new notes.