Rails.application.secrets and Rails.configuration.x references

Rails.application.secrets and Rails.configuration.x variables are not resolved properly, and cause my code to be littered with warnings. Is there a setting somewhere to fix this? Is this a known bug?

3 comments
Comment actions Permalink

Hello, Benjamin,

sorry for the delay. Could you please specify where the file you're editing is located? What extension does it have and what rails version do you use? 

0
Comment actions Permalink

I have the same problem with Rails.configuration.x.* variables, which are not recognized by RubyMine (see attached screenshots). 

Rails.configuration.x are custom configuration settings, see here: http://guides.rubyonrails.org/v4.2/configuring.html#custom-configuration

Custom property is defined in config/environments/*.rb with: config.x.... = "some value", and can be used everywhere in a rails application with: Rails.configuration.x....

I use Rails 4.2 and RubyMine 2016.3



 

0
Comment actions Permalink

@Igor,

I've submitted the corresponding request to our tracker, please vote for it:

https://youtrack.jetbrains.com/issue/RUBY-19053

0

Please sign in to leave a comment.