Sha256: ec1e147433f30c8166806906f9c0f440e6ea7061b99bdcd569a2323db1850104

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

require 'devise_openid_authenticatable/controller'

if defined?(::Rails::Railtie)
  module DeviseOpenidAuthenticatable
    class Railtie < Rails::Railtie
      initializer "devise.openid_initialization" do |config|
        config.middleware.insert_before(Warden::Manager, Rack::OpenID)
      end
      
      initializer "devise_openid_authenticatable.controller" do
        ActionController::Base.send(:include, DeviseOpenidAuthenticatable::Controller)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise_openid_authenticatable-1.3.0 lib/devise_openid_authenticatable/railtie.rb
devise_openid_authenticatable-1.2.1 lib/devise_openid_authenticatable/railtie.rb
devise_openid_authenticatable-1.2.0 lib/devise_openid_authenticatable/railtie.rb
devise_openid_authenticatable-1.1.6 lib/devise_openid_authenticatable/railtie.rb
devise_openid_authenticatable-1.1.5 lib/devise_openid_authenticatable/railtie.rb