Sha256: 59e594d4e6d1db81b605cc9a90bae8d5b4e00edc8cba01202ea11d2ec4c7b6c2

Contents?: true

Size: 823 Bytes

Versions: 1

Compression:

Stored size: 823 Bytes

Contents

require "rails"
require "haml"
require "sassc-rails"
require "coffee-rails"
require "redcarpet"

require "garage/docs/anchor_building"
require "garage/docs/console_link_building"
require "garage/docs/renderer"
require "garage/docs/toc_renderer"
require "garage/docs/application"
require "garage/docs/document"
require "garage/docs/example"

module Garage
  module Docs
    class Engine < ::Rails::Engine
      isolate_namespace Garage::Docs

      initializer "garage.docs.engine.routes" do
        Engine.routes.append do
          root :to => 'resources#index', as: nil
          resources :resources do
            collection do
              get 'console'
              post 'authenticate'
              get 'callback'
              post 'callback'
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
the_garage-2.8.0 lib/garage/docs/engine.rb