ripienaar / gdash

A dashboard for Graphite
http://www.devco.net/
Apache License 2.0
754 stars 117 forks source link

gdash should require 'sinatra/base' not 'sinatra' #46

Closed jashmenn closed 12 years ago

jashmenn commented 12 years ago

gdash.rb should require 'sinatra/base' not sinatra otherwise you get the sinatra DSL imported into Object. From the sinatra documentation:

Your file should require sinatra/base instead of sinatra; otherwise, all of Sinatra's DSL methods are imported into the main namespace.

See: http://www.sinatrarb.com/intro

jashmenn commented 12 years ago

Sorry, I'll change this to a pull request.