Module: Laris
- Defined in:
- lib/laris.rb,
lib/laris/autoloader.rb
Constant Summary collapse
- VERSION =
'0.0.0'
- Router =
Router.new
- AUTOLOAD_PATHS =
[ "app/models", "app/controllers", ]
Class Method Summary collapse
Class Method Details
.app ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/laris.rb', line 21 def self.app DBConnection.open app = Proc.new do |env| req = Rack::Request.new(env) res = Rack::Response.new Laris::Router.run(req, res) res.finish end Rack::Builder.new do use ExceptionViewer use AssetServer run app end end |