Method: Inflections.tableize
- Defined in:
- lib/build/ExtendedString.rb
.tableize(class_name) ⇒ Object
Create 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.
310 311 312 |
# File 'lib/build/ExtendedString.rb', line 310 def tableize(class_name) pluralize(underscore(class_name)) end |