Sha256: d206f2c1fb1b5ee86470f31af05479109115373ef3720fb017d7d93d2fc21d9d
Contents?: true
Size: 705 Bytes
Versions: 5
Compression:
Stored size: 705 Bytes
Contents
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'
Version data entries
5 entries across 5 versions & 1 rubygems