Sha256: 652ecb9a788dd6c3fcf37ebe39e5fa0570ee2f74ff16830544713d8398cbd726

Contents?: true

Size: 675 Bytes

Versions: 2

Compression:

Stored size: 675 Bytes

Contents

require "doorkeeper_hub/version"
require 'doorkeeper_hub/configurator'
require "doorkeeper_hub/saml"
require "doorkeeper_hub/helpers"
require 'doorkeeper_hub/engine' if defined?(::Rails) && Rails::VERSION::MAJOR > 4

module DoorkeeperHub
  def self.config
    @config ||= DoorkeeperHub::Configurator.new
  end

  def self.configure
    yield config
  end

  def self.devise_routes_scope
    user_model.to_s.downcase.pluralize.to_sym
  end

  def self.devise_scope
    user_model.to_s.downcase.to_sym
  end

  def self.user_model
    config.user_model
  end

  def self.token_name
    config.doorkeeper_token_name
  end

  def self.token_param
    :doorkeeper_token
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper_hub-0.1.7 lib/doorkeeper_hub.rb
doorkeeper_hub-0.1.6 lib/doorkeeper_hub.rb