Sha256: 732f282cbebf4ce48b2e58db3a4b35fa286fee96c3adf0338251b07e6e55707e
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
module Authpds module Controllers module AuthpdsController module UrlHandling # Override Rails ActionController#url_for to add institution. def url_for(options={}) options[institution_param_key] ||= institution_param unless institution_param.nil? super options end # Controller method to generate the Appropriate redirect url def user_session_redirect_url(url) (url.nil? or url.empty?) ? (request.referer.nil?) ? root_url : request.referer : url end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authpds-0.2.2 | lib/authpds/controllers/authpds_controller/url_handling.rb |