Sha256: 6af27e667780944f4689e57e34853b52ad3b77f52fc85d0597e984e3efe6f62f

Contents?: true

Size: 442 Bytes

Versions: 12

Compression:

Stored size: 442 Bytes

Contents

module DeviseG5Authenticatable
  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

12 entries across 12 versions & 1 rubygems

Version Path
devise_g5_authenticatable-0.3.0 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.5.beta lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.4 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.4.beta lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.3 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.2 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.1 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.2.0 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.1.3 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.1.2 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.1.1 lib/devise_g5_authenticatable/controllers/url_helpers.rb
devise_g5_authenticatable-0.1.0 lib/devise_g5_authenticatable/controllers/url_helpers.rb