Sha256: cba3d7a59f00f87c85bc73e75e84b3b755e307b28f5c3601563441d098c80800
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
# frozen_string_literal: true module Kingsman module OmniAuth # Note: scope is at the end of the method name for Jets whereas it is at the beginning for Rails module UrlHelpers def omniauth_authorize_path(resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_authorize_#{scope}_path", *args) end def omniauth_authorize_url(resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_authorize_#{scope}_url", *args) end def omniauth_callback_path(resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_callback_#{scope}_path", *args) end def omniauth_callback_url(resource_or_scope, provider, *args) scope = Kingsman::Mapping.find_scope!(resource_or_scope) _kingsman_route_context.send("#{provider}_omniauth_callback_#{scope}_url", *args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kingsman-0.1.1 | lib/kingsman/omniauth/url_helpers.rb |
kingsman-0.1.0 | lib/kingsman/omniauth/url_helpers.rb |