You can use
String#demodulize
Show archive.org snapshot
from ActiveSupport:
"ActiveRecord::CoreExtensions::String::Inflections".demodulize # => "Inflections"
"Inflections".demodulize # => "Inflections"
Posted by Henning Koch to makandra dev (2012-08-02 14:24)