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

后端 未结 8 897
礼貌的吻别
礼貌的吻别 2020-12-23 13:28

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

8条回答
  •  礼貌的吻别
    2020-12-23 14:08

    You can find this in the config.ru file:

    run Dinosaur::Application
    

    or in the Rakefile:

    Dinosaur::Application.load_tasks
    

    The name prior to the "::" is the app name

提交回复
热议问题