Sha256: 14b1257d149a53214df0b486af5acf4eea30b4a4a39d89f8ca4f31346812a3f4

Contents?: true

Size: 385 Bytes

Versions: 5

Compression:

Stored size: 385 Bytes

Contents

module Doorkeepr
  module Rails
    class Engine < ::Rails::Engine
      isolate_namespace ::Doorkeepr::Rails
      config.after_initialize do |app|
        app.routes.prepend do
          mount Engine => Rails.mount_at.to_s, as: :doorkeepr
        end
        Rails.manager = Manager.new
        Rails.announce  Rails.default_service
        Rails.publish
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
doorkeepr-rails-0.1.4 lib/doorkeepr/rails/engine.rb
doorkeepr-rails-0.1.3 lib/doorkeepr/rails/engine.rb
doorkeepr-rails-0.1.2 lib/doorkeepr/rails/engine.rb
doorkeepr-rails-0.1.1 lib/doorkeepr/rails/engine.rb
doorkeepr-rails-0.1.0 lib/doorkeepr/rails/engine.rb