audit_rails 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NTQxMGI5NzJmZmMxZTNmMGUwNTlmZDlmOTM2NzExMmViODM2YTIwYw==
5
+ data.tar.gz: !binary |-
6
+ ZGU1NzEzOTU3YzQ4MDI1MmJiYmVhNzBiNWJjNGQyZmQ2ZTY1NjU4Mw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NWM0ZTdjZTk1YzYwN2MxODM3ZTY4YjA5ODA0ZjAyYmJjOWUwNjRjNzZlZDhk
10
+ OGJhNDIwNzJlM2U4Mjc3YzkxOTdmYjc0YTJjNTljOWZlNTZiOTQ3NDEwNjNl
11
+ OTE4Yzc3MmFkZDExY2E5YjNjYzFjZGVkZTRhNTM5MDUwNDBiY2Y=
12
+ data.tar.gz: !binary |-
13
+ OTQxMGQwYWZkODdjZmQ5ZTk0NzM5MzExNGZjZWRiMmE2YTMxZTYwZGY2ZDQ3
14
+ MzIwYjEwMjBjMzkwYzcwNDg5NzA3Nzk1NmJjYzhhZWE1NTcwODQ0OWJhYTc2
15
+ ZDNlYWRlMTExZGU2ODc0ZGQ2YmRhMGZkYmNmNDQ1ZTg2ZDdlY2I=
@@ -1,10 +1,19 @@
1
1
  = AuditRails
2
+ {<img src="https://badge.fury.io/rb/audit_rails.png" alt="Gem Version" />}[http://badge.fury.io/rb/audit_rails]
3
+
2
4
  An action based auditor, which has internal as well as outgoing link tracking.
3
5
 
6
+ Now also has analytics(charts) for User counts
7
+
4
8
  It is inspired from many great audit gems in rails community that audits model and I was looking for a gem which can audit based on actions as well as can audit link tracking. This gem just serve this purpose.
5
9
 
10
+ Roughly it is doing similar to what Omniture does, but has very minimum features for now.
11
+
12
+ = Build Status
13
+ {<img src="https://travis-ci.org/gouravtiwari/audit_rails.png" />}[https://travis-ci.org/gouravtiwari/audit_rails]
14
+
6
15
  = Pre-requisites:
7
- For rails 3.1.x and ruby 1.9.3:
16
+ For rails 3.x.x and ruby>1.9.2:
8
17
 
9
18
  gem install audit_rails
10
19
 
@@ -0,0 +1,39 @@
1
+ var Chart=function(s){function v(a,c,b){a=A((a-c.graphMin)/(c.steps*c.stepValue),1,0);return b*c.steps*a}function x(a,c,b,e){function h(){g+=f;var k=a.animation?A(d(g),null,0):1;e.clearRect(0,0,q,u);a.scaleOverlay?(b(k),c()):(c(),b(k));if(1>=g)D(h);else if("function"==typeof a.onAnimationComplete)a.onAnimationComplete()}var f=a.animation?1/A(a.animationSteps,Number.MAX_VALUE,1):1,d=B[a.animationEasing],g=a.animation?0:1;"function"!==typeof c&&(c=function(){});D(h)}function C(a,c,b,e,h,f){var d;a=
2
+ Math.floor(Math.log(e-h)/Math.LN10);h=Math.floor(h/(1*Math.pow(10,a)))*Math.pow(10,a);e=Math.ceil(e/(1*Math.pow(10,a)))*Math.pow(10,a)-h;a=Math.pow(10,a);for(d=Math.round(e/a);d<b||d>c;)a=d<b?a/2:2*a,d=Math.round(e/a);c=[];z(f,c,d,h,a);return{steps:d,stepValue:a,graphMin:h,labels:c}}function z(a,c,b,e,h){if(a)for(var f=1;f<b+1;f++)c.push(E(a,{value:(e+h*f).toFixed(0!=h%1?h.toString().split(".")[1].length:0)}))}function A(a,c,b){return!isNaN(parseFloat(c))&&isFinite(c)&&a>c?c:!isNaN(parseFloat(b))&&
3
+ isFinite(b)&&a<b?b:a}function y(a,c){var b={},e;for(e in a)b[e]=a[e];for(e in c)b[e]=c[e];return b}function E(a,c){var b=!/\W/.test(a)?F[a]=F[a]||E(document.getElementById(a).innerHTML):new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+a.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');");return c?
4
+ b(c):b}var r=this,B={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return-1*a*(a-2)},easeInOutQuad:function(a){return 1>(a/=0.5)?0.5*a*a:-0.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return 1>(a/=0.5)?0.5*a*a*a:0.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return-1*((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return 1>(a/=0.5)?
5
+ 0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return 1>(a/=0.5)?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return-1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return-0.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0==a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1==
6
+ a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0==a?0:1==a?1:1>(a/=0.5)?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return 1<=a?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return 1>(a/=0.5)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(1==(a/=1))return 1;b||(b=0.3);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*
7
+ Math.PI)*Math.asin(1/e);return-(e*Math.pow(2,10*(a-=1))*Math.sin((1*a-c)*2*Math.PI/b))},easeOutElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(1==(a/=1))return 1;b||(b=0.3);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*Math.PI)*Math.asin(1/e);return e*Math.pow(2,-10*a)*Math.sin((1*a-c)*2*Math.PI/b)+1},easeInOutElastic:function(a){var c=1.70158,b=0,e=1;if(0==a)return 0;if(2==(a/=0.5))return 1;b||(b=1*0.3*1.5);e<Math.abs(1)?(e=1,c=b/4):c=b/(2*Math.PI)*Math.asin(1/e);return 1>a?-0.5*e*Math.pow(2,10*
8
+ (a-=1))*Math.sin((1*a-c)*2*Math.PI/b):0.5*e*Math.pow(2,-10*(a-=1))*Math.sin((1*a-c)*2*Math.PI/b)+1},easeInBack:function(a){return 1*(a/=1)*a*(2.70158*a-1.70158)},easeOutBack:function(a){return 1*((a=a/1-1)*a*(2.70158*a+1.70158)+1)},easeInOutBack:function(a){var c=1.70158;return 1>(a/=0.5)?0.5*a*a*(((c*=1.525)+1)*a-c):0.5*((a-=2)*a*(((c*=1.525)+1)*a+c)+2)},easeInBounce:function(a){return 1-B.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?1*7.5625*a*a:a<2/2.75?1*(7.5625*(a-=1.5/2.75)*
9
+ a+0.75):a<2.5/2.75?1*(7.5625*(a-=2.25/2.75)*a+0.9375):1*(7.5625*(a-=2.625/2.75)*a+0.984375)},easeInOutBounce:function(a){return 0.5>a?0.5*B.easeInBounce(2*a):0.5*B.easeOutBounce(2*a-1)+0.5}},q=s.canvas.width,u=s.canvas.height;window.devicePixelRatio&&(s.canvas.style.width=q+"px",s.canvas.style.height=u+"px",s.canvas.height=u*window.devicePixelRatio,s.canvas.width=q*window.devicePixelRatio,s.scale(window.devicePixelRatio,window.devicePixelRatio));this.PolarArea=function(a,c){r.PolarArea.defaults={scaleOverlay:!0,
10
+ scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:!0,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",
11
+ animateRotate:!0,animateScale:!1,onAnimationComplete:null};var b=c?y(r.PolarArea.defaults,c):r.PolarArea.defaults;return new G(a,b,s)};this.Radar=function(a,c){r.Radar.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleShowLine:!0,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!1,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",
12
+ scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,angleShowLineOut:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:12,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Radar.defaults,c):r.Radar.defaults;return new H(a,b,s)};this.Pie=function(a,
13
+ c){r.Pie.defaults={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,onAnimationComplete:null};var b=c?y(r.Pie.defaults,c):r.Pie.defaults;return new I(a,b,s)};this.Doughnut=function(a,c){r.Doughnut.defaults={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animation:!0,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,
14
+ onAnimationComplete:null};var b=c?y(r.Doughnut.defaults,c):r.Doughnut.defaults;return new J(a,b,s)};this.Line=function(a,c){r.Line.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,bezierCurve:!0,
15
+ pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:2,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Line.defaults,c):r.Line.defaults;return new K(a,b,s)};this.Bar=function(a,c){r.Bar.defaults={scaleOverlay:!1,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleFontFamily:"'Arial'",
16
+ scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,animation:!0,animationSteps:60,animationEasing:"easeOutQuart",onAnimationComplete:null};var b=c?y(r.Bar.defaults,c):r.Bar.defaults;return new L(a,b,s)};var G=function(a,c,b){var e,h,f,d,g,k,j,l,m;g=Math.min.apply(Math,[q,u])/2;g-=Math.max.apply(Math,[0.5*c.scaleFontSize,0.5*c.scaleLineWidth]);
17
+ d=2*c.scaleFontSize;c.scaleShowLabelBackdrop&&(d+=2*c.scaleBackdropPaddingY,g-=1.5*c.scaleBackdropPaddingY);l=g;d=d?d:5;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.length;f++)a[f].value>e&&(e=a[f].value),a[f].value<h&&(h=a[f].value);f=Math.floor(l/(0.66*d));d=Math.floor(0.5*(l/d));m=c.scaleShowLabels?c.scaleLabel:null;c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(m,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(l,f,d,e,h,
18
+ m);k=g/j.steps;x(c,function(){for(var a=0;a<j.steps;a++)if(c.scaleShowLine&&(b.beginPath(),b.arc(q/2,u/2,k*(a+1),0,2*Math.PI,!0),b.strokeStyle=c.scaleLineColor,b.lineWidth=c.scaleLineWidth,b.stroke()),c.scaleShowLabels){b.textAlign="center";b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;var e=j.labels[a];if(c.scaleShowLabelBackdrop){var d=b.measureText(e).width;b.fillStyle=c.scaleBackdropColor;b.beginPath();b.rect(Math.round(q/2-d/2-c.scaleBackdropPaddingX),Math.round(u/2-k*(a+
19
+ 1)-0.5*c.scaleFontSize-c.scaleBackdropPaddingY),Math.round(d+2*c.scaleBackdropPaddingX),Math.round(c.scaleFontSize+2*c.scaleBackdropPaddingY));b.fill()}b.textBaseline="middle";b.fillStyle=c.scaleFontColor;b.fillText(e,q/2,u/2-k*(a+1))}},function(e){var d=-Math.PI/2,g=2*Math.PI/a.length,f=1,h=1;c.animation&&(c.animateScale&&(f=e),c.animateRotate&&(h=e));for(e=0;e<a.length;e++)b.beginPath(),b.arc(q/2,u/2,f*v(a[e].value,j,k),d,d+h*g,!1),b.lineTo(q/2,u/2),b.closePath(),b.fillStyle=a[e].color,b.fill(),
20
+ c.segmentShowStroke&&(b.strokeStyle=c.segmentStrokeColor,b.lineWidth=c.segmentStrokeWidth,b.stroke()),d+=h*g},b)},H=function(a,c,b){var e,h,f,d,g,k,j,l,m;a.labels||(a.labels=[]);g=Math.min.apply(Math,[q,u])/2;d=2*c.scaleFontSize;for(e=l=0;e<a.labels.length;e++)b.font=c.pointLabelFontStyle+" "+c.pointLabelFontSize+"px "+c.pointLabelFontFamily,h=b.measureText(a.labels[e]).width,h>l&&(l=h);g-=Math.max.apply(Math,[l,1.5*(c.pointLabelFontSize/2)]);g-=c.pointLabelFontSize;l=g=A(g,null,0);d=d?d:5;e=Number.MIN_VALUE;
21
+ h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(m=0;m<a.datasets[f].data.length;m++)a.datasets[f].data[m]>e&&(e=a.datasets[f].data[m]),a.datasets[f].data[m]<h&&(h=a.datasets[f].data[m]);f=Math.floor(l/(0.66*d));d=Math.floor(0.5*(l/d));m=c.scaleShowLabels?c.scaleLabel:null;c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(m,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(l,f,d,e,h,m);k=g/j.steps;x(c,function(){var e=2*Math.PI/
22
+ a.datasets[0].data.length;b.save();b.translate(q/2,u/2);if(c.angleShowLineOut){b.strokeStyle=c.angleLineColor;b.lineWidth=c.angleLineWidth;for(var d=0;d<a.datasets[0].data.length;d++)b.rotate(e),b.beginPath(),b.moveTo(0,0),b.lineTo(0,-g),b.stroke()}for(d=0;d<j.steps;d++){b.beginPath();if(c.scaleShowLine){b.strokeStyle=c.scaleLineColor;b.lineWidth=c.scaleLineWidth;b.moveTo(0,-k*(d+1));for(var f=0;f<a.datasets[0].data.length;f++)b.rotate(e),b.lineTo(0,-k*(d+1));b.closePath();b.stroke()}c.scaleShowLabels&&
23
+ (b.textAlign="center",b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily,b.textBaseline="middle",c.scaleShowLabelBackdrop&&(f=b.measureText(j.labels[d]).width,b.fillStyle=c.scaleBackdropColor,b.beginPath(),b.rect(Math.round(-f/2-c.scaleBackdropPaddingX),Math.round(-k*(d+1)-0.5*c.scaleFontSize-c.scaleBackdropPaddingY),Math.round(f+2*c.scaleBackdropPaddingX),Math.round(c.scaleFontSize+2*c.scaleBackdropPaddingY)),b.fill()),b.fillStyle=c.scaleFontColor,b.fillText(j.labels[d],0,-k*(d+
24
+ 1)))}for(d=0;d<a.labels.length;d++){b.font=c.pointLabelFontStyle+" "+c.pointLabelFontSize+"px "+c.pointLabelFontFamily;b.fillStyle=c.pointLabelFontColor;var f=Math.sin(e*d)*(g+c.pointLabelFontSize),h=Math.cos(e*d)*(g+c.pointLabelFontSize);b.textAlign=e*d==Math.PI||0==e*d?"center":e*d>Math.PI?"right":"left";b.textBaseline="middle";b.fillText(a.labels[d],f,-h)}b.restore()},function(d){var e=2*Math.PI/a.datasets[0].data.length;b.save();b.translate(q/2,u/2);for(var g=0;g<a.datasets.length;g++){b.beginPath();
25
+ b.moveTo(0,d*-1*v(a.datasets[g].data[0],j,k));for(var f=1;f<a.datasets[g].data.length;f++)b.rotate(e),b.lineTo(0,d*-1*v(a.datasets[g].data[f],j,k));b.closePath();b.fillStyle=a.datasets[g].fillColor;b.strokeStyle=a.datasets[g].strokeColor;b.lineWidth=c.datasetStrokeWidth;b.fill();b.stroke();if(c.pointDot){b.fillStyle=a.datasets[g].pointColor;b.strokeStyle=a.datasets[g].pointStrokeColor;b.lineWidth=c.pointDotStrokeWidth;for(f=0;f<a.datasets[g].data.length;f++)b.rotate(e),b.beginPath(),b.arc(0,d*-1*
26
+ v(a.datasets[g].data[f],j,k),c.pointDotRadius,2*Math.PI,!1),b.fill(),b.stroke()}b.rotate(e)}b.restore()},b)},I=function(a,c,b){for(var e=0,h=Math.min.apply(Math,[u/2,q/2])-5,f=0;f<a.length;f++)e+=a[f].value;x(c,null,function(d){var g=-Math.PI/2,f=1,j=1;c.animation&&(c.animateScale&&(f=d),c.animateRotate&&(j=d));for(d=0;d<a.length;d++){var l=j*a[d].value/e*2*Math.PI;b.beginPath();b.arc(q/2,u/2,f*h,g,g+l);b.lineTo(q/2,u/2);b.closePath();b.fillStyle=a[d].color;b.fill();c.segmentShowStroke&&(b.lineWidth=
27
+ c.segmentStrokeWidth,b.strokeStyle=c.segmentStrokeColor,b.stroke());g+=l}},b)},J=function(a,c,b){for(var e=0,h=Math.min.apply(Math,[u/2,q/2])-5,f=h*(c.percentageInnerCutout/100),d=0;d<a.length;d++)e+=a[d].value;x(c,null,function(d){var k=-Math.PI/2,j=1,l=1;c.animation&&(c.animateScale&&(j=d),c.animateRotate&&(l=d));for(d=0;d<a.length;d++){var m=l*a[d].value/e*2*Math.PI;b.beginPath();b.arc(q/2,u/2,j*h,k,k+m,!1);b.arc(q/2,u/2,j*f,k+m,k,!0);b.closePath();b.fillStyle=a[d].color;b.fill();c.segmentShowStroke&&
28
+ (b.lineWidth=c.segmentStrokeWidth,b.strokeStyle=c.segmentStrokeColor,b.stroke());k+=m}},b)},K=function(a,c,b){var e,h,f,d,g,k,j,l,m,t,r,n,p,s=0;g=u;b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;t=1;for(d=0;d<a.labels.length;d++)e=b.measureText(a.labels[d]).width,t=e>t?e:t;q/a.labels.length<t?(s=45,q/a.labels.length<Math.cos(s)*t?(s=90,g-=t):g-=Math.sin(s)*t):g-=c.scaleFontSize;d=c.scaleFontSize;g=g-5-d;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(l=
29
+ 0;l<a.datasets[f].data.length;l++)a.datasets[f].data[l]>e&&(e=a.datasets[f].data[l]),a.datasets[f].data[l]<h&&(h=a.datasets[f].data[l]);f=Math.floor(g/(0.66*d));d=Math.floor(0.5*(g/d));l=c.scaleShowLabels?c.scaleLabel:"";c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(l,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(g,f,d,e,h,l);k=Math.floor(g/j.steps);d=1;if(c.scaleShowLabels){b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;
30
+ for(e=0;e<j.labels.length;e++)h=b.measureText(j.labels[e]).width,d=h>d?h:d;d+=10}r=q-d-t;m=Math.floor(r/(a.labels.length-1));n=q-t/2-r;p=g+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0<s?(b.save(),b.textAlign="right"):b.textAlign="center";b.fillStyle=c.scaleFontColor;for(var d=0;d<a.labels.length;d++)b.save(),0<s?(b.translate(n+d*m,p+c.scaleFontSize),b.rotate(-(s*(Math.PI/180))),b.fillText(a.labels[d],
31
+ 0,0),b.restore()):b.fillText(a.labels[d],n+d*m,p+c.scaleFontSize+3),b.beginPath(),b.moveTo(n+d*m,p+3),c.scaleShowGridLines&&0<d?(b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+d*m,5)):b.lineTo(n+d*m,p+3),b.stroke();b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(n,p+5);b.lineTo(n,5);b.stroke();b.textAlign="right";b.textBaseline="middle";for(d=0;d<j.steps;d++)b.beginPath(),b.moveTo(n-3,p-(d+1)*k),c.scaleShowGridLines?(b.lineWidth=c.scaleGridLineWidth,
32
+ b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+r+5,p-(d+1)*k)):b.lineTo(n-0.5,p-(d+1)*k),b.stroke(),c.scaleShowLabels&&b.fillText(j.labels[d],n-8,p-(d+1)*k)},function(d){function e(b,c){return p-d*v(a.datasets[b].data[c],j,k)}for(var f=0;f<a.datasets.length;f++){b.strokeStyle=a.datasets[f].strokeColor;b.lineWidth=c.datasetStrokeWidth;b.beginPath();b.moveTo(n,p-d*v(a.datasets[f].data[0],j,k));for(var g=1;g<a.datasets[f].data.length;g++)c.bezierCurve?b.bezierCurveTo(n+m*(g-0.5),e(f,g-1),n+m*(g-0.5),
33
+ e(f,g),n+m*g,e(f,g)):b.lineTo(n+m*g,e(f,g));b.stroke();c.datasetFill?(b.lineTo(n+m*(a.datasets[f].data.length-1),p),b.lineTo(n,p),b.closePath(),b.fillStyle=a.datasets[f].fillColor,b.fill()):b.closePath();if(c.pointDot){b.fillStyle=a.datasets[f].pointColor;b.strokeStyle=a.datasets[f].pointStrokeColor;b.lineWidth=c.pointDotStrokeWidth;for(g=0;g<a.datasets[f].data.length;g++)b.beginPath(),b.arc(n+m*g,p-d*v(a.datasets[f].data[g],j,k),c.pointDotRadius,0,2*Math.PI,!0),b.fill(),b.stroke()}}},b)},L=function(a,
34
+ c,b){var e,h,f,d,g,k,j,l,m,t,r,n,p,s,w=0;g=u;b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;t=1;for(d=0;d<a.labels.length;d++)e=b.measureText(a.labels[d]).width,t=e>t?e:t;q/a.labels.length<t?(w=45,q/a.labels.length<Math.cos(w)*t?(w=90,g-=t):g-=Math.sin(w)*t):g-=c.scaleFontSize;d=c.scaleFontSize;g=g-5-d;e=Number.MIN_VALUE;h=Number.MAX_VALUE;for(f=0;f<a.datasets.length;f++)for(l=0;l<a.datasets[f].data.length;l++)a.datasets[f].data[l]>e&&(e=a.datasets[f].data[l]),a.datasets[f].data[l]<
35
+ h&&(h=a.datasets[f].data[l]);f=Math.floor(g/(0.66*d));d=Math.floor(0.5*(g/d));l=c.scaleShowLabels?c.scaleLabel:"";c.scaleOverride?(j={steps:c.scaleSteps,stepValue:c.scaleStepWidth,graphMin:c.scaleStartValue,labels:[]},z(l,j.labels,j.steps,c.scaleStartValue,c.scaleStepWidth)):j=C(g,f,d,e,h,l);k=Math.floor(g/j.steps);d=1;if(c.scaleShowLabels){b.font=c.scaleFontStyle+" "+c.scaleFontSize+"px "+c.scaleFontFamily;for(e=0;e<j.labels.length;e++)h=b.measureText(j.labels[e]).width,d=h>d?h:d;d+=10}r=q-d-t;m=
36
+ Math.floor(r/a.labels.length);s=(m-2*c.scaleGridLineWidth-2*c.barValueSpacing-(c.barDatasetSpacing*a.datasets.length-1)-(c.barStrokeWidth/2*a.datasets.length-1))/a.datasets.length;n=q-t/2-r;p=g+c.scaleFontSize/2;x(c,function(){b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(q-t/2+5,p);b.lineTo(q-t/2-r-5,p);b.stroke();0<w?(b.save(),b.textAlign="right"):b.textAlign="center";b.fillStyle=c.scaleFontColor;for(var d=0;d<a.labels.length;d++)b.save(),0<w?(b.translate(n+
37
+ d*m,p+c.scaleFontSize),b.rotate(-(w*(Math.PI/180))),b.fillText(a.labels[d],0,0),b.restore()):b.fillText(a.labels[d],n+d*m+m/2,p+c.scaleFontSize+3),b.beginPath(),b.moveTo(n+(d+1)*m,p+3),b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+(d+1)*m,5),b.stroke();b.lineWidth=c.scaleLineWidth;b.strokeStyle=c.scaleLineColor;b.beginPath();b.moveTo(n,p+5);b.lineTo(n,5);b.stroke();b.textAlign="right";b.textBaseline="middle";for(d=0;d<j.steps;d++)b.beginPath(),b.moveTo(n-3,p-(d+1)*
38
+ k),c.scaleShowGridLines?(b.lineWidth=c.scaleGridLineWidth,b.strokeStyle=c.scaleGridLineColor,b.lineTo(n+r+5,p-(d+1)*k)):b.lineTo(n-0.5,p-(d+1)*k),b.stroke(),c.scaleShowLabels&&b.fillText(j.labels[d],n-8,p-(d+1)*k)},function(d){b.lineWidth=c.barStrokeWidth;for(var e=0;e<a.datasets.length;e++){b.fillStyle=a.datasets[e].fillColor;b.strokeStyle=a.datasets[e].strokeColor;for(var f=0;f<a.datasets[e].data.length;f++){var g=n+c.barValueSpacing+m*f+s*e+c.barDatasetSpacing*e+c.barStrokeWidth*e;b.beginPath();
39
+ b.moveTo(g,p);b.lineTo(g,p-d*v(a.datasets[e].data[f],j,k)+c.barStrokeWidth/2);b.lineTo(g+s,p-d*v(a.datasets[e].data[f],j,k)+c.barStrokeWidth/2);b.lineTo(g+s,p);c.barShowStroke&&b.stroke();b.closePath();b.fill()}}},b)},D=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)},F={}};
@@ -20,5 +20,8 @@ module AuditRails
20
20
  render :nothing => true, :status => 200, :content_type => 'text/html'
21
21
  end
22
22
 
23
+ def analytics
24
+ @analysis_by_user_name = AuditRails::Audit.analysis_by_user_name
25
+ end
23
26
  end
24
27
  end
@@ -8,5 +8,9 @@ module AuditRails
8
8
 
9
9
  audits.blank?
10
10
  end
11
+
12
+ def self.analysis_by_user_name
13
+ count(group: 'user_name')
14
+ end
11
15
  end
12
16
  end
@@ -0,0 +1,25 @@
1
+ <%= javascript_include_tag "Chart.min"%>
2
+ <div id='analyticsByUser'>Analytics by User</div>
3
+ <br/>
4
+ <canvas id="canvas" height="450" width="600"></canvas>
5
+
6
+
7
+ <script>
8
+
9
+ var lineChartData = {
10
+ labels : <%= "#{@analysis_by_user_name.keys}".html_safe %>,
11
+ datasets : [
12
+ {
13
+ fillColor : "rgba(220,220,220,0.5)",
14
+ strokeColor : "rgba(220,220,220,1)",
15
+ pointColor : "rgba(220,220,220,1)",
16
+ pointStrokeColor : "#fff",
17
+ data : <%= @analysis_by_user_name.values %>
18
+ }
19
+ ]
20
+
21
+ }
22
+
23
+ var myLine = new Chart(document.getElementById("canvas").getContext("2d")).Line(lineChartData);
24
+
25
+ </script>
@@ -1,3 +1,7 @@
1
1
  AuditRails::Engine.routes.draw do
2
- resources :audits, :only => [:create, :index]
2
+ resources :audits, :only => [:create, :index] do
3
+ collection do
4
+ get :analytics
5
+ end
6
+ end
3
7
  end
@@ -1,3 +1,3 @@
1
1
  module AuditRails
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -12,6 +12,12 @@ describe AuditRails::AuditsController do
12
12
  :controller => "audit_rails/audits",
13
13
  :action => "create" )
14
14
  }
15
+
16
+ it { expect(:get => "/audits/analytics").to route_to(
17
+ :controller => "audit_rails/audits",
18
+ :action => 'analytics'
19
+ )
20
+ }
15
21
  end
16
22
 
17
23
  context "GET index" do
@@ -48,4 +54,15 @@ describe AuditRails::AuditsController do
48
54
  AuditRails::Audit.no_audit_entry_for_today?("visit-site", 'Fake User').should be_false
49
55
  end
50
56
  end
57
+
58
+ context "GET analytics" do
59
+ it "shows analytics of audits on page" do
60
+ # list should be a hash
61
+ AuditRails::Audit.stub(:analysis_by_user_name).and_return(list = {"Fake User"=>6, "John Smith"=>3})
62
+
63
+ get 'analytics'
64
+
65
+ expect(assigns(:analysis_by_user_name)).to eq(list)
66
+ end
67
+ end
51
68
  end
Binary file
@@ -212,3 +212,184 @@ Connecting to database specified by database.yml
212
212
   (3.3ms) DROP TABLE "audit_rails_audits"
213
213
   (0.8ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
214
214
   (0.1ms) SELECT version FROM "schema_migrations"
215
+ Connecting to database specified by database.yml
216
+  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
217
+  (0.7ms) select sqlite_version(*)
218
+  (1.9ms) DROP TABLE "audit_rails_audits"
219
+  (0.8ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
220
+  (0.3ms) SELECT version FROM "schema_migrations"
221
+ Connecting to database specified by database.yml
222
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
223
+  (0.8ms) select sqlite_version(*)
224
+  (1.9ms) DROP TABLE "audit_rails_audits"
225
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
226
+  (0.1ms) SELECT version FROM "schema_migrations"
227
+ Connecting to database specified by database.yml
228
+  (1.6ms) select sqlite_version(*)
229
+  (101.6ms) DROP TABLE "audit_rails_audits"
230
+  (2.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
231
+  (0.2ms) SELECT version FROM "schema_migrations"
232
+  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
233
+ Connecting to database specified by database.yml
234
+
235
+
236
+ Started GET "/" for 127.0.0.1 at 2013-09-22 11:18:10 +0530
237
+
238
+ ActionController::RoutingError (No route matches [GET] "/"):
239
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
240
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
241
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
242
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
243
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
244
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
245
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
246
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
247
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
248
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
249
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
250
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
251
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
252
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
253
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
254
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
255
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
256
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
257
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
258
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
259
+
260
+
261
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (20.4ms)
262
+
263
+
264
+ Started GET "/audits" for 127.0.0.1 at 2013-09-22 11:18:17 +0530
265
+
266
+ ActionController::RoutingError (No route matches [GET] "/audits"):
267
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
268
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
269
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
270
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
271
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
272
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
273
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
274
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
275
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
276
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
277
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
278
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
279
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
280
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
281
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
282
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
283
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
284
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
285
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
286
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
287
+
288
+
289
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.7ms)
290
+
291
+
292
+ Started GET "/audits/audit" for 127.0.0.1 at 2013-09-22 11:18:25 +0530
293
+
294
+ ActionController::RoutingError (No route matches [GET] "/audits/audit"):
295
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
296
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
297
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
298
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
299
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
300
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
301
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
302
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
303
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
304
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
305
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
306
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
307
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
308
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
309
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
310
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
311
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
312
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
313
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
314
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
315
+
316
+
317
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.8ms)
318
+ Connecting to database specified by database.yml
319
+ Connecting to database specified by database.yml
320
+
321
+
322
+ Started GET "/audits" for 127.0.0.1 at 2013-09-22 11:18:56 +0530
323
+
324
+ ActionController::RoutingError (No route matches [GET] "/audits"):
325
+ actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
326
+ actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
327
+ railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
328
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
329
+ activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
330
+ railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
331
+ actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
332
+ rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
333
+ rack (1.4.5) lib/rack/runtime.rb:17:in `call'
334
+ activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
335
+ rack (1.4.5) lib/rack/lock.rb:15:in `call'
336
+ actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
337
+ railties (3.2.13) lib/rails/engine.rb:479:in `call'
338
+ railties (3.2.13) lib/rails/application.rb:223:in `call'
339
+ rack (1.4.5) lib/rack/content_length.rb:14:in `call'
340
+ railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
341
+ rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
342
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
343
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
344
+ /Users/gouravtiwari/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
345
+
346
+
347
+ Rendered /Users/gouravtiwari/.rvm/gems/ruby-1.9.3-p448/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (16.0ms)
348
+ Connecting to database specified by database.yml
349
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
350
+  (0.3ms) select sqlite_version(*)
351
+  (3.6ms) DROP TABLE "audit_rails_audits"
352
+  (1.4ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
353
+  (0.1ms) SELECT version FROM "schema_migrations"
354
+ Connecting to database specified by database.yml
355
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
356
+  (0.3ms) select sqlite_version(*)
357
+  (3.0ms) DROP TABLE "audit_rails_audits"
358
+  (0.8ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
359
+  (0.1ms) SELECT version FROM "schema_migrations"
360
+ Connecting to database specified by database.yml
361
+  (3.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
362
+  (0.3ms) select sqlite_version(*)
363
+  (1.4ms) DROP TABLE "audit_rails_audits"
364
+  (1.2ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
365
+  (0.1ms) SELECT version FROM "schema_migrations"
366
+ Connecting to database specified by database.yml
367
+  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
368
+  (0.3ms) select sqlite_version(*)
369
+  (3.3ms) DROP TABLE "audit_rails_audits"
370
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
371
+  (0.1ms) SELECT version FROM "schema_migrations"
372
+ Connecting to database specified by database.yml
373
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
374
+  (0.3ms) select sqlite_version(*)
375
+  (3.0ms) DROP TABLE "audit_rails_audits"
376
+  (1.5ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
377
+  (0.1ms) SELECT version FROM "schema_migrations"
378
+ Connecting to database specified by database.yml
379
+  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
380
+  (0.3ms) select sqlite_version(*)
381
+  (3.4ms) DROP TABLE "audit_rails_audits"
382
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
383
+  (0.1ms) SELECT version FROM "schema_migrations"
384
+ Connecting to database specified by database.yml
385
+  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
386
+  (0.3ms) select sqlite_version(*)
387
+  (3.3ms) DROP TABLE "audit_rails_audits"
388
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
389
+  (0.1ms) SELECT version FROM "schema_migrations"
390
+ Connecting to database specified by database.yml
391
+  (3.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
392
+  (0.3ms) select sqlite_version(*)
393
+  (1.2ms) DROP TABLE "audit_rails_audits"
394
+  (0.9ms) CREATE TABLE "audit_rails_audits" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "action" varchar(255), "controller" varchar(255), "description" varchar(255), "user_name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
395
+  (0.1ms) SELECT version FROM "schema_migrations"
@@ -1816,3 +1816,701 @@ Processing by AnonymousController#login as HTML
1816
1816
  Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)
1817
1817
   (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-06-28 00:00:00.000000' AND '2013-06-28 23:59:59.999999')
1818
1818
   (0.3ms) rollback transaction
1819
+ Connecting to database specified by database.yml
1820
+  (0.3ms) begin transaction
1821
+ Processing by AnonymousController#login as HTML
1822
+ Parameters: {"id"=>"1"}
1823
+  (1.5ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-07-15 00:00:00.000000' AND '2013-07-15 23:59:59.999999')
1824
+  (0.1ms) SAVEPOINT active_record_1
1825
+ SQL (0.8ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["description", "User logged in"], ["updated_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["user_name", "Fake User"]]
1826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1827
+ Rendered text template (0.0ms)
1828
+ Completed 200 OK in 64ms (Views: 12.1ms | ActiveRecord: 4.5ms)
1829
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-07-15 00:00:00.000000' AND '2013-07-15 23:59:59.999999')
1830
+  (0.3ms) rollback transaction
1831
+  (0.1ms) begin transaction
1832
+  (0.1ms) rollback transaction
1833
+  (0.1ms) begin transaction
1834
+  (0.0ms) rollback transaction
1835
+  (0.1ms) begin transaction
1836
+  (0.1ms) SAVEPOINT active_record_1
1837
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["description", "User logged on at 2013-07-14 10:59:43 UTC"], ["updated_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["user_name", "Fake User"]]
1838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1839
+  (0.1ms) SAVEPOINT active_record_1
1840
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["description", "User logged on at 2013-07-13 10:59:43 UTC"], ["updated_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["user_name", "Fake User"]]
1841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1842
+  (0.0ms) SAVEPOINT active_record_1
1843
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["description", "User logged on at 2013-07-12 10:59:43 UTC"], ["updated_at", Mon, 15 Jul 2013 10:59:43 UTC +00:00], ["user_name", "Fake User"]]
1844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1845
+ Processing by AuditRails::AuditsController#index as XLS
1846
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
1847
+ Sent data audits.xls (0.8ms)
1848
+ Completed 200 OK in 46ms (Views: 0.6ms | ActiveRecord: 0.1ms)
1849
+  (0.3ms) rollback transaction
1850
+  (0.1ms) begin transaction
1851
+  (0.1ms) SAVEPOINT active_record_1
1852
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["description", "User logged on at 2013-07-14 10:59:44 UTC"], ["updated_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["user_name", "Fake User"]]
1853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1854
+  (0.1ms) SAVEPOINT active_record_1
1855
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["description", "User logged on at 2013-07-13 10:59:44 UTC"], ["updated_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["user_name", "Fake User"]]
1856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1857
+  (0.0ms) SAVEPOINT active_record_1
1858
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["description", "User logged on at 2013-07-12 10:59:44 UTC"], ["updated_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["user_name", "Fake User"]]
1859
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1860
+ Processing by AuditRails::AuditsController#index as HTML
1861
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
1862
+ Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
1863
+  (0.4ms) rollback transaction
1864
+  (0.1ms) begin transaction
1865
+ Processing by AuditRails::AuditsController#create as HTML
1866
+  (0.1ms) SAVEPOINT active_record_1
1867
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["description", nil], ["updated_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["user_name", "Fake User"]]
1868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1869
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.7ms)
1870
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-07-15 00:00:00.000000' AND '2013-07-15 23:59:59.999999')
1871
+  (0.3ms) rollback transaction
1872
+  (0.1ms) begin transaction
1873
+  (0.0ms) SAVEPOINT active_record_1
1874
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["description", nil], ["updated_at", Mon, 15 Jul 2013 10:59:44 UTC +00:00], ["user_name", "John Smith"]]
1875
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1876
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-07-15 00:00:00.000000' AND '2013-07-15 23:59:59.999999')
1877
+  (0.3ms) rollback transaction
1878
+  (0.1ms) begin transaction
1879
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-07-15 00:00:00.000000' AND '2013-07-15 23:59:59.999999')
1880
+  (0.1ms) rollback transaction
1881
+ Connecting to database specified by database.yml
1882
+  (0.3ms) begin transaction
1883
+  (0.1ms) SAVEPOINT active_record_1
1884
+ SQL (15.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "John Smith"]]
1885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1886
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1887
+  (0.8ms) rollback transaction
1888
+  (0.1ms) begin transaction
1889
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1890
+  (0.0ms) rollback transaction
1891
+  (0.1ms) begin transaction
1892
+ Processing by AuditRails::AuditsController#create as HTML
1893
+  (0.1ms) SAVEPOINT active_record_1
1894
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1896
+ Rendered text template (0.0ms)
1897
+ Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.5ms)
1898
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1899
+  (2.0ms) rollback transaction
1900
+  (0.1ms) begin transaction
1901
+  (0.0ms) SAVEPOINT active_record_1
1902
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged on at 2013-09-21 05:43:50 UTC"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1903
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1904
+  (0.0ms) SAVEPOINT active_record_1
1905
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged on at 2013-09-20 05:43:50 UTC"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1906
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1907
+  (0.0ms) SAVEPOINT active_record_1
1908
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged on at 2013-09-19 05:43:50 UTC"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1910
+ Processing by AuditRails::AuditsController#index as XLS
1911
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
1912
+ Sent data audits.xls (0.5ms)
1913
+ Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1914
+  (0.5ms) rollback transaction
1915
+  (0.1ms) begin transaction
1916
+  (0.1ms) SAVEPOINT active_record_1
1917
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged on at 2013-09-21 05:43:50 UTC"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1918
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1919
+  (0.0ms) SAVEPOINT active_record_1
1920
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged on at 2013-09-20 05:43:50 UTC"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1922
+  (0.0ms) SAVEPOINT active_record_1
1923
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged on at 2013-09-19 05:43:50 UTC"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1924
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1925
+ Processing by AuditRails::AuditsController#index as HTML
1926
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
1927
+ Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms)
1928
+  (0.6ms) rollback transaction
1929
+  (0.1ms) begin transaction
1930
+  (0.1ms) rollback transaction
1931
+  (0.0ms) begin transaction
1932
+  (0.0ms) rollback transaction
1933
+  (0.1ms) begin transaction
1934
+ Processing by AnonymousController#login as HTML
1935
+ Parameters: {"id"=>"1"}
1936
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1937
+  (0.0ms) SAVEPOINT active_record_1
1938
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 05:43:50 UTC +00:00], ["user_name", "Fake User"]]
1939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1940
+ Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)
1941
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1942
+  (0.4ms) rollback transaction
1943
+ Connecting to database specified by database.yml
1944
+  (0.3ms) begin transaction
1945
+  (1.4ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1946
+  (0.1ms) rollback transaction
1947
+  (0.0ms) begin transaction
1948
+  (0.1ms) SAVEPOINT active_record_1
1949
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "John Smith"]]
1950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1951
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1952
+  (0.4ms) rollback transaction
1953
+  (0.1ms) begin transaction
1954
+ Processing by AuditRails::AuditsController#create as HTML
1955
+  (0.1ms) SAVEPOINT active_record_1
1956
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1958
+ Rendered text template (0.0ms)
1959
+ Completed 200 OK in 19ms (Views: 15.6ms | ActiveRecord: 0.8ms)
1960
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1961
+  (0.4ms) rollback transaction
1962
+  (0.1ms) begin transaction
1963
+  (0.1ms) SAVEPOINT active_record_1
1964
+ SQL (0.8ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged on at 2013-09-21 06:01:34 UTC"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1966
+  (0.1ms) SAVEPOINT active_record_1
1967
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged on at 2013-09-20 06:01:34 UTC"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1969
+  (0.0ms) SAVEPOINT active_record_1
1970
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged on at 2013-09-19 06:01:34 UTC"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1972
+ Processing by AuditRails::AuditsController#index as HTML
1973
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
1974
+ Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)
1975
+  (0.4ms) rollback transaction
1976
+  (0.1ms) begin transaction
1977
+  (0.1ms) SAVEPOINT active_record_1
1978
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged on at 2013-09-21 06:01:34 UTC"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1980
+  (0.0ms) SAVEPOINT active_record_1
1981
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged on at 2013-09-20 06:01:34 UTC"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1983
+  (0.0ms) SAVEPOINT active_record_1
1984
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged on at 2013-09-19 06:01:34 UTC"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
1985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1986
+ Processing by AuditRails::AuditsController#index as XLS
1987
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
1988
+ Sent data audits.xls (0.5ms)
1989
+ Completed 200 OK in 36ms (Views: 0.3ms | ActiveRecord: 0.1ms)
1990
+  (0.4ms) rollback transaction
1991
+  (0.1ms) begin transaction
1992
+  (0.1ms) rollback transaction
1993
+  (0.0ms) begin transaction
1994
+  (0.0ms) rollback transaction
1995
+  (0.0ms) begin transaction
1996
+ Processing by AnonymousController#login as HTML
1997
+ Parameters: {"id"=>"1"}
1998
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
1999
+  (0.0ms) SAVEPOINT active_record_1
2000
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 06:01:34 UTC +00:00], ["user_name", "Fake User"]]
2001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2002
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)
2003
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2004
+  (0.4ms) rollback transaction
2005
+ Connecting to database specified by database.yml
2006
+  (0.3ms) begin transaction
2007
+ Processing by AnonymousController#login as HTML
2008
+ Parameters: {"id"=>"1"}
2009
+  (1.6ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2010
+  (0.1ms) SAVEPOINT active_record_1
2011
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 06:04:22 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 06:04:22 UTC +00:00], ["user_name", "Fake User"]]
2012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2013
+ Rendered text template (0.0ms)
2014
+ Completed 200 OK in 73ms (Views: 9.9ms | ActiveRecord: 4.2ms)
2015
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2016
+  (2.5ms) rollback transaction
2017
+  (0.1ms) begin transaction
2018
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2019
+  (0.0ms) rollback transaction
2020
+  (0.1ms) begin transaction
2021
+  (0.0ms) SAVEPOINT active_record_1
2022
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 06:04:22 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 06:04:22 UTC +00:00], ["user_name", "John Smith"]]
2023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2024
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2025
+  (0.3ms) rollback transaction
2026
+  (0.1ms) begin transaction
2027
+  (0.1ms) rollback transaction
2028
+  (0.0ms) begin transaction
2029
+  (0.0ms) rollback transaction
2030
+  (0.0ms) begin transaction
2031
+  (0.0ms) rollback transaction
2032
+  (0.0ms) begin transaction
2033
+ Processing by AuditRails::AuditsController#create as HTML
2034
+  (0.1ms) SAVEPOINT active_record_1
2035
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2037
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
2038
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2039
+  (0.4ms) rollback transaction
2040
+  (0.1ms) begin transaction
2041
+  (0.1ms) SAVEPOINT active_record_1
2042
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", "User logged on at 2013-09-21 06:04:23 UTC"], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2044
+  (0.0ms) SAVEPOINT active_record_1
2045
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", "User logged on at 2013-09-20 06:04:23 UTC"], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2047
+  (0.0ms) SAVEPOINT active_record_1
2048
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", "User logged on at 2013-09-19 06:04:23 UTC"], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2049
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2050
+ Processing by AuditRails::AuditsController#index as HTML
2051
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2052
+ Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
2053
+  (0.5ms) rollback transaction
2054
+  (0.1ms) begin transaction
2055
+  (0.1ms) SAVEPOINT active_record_1
2056
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", "User logged on at 2013-09-21 06:04:23 UTC"], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2058
+  (0.0ms) SAVEPOINT active_record_1
2059
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", "User logged on at 2013-09-20 06:04:23 UTC"], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2061
+  (0.0ms) SAVEPOINT active_record_1
2062
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["description", "User logged on at 2013-09-19 06:04:23 UTC"], ["updated_at", Sun, 22 Sep 2013 06:04:23 UTC +00:00], ["user_name", "Fake User"]]
2063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2064
+ Processing by AuditRails::AuditsController#index as XLS
2065
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2066
+ Sent data audits.xls (0.4ms)
2067
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.1ms)
2068
+  (0.6ms) rollback transaction
2069
+ Connecting to database specified by database.yml
2070
+  (0.3ms) begin transaction
2071
+ Processing by AnonymousController#login as HTML
2072
+ Parameters: {"id"=>"1"}
2073
+  (1.6ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2074
+  (0.1ms) SAVEPOINT active_record_1
2075
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2077
+ Rendered text template (0.0ms)
2078
+ Completed 200 OK in 58ms (Views: 32.6ms | ActiveRecord: 4.6ms)
2079
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2080
+  (0.4ms) rollback transaction
2081
+  (0.1ms) begin transaction
2082
+  (0.0ms) SAVEPOINT active_record_1
2083
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "John Smith"]]
2084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2085
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2086
+  (0.3ms) rollback transaction
2087
+  (0.1ms) begin transaction
2088
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2089
+  (0.0ms) rollback transaction
2090
+  (0.0ms) begin transaction
2091
+  (0.1ms) rollback transaction
2092
+  (0.0ms) begin transaction
2093
+  (0.0ms) rollback transaction
2094
+  (0.0ms) begin transaction
2095
+  (0.0ms) rollback transaction
2096
+  (0.0ms) begin transaction
2097
+ Processing by AuditRails::AuditsController#create as HTML
2098
+  (0.0ms) SAVEPOINT active_record_1
2099
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2101
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
2102
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2103
+  (0.4ms) rollback transaction
2104
+  (0.1ms) begin transaction
2105
+  (0.1ms) SAVEPOINT active_record_1
2106
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged on at 2013-09-21 08:03:04 UTC"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2107
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2108
+  (0.0ms) SAVEPOINT active_record_1
2109
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged on at 2013-09-20 08:03:04 UTC"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2111
+  (0.0ms) SAVEPOINT active_record_1
2112
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged on at 2013-09-19 08:03:04 UTC"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2114
+ Processing by AuditRails::AuditsController#index as XLS
2115
+ AuditRails::Audit Load (0.2ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2116
+ Sent data audits.xls (0.7ms)
2117
+ Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 0.2ms)
2118
+  (0.4ms) rollback transaction
2119
+  (0.1ms) begin transaction
2120
+  (0.0ms) SAVEPOINT active_record_1
2121
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged on at 2013-09-21 08:03:04 UTC"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2123
+  (0.0ms) SAVEPOINT active_record_1
2124
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged on at 2013-09-20 08:03:04 UTC"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2126
+  (0.0ms) SAVEPOINT active_record_1
2127
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["description", "User logged on at 2013-09-19 08:03:04 UTC"], ["updated_at", Sun, 22 Sep 2013 08:03:04 UTC +00:00], ["user_name", "Fake User"]]
2128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2129
+ Processing by AuditRails::AuditsController#index as HTML
2130
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2131
+ Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms)
2132
+  (0.4ms) rollback transaction
2133
+ Connecting to database specified by database.yml
2134
+  (0.3ms) begin transaction
2135
+ Processing by AnonymousController#login as HTML
2136
+ Parameters: {"id"=>"1"}
2137
+  (2.5ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2138
+  (0.1ms) SAVEPOINT active_record_1
2139
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2141
+ Rendered text template (0.0ms)
2142
+ Completed 200 OK in 56ms (Views: 29.4ms | ActiveRecord: 5.1ms)
2143
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2144
+  (0.4ms) rollback transaction
2145
+  (0.1ms) begin transaction
2146
+ Processing by AuditRails::AuditsController#create as HTML
2147
+  (0.1ms) SAVEPOINT active_record_1
2148
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2150
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.6ms)
2151
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2152
+  (0.4ms) rollback transaction
2153
+  (0.1ms) begin transaction
2154
+  (0.1ms) SAVEPOINT active_record_1
2155
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged on at 2013-09-21 08:07:34 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2157
+  (0.0ms) SAVEPOINT active_record_1
2158
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged on at 2013-09-20 08:07:34 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2160
+  (0.0ms) SAVEPOINT active_record_1
2161
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged on at 2013-09-19 08:07:34 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2163
+ Processing by AuditRails::AuditsController#index as XLS
2164
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
2165
+ Sent data audits.xls (0.6ms)
2166
+ Completed 200 OK in 16ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2167
+  (0.4ms) rollback transaction
2168
+  (0.1ms) begin transaction
2169
+  (0.1ms) SAVEPOINT active_record_1
2170
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged on at 2013-09-21 08:07:34 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2172
+  (0.0ms) SAVEPOINT active_record_1
2173
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged on at 2013-09-20 08:07:34 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2174
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2175
+  (0.0ms) SAVEPOINT active_record_1
2176
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", "User logged on at 2013-09-19 08:07:34 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "Fake User"]]
2177
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2178
+ Processing by AuditRails::AuditsController#index as HTML
2179
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
2180
+ Completed 200 OK in 28ms (Views: 26.9ms | ActiveRecord: 0.1ms)
2181
+  (0.4ms) rollback transaction
2182
+  (0.1ms) begin transaction
2183
+  (0.1ms) rollback transaction
2184
+  (0.0ms) begin transaction
2185
+  (0.0ms) rollback transaction
2186
+  (0.0ms) begin transaction
2187
+  (0.1ms) rollback transaction
2188
+  (0.1ms) begin transaction
2189
+ Processing by AuditRails::AuditsController#analytics as HTML
2190
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2191
+  (0.1ms) rollback transaction
2192
+  (0.0ms) begin transaction
2193
+  (0.0ms) SAVEPOINT active_record_1
2194
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:07:34 UTC +00:00], ["user_name", "John Smith"]]
2195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2196
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2197
+  (0.3ms) rollback transaction
2198
+  (0.1ms) begin transaction
2199
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2200
+  (0.0ms) rollback transaction
2201
+ Connecting to database specified by database.yml
2202
+  (0.3ms) begin transaction
2203
+  (0.1ms) SAVEPOINT active_record_1
2204
+ SQL (8.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "John Smith"]]
2205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2206
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2207
+  (0.3ms) rollback transaction
2208
+  (0.1ms) begin transaction
2209
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2210
+  (0.0ms) rollback transaction
2211
+  (0.1ms) begin transaction
2212
+ Processing by AnonymousController#login as HTML
2213
+ Parameters: {"id"=>"1"}
2214
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2215
+  (0.0ms) SAVEPOINT active_record_1
2216
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2218
+ Rendered text template (0.0ms)
2219
+ Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 0.6ms)
2220
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2221
+  (2.0ms) rollback transaction
2222
+  (0.1ms) begin transaction
2223
+ Processing by AuditRails::AuditsController#create as HTML
2224
+  (0.1ms) SAVEPOINT active_record_1
2225
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2227
+ Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
2228
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2229
+  (0.5ms) rollback transaction
2230
+  (0.1ms) begin transaction
2231
+  (0.1ms) rollback transaction
2232
+  (0.0ms) begin transaction
2233
+  (0.0ms) rollback transaction
2234
+  (0.0ms) begin transaction
2235
+  (0.0ms) rollback transaction
2236
+  (0.0ms) begin transaction
2237
+ Processing by AuditRails::AuditsController#analytics as HTML
2238
+ Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
2239
+  (0.1ms) rollback transaction
2240
+  (0.1ms) begin transaction
2241
+  (0.1ms) SAVEPOINT active_record_1
2242
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged on at 2013-09-21 08:07:52 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2244
+  (0.0ms) SAVEPOINT active_record_1
2245
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged on at 2013-09-20 08:07:52 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2247
+  (0.0ms) SAVEPOINT active_record_1
2248
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged on at 2013-09-19 08:07:52 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2250
+ Processing by AuditRails::AuditsController#index as XLS
2251
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2252
+ Sent data audits.xls (0.5ms)
2253
+ Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 0.1ms)
2254
+  (0.5ms) rollback transaction
2255
+  (0.1ms) begin transaction
2256
+  (0.1ms) SAVEPOINT active_record_1
2257
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged on at 2013-09-21 08:07:52 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2259
+  (0.0ms) SAVEPOINT active_record_1
2260
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged on at 2013-09-20 08:07:52 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2262
+  (0.0ms) SAVEPOINT active_record_1
2263
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["description", "User logged on at 2013-09-19 08:07:52 UTC"], ["updated_at", Sun, 22 Sep 2013 08:07:52 UTC +00:00], ["user_name", "Fake User"]]
2264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2265
+ Processing by AuditRails::AuditsController#index as HTML
2266
+ AuditRails::Audit Load (0.2ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2267
+ Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
2268
+  (0.4ms) rollback transaction
2269
+ Connecting to database specified by database.yml
2270
+  (0.3ms) begin transaction
2271
+ Processing by AnonymousController#login as HTML
2272
+ Parameters: {"id"=>"1"}
2273
+  (1.5ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2274
+  (0.1ms) SAVEPOINT active_record_1
2275
+ SQL (0.6ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2277
+ Rendered text template (0.0ms)
2278
+ Completed 200 OK in 54ms (Views: 32.3ms | ActiveRecord: 3.9ms)
2279
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2280
+  (2.6ms) rollback transaction
2281
+  (0.1ms) begin transaction
2282
+  (0.1ms) rollback transaction
2283
+  (0.1ms) begin transaction
2284
+  (0.0ms) SAVEPOINT active_record_1
2285
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "John Smith"]]
2286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2287
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2288
+  (0.3ms) rollback transaction
2289
+  (0.1ms) begin transaction
2290
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2291
+  (0.0ms) rollback transaction
2292
+  (0.0ms) begin transaction
2293
+  (0.0ms) SAVEPOINT active_record_1
2294
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged on at 2013-09-21 08:13:09 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2296
+  (0.0ms) SAVEPOINT active_record_1
2297
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged on at 2013-09-20 08:13:09 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2299
+  (0.0ms) SAVEPOINT active_record_1
2300
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged on at 2013-09-19 08:13:09 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2301
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2302
+ Processing by AuditRails::AuditsController#index as XLS
2303
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2304
+ Sent data audits.xls (0.8ms)
2305
+ Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.1ms)
2306
+  (0.5ms) rollback transaction
2307
+  (0.1ms) begin transaction
2308
+  (0.1ms) SAVEPOINT active_record_1
2309
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged on at 2013-09-21 08:13:09 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2311
+  (0.0ms) SAVEPOINT active_record_1
2312
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged on at 2013-09-20 08:13:09 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2314
+  (0.0ms) SAVEPOINT active_record_1
2315
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", "User logged on at 2013-09-19 08:13:09 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2317
+ Processing by AuditRails::AuditsController#index as HTML
2318
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2319
+ Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.1ms)
2320
+  (0.5ms) rollback transaction
2321
+  (0.2ms) begin transaction
2322
+ Processing by AuditRails::AuditsController#create as HTML
2323
+  (0.1ms) SAVEPOINT active_record_1
2324
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:09 UTC +00:00], ["user_name", "Fake User"]]
2325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2326
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
2327
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2328
+  (0.4ms) rollback transaction
2329
+  (0.1ms) begin transaction
2330
+  (0.0ms) rollback transaction
2331
+  (0.0ms) begin transaction
2332
+  (0.1ms) rollback transaction
2333
+  (0.0ms) begin transaction
2334
+  (0.1ms) rollback transaction
2335
+  (0.0ms) begin transaction
2336
+ Processing by AuditRails::AuditsController#analytics as HTML
2337
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2338
+  (0.1ms) rollback transaction
2339
+ Connecting to database specified by database.yml
2340
+  (0.3ms) begin transaction
2341
+  (0.1ms) SAVEPOINT active_record_1
2342
+ SQL (5.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:24 UTC +00:00], ["description", "User logged on at 2013-09-21 08:13:24 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:24 UTC +00:00], ["user_name", "Fake User"]]
2343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2344
+  (0.0ms) SAVEPOINT active_record_1
2345
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:24 UTC +00:00], ["description", "User logged on at 2013-09-20 08:13:24 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:24 UTC +00:00], ["user_name", "Fake User"]]
2346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2347
+  (0.0ms) SAVEPOINT active_record_1
2348
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:24 UTC +00:00], ["description", "User logged on at 2013-09-19 08:13:24 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:24 UTC +00:00], ["user_name", "Fake User"]]
2349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2350
+ Processing by AuditRails::AuditsController#index as HTML
2351
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2352
+ Rendered /Users/gouravtiwari/audit_rails/app/views/audit_rails/audits/index.html.erb within layouts/audit_rails/application (2.3ms)
2353
+ Completed 200 OK in 37ms (Views: 35.7ms | ActiveRecord: 0.1ms)
2354
+  (102.0ms) rollback transaction
2355
+  (0.1ms) begin transaction
2356
+  (0.1ms) SAVEPOINT active_record_1
2357
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", "User logged on at 2013-09-21 08:13:25 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.0ms) SAVEPOINT active_record_1
2360
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", "User logged on at 2013-09-20 08:13:25 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2362
+  (0.0ms) SAVEPOINT active_record_1
2363
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", "User logged on at 2013-09-19 08:13:25 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2365
+ Processing by AuditRails::AuditsController#index as XLS
2366
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits" 
2367
+ Sent data audits.xls (2.2ms)
2368
+ Completed 200 OK in 14ms (Views: 2.1ms | ActiveRecord: 0.1ms)
2369
+  (0.6ms) rollback transaction
2370
+  (0.1ms) begin transaction
2371
+  (0.1ms) rollback transaction
2372
+  (0.0ms) begin transaction
2373
+  (0.1ms) rollback transaction
2374
+  (0.1ms) begin transaction
2375
+  (0.1ms) rollback transaction
2376
+  (0.1ms) begin transaction
2377
+ Processing by AuditRails::AuditsController#analytics as HTML
2378
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2379
+  (0.1ms) rollback transaction
2380
+  (0.0ms) begin transaction
2381
+ Processing by AuditRails::AuditsController#create as HTML
2382
+  (0.1ms) SAVEPOINT active_record_1
2383
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2385
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
2386
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2387
+  (0.4ms) rollback transaction
2388
+  (0.1ms) begin transaction
2389
+ Processing by AnonymousController#login as HTML
2390
+ Parameters: {"id"=>"1"}
2391
+  (0.2ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2392
+  (0.0ms) SAVEPOINT active_record_1
2393
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2395
+ Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.7ms)
2396
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2397
+  (0.4ms) rollback transaction
2398
+  (0.1ms) begin transaction
2399
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2400
+  (0.0ms) rollback transaction
2401
+  (0.1ms) begin transaction
2402
+  (0.0ms) SAVEPOINT active_record_1
2403
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "John Smith"]]
2404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2405
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2406
+  (0.3ms) rollback transaction
2407
+  (0.1ms) begin transaction
2408
+  (0.0ms) SAVEPOINT active_record_1
2409
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "John Smith"]]
2410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2411
+  (0.0ms) SAVEPOINT active_record_1
2412
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2413
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2414
+  (0.0ms) SAVEPOINT active_record_1
2415
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "John Smith"]]
2416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2417
+  (0.0ms) SAVEPOINT active_record_1
2418
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2420
+  (0.0ms) SAVEPOINT active_record_1
2421
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "John Smith"]]
2422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2423
+  (0.0ms) SAVEPOINT active_record_1
2424
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:25 UTC +00:00], ["user_name", "Fake User"]]
2425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2426
+  (0.1ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
2427
+  (0.3ms) rollback transaction
2428
+ Connecting to database specified by database.yml
2429
+  (0.3ms) begin transaction
2430
+ Processing by AnonymousController#login as HTML
2431
+ Parameters: {"id"=>"1"}
2432
+  (1.5ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2433
+  (0.1ms) SAVEPOINT active_record_1
2434
+ SQL (0.7ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "anonymous"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged in"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2436
+ Rendered text template (0.0ms)
2437
+ Completed 200 OK in 57ms (Views: 31.7ms | ActiveRecord: 4.1ms)
2438
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2439
+  (2.5ms) rollback transaction
2440
+  (0.1ms) begin transaction
2441
+  (0.1ms) rollback transaction
2442
+  (0.1ms) begin transaction
2443
+  (0.0ms) rollback transaction
2444
+  (0.0ms) begin transaction
2445
+  (0.0ms) rollback transaction
2446
+  (0.0ms) begin transaction
2447
+  (0.1ms) SAVEPOINT active_record_1
2448
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged on at 2013-09-21 08:13:56 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2450
+  (0.0ms) SAVEPOINT active_record_1
2451
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged on at 2013-09-20 08:13:56 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2453
+  (0.0ms) SAVEPOINT active_record_1
2454
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged on at 2013-09-19 08:13:56 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2456
+ Processing by AuditRails::AuditsController#index as HTML
2457
+ AuditRails::Audit Load (0.1ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
2458
+ Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.1ms)
2459
+  (0.5ms) rollback transaction
2460
+  (0.1ms) begin transaction
2461
+  (0.1ms) SAVEPOINT active_record_1
2462
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged on at 2013-09-21 08:13:56 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2464
+  (0.0ms) SAVEPOINT active_record_1
2465
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged on at 2013-09-20 08:13:56 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2467
+  (0.0ms) SAVEPOINT active_record_1
2468
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", "sessions"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", "User logged on at 2013-09-19 08:13:56 UTC"], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2470
+ Processing by AuditRails::AuditsController#index as XLS
2471
+ AuditRails::Audit Load (0.2ms) SELECT "audit_rails_audits".* FROM "audit_rails_audits"
2472
+ Sent data audits.xls (0.5ms)
2473
+ Completed 200 OK in 35ms (Views: 0.3ms | ActiveRecord: 0.2ms)
2474
+  (0.4ms) rollback transaction
2475
+  (0.1ms) begin transaction
2476
+ Processing by AuditRails::AuditsController#analytics as HTML
2477
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2478
+  (0.1ms) rollback transaction
2479
+  (0.0ms) begin transaction
2480
+ Processing by AuditRails::AuditsController#create as HTML
2481
+  (0.0ms) SAVEPOINT active_record_1
2482
+ SQL (0.5ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "visit-site"], ["controller", "xyz"], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2483
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2484
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
2485
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'visit-site' AND "audit_rails_audits"."user_name" = 'Fake User' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2486
+  (0.3ms) rollback transaction
2487
+  (0.1ms) begin transaction
2488
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2489
+  (0.0ms) rollback transaction
2490
+  (0.0ms) begin transaction
2491
+  (0.0ms) SAVEPOINT active_record_1
2492
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "login"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "John Smith"]]
2493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2494
+  (0.1ms) SELECT COUNT(*) FROM "audit_rails_audits" WHERE "audit_rails_audits"."action" = 'login' AND "audit_rails_audits"."user_name" = 'John Smith' AND ("audit_rails_audits"."created_at" BETWEEN '2013-09-22 00:00:00.000000' AND '2013-09-22 23:59:59.999999')
2495
+  (0.3ms) rollback transaction
2496
+  (0.1ms) begin transaction
2497
+  (0.0ms) SAVEPOINT active_record_1
2498
+ SQL (0.4ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "John Smith"]]
2499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2500
+  (0.0ms) SAVEPOINT active_record_1
2501
+ SQL (0.3ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2502
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2503
+  (0.0ms) SAVEPOINT active_record_1
2504
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "John Smith"]]
2505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2506
+  (0.0ms) SAVEPOINT active_record_1
2507
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2509
+  (0.0ms) SAVEPOINT active_record_1
2510
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "John Smith"]]
2511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2512
+  (0.0ms) SAVEPOINT active_record_1
2513
+ SQL (0.2ms) INSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?) [["action", "Visit"], ["controller", nil], ["created_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["description", nil], ["updated_at", Sun, 22 Sep 2013 08:13:56 UTC +00:00], ["user_name", "Fake User"]]
2514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2515
+  (0.1ms) SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
2516
+  (0.3ms) rollback transaction