Fixing small issues.
This commit is contained in:
Родитель
895184115d
Коммит
347a66e3d4
|
@ -23,7 +23,7 @@ module OmniAuth
|
|||
# @param [Rack Application] app Standard Rack middleware argument.
|
||||
# @option options [String, 'LDAP Authentication'] :title A title for the authentication form.
|
||||
def initialize(app, title, options = {})
|
||||
super(app, @options.delete(:name) || :ldap, options.dup)
|
||||
super(app, options[:name] || :ldap, options.dup)
|
||||
@title = title
|
||||
@name_proc = (@options.delete(:name_proc) || Proc.new {|name| name})
|
||||
@adaptor = OmniAuth::Strategies::LDAP::Adaptor.new(options)
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
require 'omniauth/oauth'
|
||||
require 'multi_json'
|
||||
|
||||
module OmniAuth
|
||||
module Strategies
|
||||
class Foursquare < OAuth
|
||||
|
|
Загрузка…
Ссылка в новой задаче