Rails.application.class.parent Daniel Gaytán
2010/9/19 elliottg <[email protected]> > 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 > that? > > #application.rb > module MyAppName > class Application < Rails::Application > end > end > > Thanks. > Elliott G > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

