如何访问 Rails 3 应用程序对象的名称? [英] How do I access the name of the Rails 3 application object?
本文介绍了如何访问 Rails 3 应用程序对象的名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要知道来自 Rails 3 引擎的程序员应用程序的名称.
I need to know the name of a programmers application from within a Rails 3 engine.
推荐答案
Rails.application.class.parent_name
这篇关于如何访问 Rails 3 应用程序对象的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文