ruby on rails - Accessing Devise Config Variables -


in rails app, way access devise config variable directly view?

i want show config.allow_unconfirmed_access_for devise's :confirmable module. variable set in devise.rb initializer:

devise.setup   config.allow_unconfirmed_access_for = 3.days end 

thanks!

the configurations on devise.rb file replicated on devise model, if devise resource user, should able access through user.allow_unconfirmed_access_for.

so, create instance variable on controller , assign value it, , you'll able show on view.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -