Class: Konacha::Engine

Inherits:
Rails::Engine
  • Object
show all
Defined in:
lib/konacha/engine.rb

Class Method Summary collapse

Class Method Details

.application(app) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/konacha/engine.rb', line 5

def self.application(app)
  Rack::Builder.app do
    use Rack::ShowExceptions

    map app.config.assets.prefix do
      run app.assets
    end

    map "/" do
      run Konacha::Engine
    end
  end
end