twitter_database.rb 281 B

12345678910111213
  1. class TwitterDatabase < OmniAuth::Strategies::Twitter
  2. option :name, 'twitter'
  3. def initialize(app, *args, &block)
  4. # database lookup
  5. config = Setting.get('auth_twitter_credentials') || {}
  6. args[0] = config['key']
  7. args[1] = config['secret']
  8. super
  9. end
  10. end