Sha256: 3633e10ef21b4701d892285242c3a4aad216ee801db86343ad30f2f37bcb6ad7
Contents?: true
Size: 559 Bytes
Versions: 2
Compression:
Stored size: 559 Bytes
Contents
require 'haml' require 'sinatra/base' require 'rails-idle/web_helpers' module RailsIdle class Web < Sinatra::Base set :root, File.expand_path(File.dirname(__FILE__) + "/../../web") set :public_folder, Proc.new { "#{root}/assets" } set :views, Proc.new { "#{root}/views" } helpers WebHelpers get '/' do RailsIdle.options[:collectors].each do |key| collector = RailsIdle::Collector.instance(key) @report = RailsIdle::Report.new(collector).prepare end haml :dashboard end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-idle-0.0.10 | lib/rails-idle/web.rb |
rails-idle-0.0.9 | lib/rails-idle/web.rb |