Sha256: 47fbe8911bbc47aacee9befccf4a19bfce1a146ec177dbed4da619a815ecc12c
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 Bytes
Contents
require 'haml' require 'omniauth' require 'protected_attributes' if Rails.version =~ /^4/ module Socialite class Engine < ::Rails::Engine isolate_namespace Socialite config.generators do |g| g.test_framework :rspec, :fixture => false g.integration_tool :rspec g.fixture_replacement :factory_girl, :dir => 'spec/factories' g.assets false g.helper false end initializer 'socialite.load_middleware' do |app| app.middleware.use OmniAuth::Builder do Socialite.providers.each do |provider_info| provider(provider_info.first, *provider_info.last) end end end ActiveSupport.on_load(:action_controller) do include Socialite::Controllers::Helpers end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.1.2 | lib/socialite/engine.rb |
socialite-0.1.1 | lib/socialite/engine.rb |