Sha256: c4dc25e4f3159aecdeccd2b2cdcc971756270234d60817428e16c4f75622fb43
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
require 'haml' require 'omniauth/core' require 'omniauth/oauth' module Socialite class Engine < Rails::Engine isolate_namespace Socialite initializer 'socialite.load_middleware', :after => :load_config_initializers do if Socialite.service_configs[:twitter] middleware.use OmniAuth::Strategies::Twitter, Socialite.service_configs[:twitter].app_key, Socialite.service_configs[:twitter].app_secret end if Socialite.service_configs[:facebook] middleware.use OmniAuth::Strategies::Facebook, Socialite.service_configs[:facebook].app_key, Socialite.service_configs[:facebook].app_secret, Socialite.service_configs[:facebook].options end end ActiveSupport.on_load(:action_controller) do include Socialite::Controllers::Helpers end ActiveSupport.on_load(:action_view) do include Socialite::Helpers::Authentication end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.0.1.beta2 | lib/socialite/engine.rb |