Sha256: c2f0c9ceeda381d3dcc5dad8bfa42a3f9efe04928b54846e2e765a90153fef04
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
QuoVadis.configure do |config| # # Redirection URLs # # The URL to redirect the user to after s/he signs in. # Use a proc if the URL depends on the user. E.g.: # # config.signed_in_url = Proc.new do |user| # user.admin? ? :admin : :root # end # # See also `:override_original_url`. config.signed_in_url = :root # Whether the `:signed_in_url` should override the URL the user was trying # to reach when they were made to authenticate. config.override_original_url = false # The URL to redirect the user to after s/he signs out. config.signed_out_url = :root # # Hooks # # Code to run when the user has signed in. E.g.: # # config.signed_in_hook = Proc.new do |user, request| # user.increment! :sign_in_count # assuming this attribute exists # end config.signed_in_hook = nil # Code to run when someone has tried but failed to sign in. E.g.: # # config.failed_sign_in_hook = Proc.new do |request| # logger.info "Failed sign in from #{request.remote_ip}" # end config.failed_sign_in_hook = nil # Code to run just before the user has signed out. E.g.: # # config.signed_out_hook = Proc.new do |user, request| # session.reset # end config.signed_out_hook = nil end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quo_vadis-1.0.0 | config/initializers/quo_vadis.rb |