module Omniauth::Protect

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/omniauth/protect.rb, line 16
def self.config
  @config
end
configure() click to toggle source

Adds / to the paths

# File lib/omniauth/protect.rb, line 21
def self.configure
  raise ConfigException.new('message must be specified') if config[:message].empty?
  raise ConfigException.new('paths must be specified') if config[:paths].empty?

  config[:paths].each do |path|
    next if path[-1] == '/'

    config[:paths] << "#{path}/"
  end
end