Sha256: c57aa4373032b72362cf0327f3c27296c23553b248ef2a6c8d634a26f3a19dac

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 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?) ? (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.1 lib/authpds/controllers/authpds_controller/url_handling.rb