Sha256: 8104089ab04f3e6a4318210cbb73d77387b7773eaafa82dc2d5457f881d7a188
Contents?: true
Size: 928 Bytes
Versions: 5
Compression:
Stored size: 928 Bytes
Contents
require 'omnisocial' require 'rails' require 'action_controller' require 'omniauth/core' require 'omniauth/oauth' require 'bcrypt' module Omnisocial class Engine < Rails::Engine config.to_prepare do ApplicationController.helper(Omnisocial::AuthHelper) end initializer 'omnisocial.load_middleware', :after=> :load_config_initializers do if Omnisocial.service_configs[:twitter] config.app_middleware.use ::OmniAuth::Strategies::Twitter, Omnisocial.service_configs[:twitter].app_key, Omnisocial.service_configs[:twitter].app_secret end if Omnisocial.service_configs[:facebook] config.app_middleware.use ::OmniAuth::Strategies::Facebook, Omnisocial.service_configs[:facebook].app_key, Omnisocial.service_configs[:facebook].app_secret, Omnisocial.service_configs[:facebook].options end end end end
Version data entries
5 entries across 5 versions & 1 rubygems