lib/omniauth/strategies/oauth.rb in oa-oauth-0.0.1 vs lib/omniauth/strategies/oauth.rb in oa-oauth-0.0.4
- old
+ new
@@ -1,12 +1,14 @@
+require 'oauth'
+require 'omniauth/oauth'
+
module OmniAuth
module Strategies
class OAuth
include OmniAuth::Strategy
def initialize(app, name, consumer_key, consumer_secret, options = {})
- require 'oauth'
super
@consumer = ::OAuth::Consumer.new(consumer_key, consumer_secret, options)
end
attr_reader :name, :consumer
@@ -43,6 +45,6 @@
def unique_id
nil
end
end
end
-end
\ No newline at end of file
+end