Commit b21f0e5f60c093b1a98ff3dcf208811c1e77ce9b

Authored by Dan Croak
1 parent c0efd8ea

better management of google analytics gem

config/environment.rb
... ... @@ -27,10 +27,6 @@ Rails::Initializer.run do |config|
27 27 :source => "http://gems.github.com"
28 28 config.gem "right_aws",
29 29 :version => "1.10.0"
30   - config.gem "rubaidh-google_analytics",
31   - :lib => "rubaidh/google_analytics",
32   - :version => "1.1.4",
33   - :source => "http://gems.github.com"
34 30 config.gem "yfactorial-utility_scopes",
35 31 :lib => "utility_scopes",
36 32 :version => "0.2.2",
... ...
config/environments/production.rb
... ... @@ -17,5 +17,10 @@ config.action_controller.perform_caching = true
17 17 # Disable delivery errors, bad email addresses will be ignored
18 18 config.action_mailer.raise_delivery_errors = false
19 19  
  20 +config.gem "rubaidh-google_analytics",
  21 + :lib => "rubaidh/google_analytics",
  22 + :version => "1.1.4",
  23 + :source => "http://gems.github.com"
  24 +
20 25 HOST = "CHANGEME.heroku.com"
21 26  
... ...
config/initializers/google_analytics.rb
1   -require 'rubaidh/google_analytics'
2   -
3 1 if ENV['GOOGLE_ANALYTICS_TRACKER_ID']
4 2 Rubaidh::GoogleAnalytics.tracker_id = ENV['GOOGLE_ANALYTICS_TRACKER_ID']
5 3 end
... ...