plug a missing site leak

This commit is contained in:
Kyle Drake 2014-12-26 22:56:55 -06:00
parent 1b3d7f7933
commit aefbc1ad30

View file

@ -10,6 +10,7 @@ end
get '/surf/:username' do |username|
@site = Site.select(:id, :username, :title, :domain, :views, :stripe_customer_id).where(username: username).first
not_found if @site.nil?
@title = @site.title
not_found if @site.nil?
erb :'surf', layout: false