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?

1

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

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

@Igor,

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

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

0

请先登录再写评论。