twitter_database.rb 328 B

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