method
tableize
v6.1.7.7 -
Show latest stable
- Class:
ActiveSupport::Inflector
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"