oauth-xx/open_id_authentication

View on GitHub
lib/open_id_authentication.rb

Summary

Maintainability
A
0 mins
Test Coverage
# External Libraries
require "version_gem"

# This library
require_relative "open_id_authentication/version"
require_relative "open_id_authentication/middleware"
require_relative "open_id_authentication/controller_methods"
require_relative "open_id_authentication/railtie" if defined?(Rails::Railtie)

module OpenIdAuthentication
  # deprecated middleware creation
  def self.new(*args)
    raise "Use OpenIdAuthentication::Middleware"
  end

  def self.store
    Middleware.store
  end

  def self.store=(*args)
    Middleware.store = *args
  end
end

OpenIdAuthentication::Version.class_eval do
  extend VersionGem::Basic
end