如何在Rails中访问初始化器文件中的变量

| 我正在使用Devise和Devise_RPX_Connectable(https://github.com/chrisdebruin/devise_rpx_connectable)(用户可以使用其Facebook帐户登录)。我在用着
rails -v 2.3.5 devise --version 1.0.8 devise_rpx_connectable --version 0.1.3
我的问题是如何访问控制器中的高级用户信息?具体来说,下面列出的内容在我的initializers目录的devise.rb文件中。
config.rpx_auto_create_account = true # false if you don\'t want to create users automaticaly. True by default. 
config.rpx_additional_user_data = [:verifiedEmail, :url, :providerName,:photo] # default [], get some extra profile info from RPXnow, default only a few fields are available in the rpx_user object (https://rpxnow.com/docs#profile_data) 
config.rpx_extended_user_data = true # false by default, extended data only available for Plus and Pro RPX users (https://rpxnow.com/docs#api_auth_info)
谢谢,     
已邀请:
        我检查了Devise源代码,看起来它们正在使用Rails的mattr_accessor方法,应该在Devise模块上公开公开它们。您应该能够像这样访问它们:
Devise.rpx_auto_create_account # returns true 
    

要回复问题请先登录注册