Sha256: c9d8045f7634df96adbc159b94b9788481e39345b5488fa0b21d3108e980f91f

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

module Doorkeeper
  class Engine < Rails::Engine
    initializer "doorkeeper.routes" do
      Doorkeeper::Rails::Routes.warn_if_using_mount_method!
      Doorkeeper::Rails::Routes.install!
    end

    initializer "couchbase.add_design_documents", :before => "couchbase.upgrade_design_documents"  do
      ::Couchbase::Model::Configuration.design_documents_paths = [File.join(File.dirname(__FILE__), "models"), "app/models"]
    end
    
    initializer "doorkeeper.helpers" do

      ActiveSupport.on_load(:action_controller) do
        include Doorkeeper::Helpers::Filter
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 lib/doorkeeper/engine.rb