Sha256: bde1027f972b503100e3b9306d013d2a556af4a2f7dafb802c1854efe1fe436e

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

module Authpds
  module Helpers
    module Institution
      module UrlHelper
        # Include institutional param helper
        include ParamHelper

        # Override Rails #url_for to add institution 
        def url_for(options={})
          if institution_param.present? and options.is_a? Hash
            options[institution_param_key] ||= institution_param
          end
          super options
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authpds-1.1.5 lib/authpds/helpers/institution/url_helper.rb
authpds-1.1.4 lib/authpds/helpers/institution/url_helper.rb
authpds-1.1.3 lib/authpds/helpers/institution/url_helper.rb