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

Glib GIOChannel -

jsp - java.sql.SQLException: [Microsoft][ODBC Microsoft Access > Driver] Too few parameters. Expected 1 -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -