Sha256: 7b7be527f7ac30890efd40c1ee3bccaf1e4252a7d4dbddecc13aa13a1465ab5c

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 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

  def self.linked_in(app_key, app_secret, options ={})
    @@service_configs[:linked_in] = 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

1 entries across 1 versions & 1 rubygems

Version Path
elecnix-omnisocial-0.1.5 lib/omnisocial.rb