For a more "humanized" version (based on the first reply you can find here) consider the following method: it will return Test App
for your TestApp
application.
def app_name
Rails.application.class.parent_name
.underscore
.humanize
.split
.map(&:capitalize)
.join(' ')
end