Sha256: 20ff41bca3acd9a5a1c0b1ba0e3ae0fec3dd3c4adb34cdde140a7e1ce18b455f

Contents?: true

Size: 336 Bytes

Versions: 11

Compression:

Stored size: 336 Bytes

Contents

module Authpds
  module Controllers
    module AuthpdsController
      module UrlHandling
        # 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

11 entries across 11 versions & 1 rubygems

Version Path
authpds-1.1.2 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-1.1.1 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-1.1.0 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-1.0.0 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.9 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.8 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.7 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.6 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.5 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.4 lib/authpds/controllers/authpds_controller/url_handling.rb
authpds-0.2.3 lib/authpds/controllers/authpds_controller/url_handling.rb