Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added rdoc to the hook class

  • Loading branch information...
commit 374716250d86087c71a42bf48bd07a927bf88f8f 1 parent bec3c4c
@edavis10 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/google_analytics_hooks.rb
View
5 lib/google_analytics_hooks.rb
@@ -1,4 +1,9 @@
+# This class hooks into Redmine's View Listeners in order to
+# add content to the page
class GoogleAnalyticsHooks < Redmine::Hook::ViewListener
+
+ # Adds the Google Analytics code to the layout if the current user meets
+ # the conditions setup by the System Administrator
def view_layouts_base_body_bottom(context = { })
log_anon = Setting.plugin_google_analytics_plugin['google_analytics_log_anonymous']
log_auth = Setting.plugin_google_analytics_plugin['google_analytics_log_authenticated']
Please sign in to comment.
Something went wrong with that request. Please try again.