How do I access the name of the Rails 3 application object?

Viewed 26256

I need to know the name of a programmers application from within a Rails 3 engine.

8 Answers

For Rails 6 and beyond

Rails.application.class.module_parent.name

More context:

Module#parent has been renamed to module_parent. parent is deprecated and will be removed in Rails 6.1.

Related