module Omnisocial require 'omnisocial/service_config' # Twitter & Facebook app configs mattr_accessor :service_configs @@service_configs = {} def self.setup yield self end # config.twitter APP_KEY, APP_SECRET, :scope => ['foo', 'bar'] def self.twitter(app_key, app_secret, options = {}) @@service_configs[:twitter] = Omnisocial::ServiceConfig.new(app_key, app_secret, options) end def self.facebook(app_key, app_secret, options = {}) @@service_configs[:facebook] = Omnisocial::ServiceConfig.new(app_key, app_secret, options) end require 'omnisocial/engine' if defined?(Rails) && Rails::VERSION::MAJOR == 3 end require 'extensions/action_controller/base'