fix piwki loading [ci skip]

This commit is contained in:
Maxwell Salzberg 2012-05-23 11:03:02 -07:00
parent 348c5ac522
commit 980ec78b7b

View file

@ -6,6 +6,7 @@
if Rails.env == 'production'
Diaspora::Application.configure do
if AppConfig[:piwik_url].present?
require 'rack/piwik'
config.gem 'rack-piwik', :lib => 'rack/piwik'
config.middleware.use Rack::Piwik, :piwik_url => AppConfig[:piwik_url], :piwik_id => AppConfig[:piwik_id]
end