method

demodulize

rails latest stable - Class: Inflector

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

demodulize(class_name_in_module)
public

Removes the module part from the expression in the string.

Examples:

  "ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections"
  "Inflections".demodulize                                       # => "Inflections"

1Note

correct link below

daslicious ยท Sep 23, 2014