How does one get a Rails 3 "app name"

From within a Rails 3 Gem I’m working on, I need to get the app’s
name. i.e., the value of the module that wraps the application class
in application.rb. Is there some global-syle variable that contains

module MyAppName
class Application < Rails::Application

Elliott G


Daniel Gaytán

2010/9/19 elliottg [email protected]

Thanks Daniel!

I need to sift through Rails.application in general it seems.

Elliott G

On Sep 19, 11:28 pm, Daniel Gaytán [email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs