Skip to content

Commit

Permalink
Merge branch 'patch/case_insensitive_body'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Connell committed Apr 28, 2009
2 parents 1d0165d + 8e6f013 commit a884c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubaidh/google_analytics.rb
Expand Up @@ -18,9 +18,9 @@ def google_analytics_code
# (see http://www.google.com/support/googleanalytics/bin/answer.py?answer=55527&topic=11006)
def add_google_analytics_code
if GoogleAnalytics.defer_load
response.body.sub! '</body>', "#{google_analytics_code}</body>" if response.body.respond_to?(:sub!)
response.body.sub! /<\/[bB][oO][dD][yY]>/, "#{google_analytics_code}</body>" if response.body.respond_to?(:sub!)
else
response.body.sub! '<body>', "<body>#{google_analytics_code}" if response.body.respond_to?(:sub!)
response.body.sub! /<[bB][oO][dD][yY]>/, "<body>#{google_analytics_code}" if response.body.respond_to?(:sub!)
end
end
end
Expand Down

0 comments on commit a884c84

Please sign in to comment.