Sha256: e37d63969f43f0446874eafb66388343eaa61d6d1d0a2635c99ce53897f8f871

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

module DeviseG5Authenticatable
  # Routing helpers for G5 omniuath routes
  module UrlHelpers
    def g5_authorize_path(resource_or_scope, *args)
      scope = Devise::Mapping.find_scope!(resource_or_scope)
      _devise_route_context.send("#{scope}_g5_authorize_path", *args)
    end

    def g5_callback_path(resource_or_scope, *args)
      scope = Devise::Mapping.find_scope!(resource_or_scope)
      _devise_route_context.send("#{scope}_g5_callback_path", *args)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
devise_g5_authenticatable-1.0.3 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-1.0.2.rc.3 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-1.0.2.rc.2 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-1.0.2.rc.1 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-1.0.1.rc.1 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-1.0.0 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-1.0.0.pre.1 lib/devise_g5_authenticatable/controllers/url_helpers.rb