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.
- checksums.yaml +15 -0
- data/README.rdoc +10 -1
- data/app/assets/javascripts/Chart.min.js +39 -0
- data/app/controllers/audit_rails/audits_controller.rb +3 -0
- data/app/models/audit_rails/audit.rb +4 -0
- data/app/views/audit_rails/audits/analytics.html.erb +25 -0
- data/config/routes.rb +5 -1
- data/lib/audit_rails/version.rb +1 -1
- data/spec/controllers/audit_rails/audits_controller_spec.rb +17 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +181 -0
- data/spec/dummy/log/test.log +698 -0
- data/spec/models/audit_rails/audit_spec.rb +14 -0
- metadata +14 -23
checksums.yaml
ADDED
@@ -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=
|
data/README.rdoc
CHANGED
@@ -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.
|
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={}};
|
@@ -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>
|
data/config/routes.rb
CHANGED
data/lib/audit_rails/version.rb
CHANGED
@@ -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
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -212,3 +212,184 @@ Connecting to database specified by database.yml
|
|
212
212
|
[1m[36m (3.3ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
213
213
|
[1m[35m (0.8ms)[0m 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
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
215
|
+
Connecting to database specified by database.yml
|
216
|
+
[1m[36m (1.9ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
217
|
+
[1m[35m (0.7ms)[0m select sqlite_version(*)
|
218
|
+
[1m[36m (1.9ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
219
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
221
|
+
Connecting to database specified by database.yml
|
222
|
+
[1m[36m (1.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
223
|
+
[1m[35m (0.8ms)[0m select sqlite_version(*)
|
224
|
+
[1m[36m (1.9ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
225
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
227
|
+
Connecting to database specified by database.yml
|
228
|
+
[1m[36m (1.6ms)[0m [1mselect sqlite_version(*)[0m
|
229
|
+
[1m[35m (101.6ms)[0m DROP TABLE "audit_rails_audits"
|
230
|
+
[1m[36m (2.9ms)[0m [1mCREATE 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) [0m
|
231
|
+
[1m[35m (0.2ms)[0m SELECT version FROM "schema_migrations"
|
232
|
+
[1m[36m (1.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
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
|
+
[1m[36m (1.4ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
350
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
351
|
+
[1m[36m (3.6ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
352
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
354
|
+
Connecting to database specified by database.yml
|
355
|
+
[1m[36m (1.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
356
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
357
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
358
|
+
[1m[35m (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
360
|
+
Connecting to database specified by database.yml
|
361
|
+
[1m[36m (3.0ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
362
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
363
|
+
[1m[36m (1.4ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
364
|
+
[1m[35m (1.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
366
|
+
Connecting to database specified by database.yml
|
367
|
+
[1m[36m (1.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
368
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
369
|
+
[1m[36m (3.3ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
370
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
372
|
+
Connecting to database specified by database.yml
|
373
|
+
[1m[36m (1.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
374
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
375
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
376
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
378
|
+
Connecting to database specified by database.yml
|
379
|
+
[1m[36m (1.6ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
380
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
381
|
+
[1m[36m (3.4ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
382
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
384
|
+
Connecting to database specified by database.yml
|
385
|
+
[1m[36m (1.5ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
386
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
387
|
+
[1m[36m (3.3ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
388
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
390
|
+
Connecting to database specified by database.yml
|
391
|
+
[1m[36m (3.8ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
392
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
393
|
+
[1m[36m (1.2ms)[0m [1mDROP TABLE "audit_rails_audits"[0m
|
394
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -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
|
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
1818
1818
|
[1m[35m (0.3ms)[0m rollback transaction
|
1819
|
+
Connecting to database specified by database.yml
|
1820
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1821
|
+
Processing by AnonymousController#login as HTML
|
1822
|
+
Parameters: {"id"=>"1"}
|
1823
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1825
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1827
|
+
Rendered text template (0.0ms)
|
1828
|
+
Completed 200 OK in 64ms (Views: 12.1ms | ActiveRecord: 4.5ms)
|
1829
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1831
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1832
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1833
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1834
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1835
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1836
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1837
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1840
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1842
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1843
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1845
|
+
Processing by AuditRails::AuditsController#index as XLS
|
1846
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1850
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1851
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1852
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1854
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1855
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1857
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1858
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1860
|
+
Processing by AuditRails::AuditsController#index as HTML
|
1861
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m SELECT "audit_rails_audits".* FROM "audit_rails_audits"
|
1862
|
+
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.1ms)
|
1863
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1864
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1865
|
+
Processing by AuditRails::AuditsController#create as HTML
|
1866
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1867
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1869
|
+
Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.7ms)
|
1870
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1872
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1873
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1874
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1876
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
1878
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1879
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
1880
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1881
|
+
Connecting to database specified by database.yml
|
1882
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1884
|
+
[1m[36mSQL (15.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1886
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
1887
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
1888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1889
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1891
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1892
|
+
Processing by AuditRails::AuditsController#create as HTML
|
1893
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1894
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1896
|
+
Rendered text template (0.0ms)
|
1897
|
+
Completed 200 OK in 14ms (Views: 11.2ms | ActiveRecord: 0.5ms)
|
1898
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (2.0ms)[0m [1mrollback transaction[0m
|
1900
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1901
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1902
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1904
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1905
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1907
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1908
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1910
|
+
Processing by AuditRails::AuditsController#index as XLS
|
1911
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m 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
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
1915
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1916
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1917
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1919
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1920
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1922
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1923
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1925
|
+
Processing by AuditRails::AuditsController#index as HTML
|
1926
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m SELECT "audit_rails_audits".* FROM "audit_rails_audits"
|
1927
|
+
Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms)
|
1928
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
1929
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1930
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1931
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1932
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1933
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1934
|
+
Processing by AnonymousController#login as HTML
|
1935
|
+
Parameters: {"id"=>"1"}
|
1936
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
1937
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1938
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1940
|
+
Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)
|
1941
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
1942
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
1943
|
+
Connecting to database specified by database.yml
|
1944
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
1945
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1947
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1948
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1949
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1951
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1953
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1954
|
+
Processing by AuditRails::AuditsController#create as HTML
|
1955
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1956
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1958
|
+
Rendered text template (0.0ms)
|
1959
|
+
Completed 200 OK in 19ms (Views: 15.6ms | ActiveRecord: 0.8ms)
|
1960
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1962
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1963
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1964
|
+
[1m[35mSQL (0.8ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1966
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1967
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1969
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1970
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1972
|
+
Processing by AuditRails::AuditsController#index as HTML
|
1973
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m SELECT "audit_rails_audits".* FROM "audit_rails_audits"
|
1974
|
+
Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.1ms)
|
1975
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1976
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1977
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1978
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1980
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1981
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1983
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1984
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1986
|
+
Processing by AuditRails::AuditsController#index as XLS
|
1987
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
1991
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1992
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1993
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1994
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
1995
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1996
|
+
Processing by AnonymousController#login as HTML
|
1997
|
+
Parameters: {"id"=>"1"}
|
1998
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
1999
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2000
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2002
|
+
Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.6ms)
|
2003
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2004
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2005
|
+
Connecting to database specified by database.yml
|
2006
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2007
|
+
Processing by AnonymousController#login as HTML
|
2008
|
+
Parameters: {"id"=>"1"}
|
2009
|
+
[1m[35m (1.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2011
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2013
|
+
Rendered text template (0.0ms)
|
2014
|
+
Completed 200 OK in 73ms (Views: 9.9ms | ActiveRecord: 4.2ms)
|
2015
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (2.5ms)[0m [1mrollback transaction[0m
|
2017
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2018
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
2019
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2020
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2021
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2022
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2024
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2025
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2026
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2027
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2028
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2029
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2030
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2031
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2032
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2033
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2034
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2035
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2037
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
|
2038
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2039
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2040
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2041
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2042
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2044
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2045
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2047
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2048
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2050
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2051
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2052
|
+
Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.1ms)
|
2053
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2054
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2055
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2056
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2058
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2059
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2061
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2062
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2064
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2065
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2066
|
+
Sent data audits.xls (0.4ms)
|
2067
|
+
Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.1ms)
|
2068
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2069
|
+
Connecting to database specified by database.yml
|
2070
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2071
|
+
Processing by AnonymousController#login as HTML
|
2072
|
+
Parameters: {"id"=>"1"}
|
2073
|
+
[1m[35m (1.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2075
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2077
|
+
Rendered text template (0.0ms)
|
2078
|
+
Completed 200 OK in 58ms (Views: 32.6ms | ActiveRecord: 4.6ms)
|
2079
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2081
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2082
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2083
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2085
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2087
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2088
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2089
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2090
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2091
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2092
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2093
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2094
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2095
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2096
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2097
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2098
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2099
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2101
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.5ms)
|
2102
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2103
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2105
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2106
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2108
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2109
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2111
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2112
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2114
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2115
|
+
[1m[36mAuditRails::Audit Load (0.2ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2116
|
+
Sent data audits.xls (0.7ms)
|
2117
|
+
Completed 200 OK in 17ms (Views: 0.5ms | ActiveRecord: 0.2ms)
|
2118
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2120
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2121
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2123
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2124
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2126
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2127
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2129
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2130
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2131
|
+
Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.1ms)
|
2132
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2133
|
+
Connecting to database specified by database.yml
|
2134
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2135
|
+
Processing by AnonymousController#login as HTML
|
2136
|
+
Parameters: {"id"=>"1"}
|
2137
|
+
[1m[35m (2.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2139
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2141
|
+
Rendered text template (0.0ms)
|
2142
|
+
Completed 200 OK in 56ms (Views: 29.4ms | ActiveRecord: 5.1ms)
|
2143
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2145
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2146
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2147
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2148
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2150
|
+
Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.6ms)
|
2151
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2153
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2154
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2155
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2157
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2158
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2160
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2161
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2163
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2164
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2168
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2169
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2170
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2172
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2173
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2175
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2176
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2178
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2179
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m SELECT "audit_rails_audits".* FROM "audit_rails_audits"
|
2180
|
+
Completed 200 OK in 28ms (Views: 26.9ms | ActiveRecord: 0.1ms)
|
2181
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2182
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2183
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2185
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2186
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2187
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2188
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2189
|
+
Processing by AuditRails::AuditsController#analytics as HTML
|
2190
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
2191
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2192
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2193
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2194
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2196
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2199
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
2200
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2201
|
+
Connecting to database specified by database.yml
|
2202
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2203
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2204
|
+
[1m[36mSQL (8.7ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2206
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2207
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2208
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2209
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2211
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2212
|
+
Processing by AnonymousController#login as HTML
|
2213
|
+
Parameters: {"id"=>"1"}
|
2214
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
2215
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2216
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2218
|
+
Rendered text template (0.0ms)
|
2219
|
+
Completed 200 OK in 14ms (Views: 10.0ms | ActiveRecord: 0.6ms)
|
2220
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2221
|
+
[1m[35m (2.0ms)[0m rollback transaction
|
2222
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2223
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2224
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2225
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2227
|
+
Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.6ms)
|
2228
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2229
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2230
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2231
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2232
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2233
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2234
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2235
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2236
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2237
|
+
Processing by AuditRails::AuditsController#analytics as HTML
|
2238
|
+
Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
2239
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2241
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2242
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2244
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2245
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2247
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2248
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2250
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2251
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2252
|
+
Sent data audits.xls (0.5ms)
|
2253
|
+
Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 0.1ms)
|
2254
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2255
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2256
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2257
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2259
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2260
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2262
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2263
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2265
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2266
|
+
[1m[36mAuditRails::Audit Load (0.2ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2267
|
+
Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
|
2268
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2269
|
+
Connecting to database specified by database.yml
|
2270
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2271
|
+
Processing by AnonymousController#login as HTML
|
2272
|
+
Parameters: {"id"=>"1"}
|
2273
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2275
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2277
|
+
Rendered text template (0.0ms)
|
2278
|
+
Completed 200 OK in 54ms (Views: 32.3ms | ActiveRecord: 3.9ms)
|
2279
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (2.6ms)[0m [1mrollback transaction[0m
|
2281
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2282
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2283
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2284
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2285
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2287
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2289
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2290
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
2291
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2292
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2293
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2294
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2296
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2297
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2299
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2300
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2302
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2303
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2304
|
+
Sent data audits.xls (0.8ms)
|
2305
|
+
Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.1ms)
|
2306
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2307
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2308
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2309
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2311
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2312
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2314
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2315
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2317
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2318
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2319
|
+
Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.1ms)
|
2320
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
2321
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
2322
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2323
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2324
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2326
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
|
2327
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2328
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2329
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2330
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2331
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2332
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2333
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2334
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2335
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2336
|
+
Processing by AuditRails::AuditsController#analytics as HTML
|
2337
|
+
Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
2338
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2339
|
+
Connecting to database specified by database.yml
|
2340
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2341
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2342
|
+
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
2344
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2345
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2347
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2348
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2350
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2351
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
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
|
+
[1m[35m (102.0ms)[0m rollback transaction
|
2355
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2357
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2359
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2360
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2362
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2363
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2365
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2366
|
+
[1m[36mAuditRails::Audit Load (0.1ms)[0m [1mSELECT "audit_rails_audits".* FROM "audit_rails_audits" [0m
|
2367
|
+
Sent data audits.xls (2.2ms)
|
2368
|
+
Completed 200 OK in 14ms (Views: 2.1ms | ActiveRecord: 0.1ms)
|
2369
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
2370
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2371
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2372
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2375
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2376
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2377
|
+
Processing by AuditRails::AuditsController#analytics as HTML
|
2378
|
+
Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
|
2379
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
2380
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2381
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2382
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
2383
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2385
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.6ms)
|
2386
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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')[0m
|
2387
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
2388
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2389
|
+
Processing by AnonymousController#login as HTML
|
2390
|
+
Parameters: {"id"=>"1"}
|
2391
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2393
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2395
|
+
Completed 200 OK in 5ms (Views: 0.7ms | ActiveRecord: 0.7ms)
|
2396
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2399
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2400
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2401
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2402
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2403
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2405
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2406
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2408
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2409
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2411
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2412
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2414
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2415
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2417
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2418
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2420
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2421
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2423
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2424
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2426
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
|
2427
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2428
|
+
Connecting to database specified by database.yml
|
2429
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
2430
|
+
Processing by AnonymousController#login as HTML
|
2431
|
+
Parameters: {"id"=>"1"}
|
2432
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2434
|
+
[1m[35mSQL (0.7ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2436
|
+
Rendered text template (0.0ms)
|
2437
|
+
Completed 200 OK in 57ms (Views: 31.7ms | ActiveRecord: 4.1ms)
|
2438
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (2.5ms)[0m [1mrollback transaction[0m
|
2440
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2441
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2442
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2443
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2444
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2445
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2446
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2447
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2448
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2450
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2451
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2453
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2454
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2456
|
+
Processing by AuditRails::AuditsController#index as HTML
|
2457
|
+
[1m[35mAuditRails::Audit Load (0.1ms)[0m SELECT "audit_rails_audits".* FROM "audit_rails_audits"
|
2458
|
+
Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.1ms)
|
2459
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
2460
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2461
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
2462
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2464
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2465
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2467
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2468
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2470
|
+
Processing by AuditRails::AuditsController#index as XLS
|
2471
|
+
[1m[35mAuditRails::Audit Load (0.2ms)[0m 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
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
2475
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2476
|
+
Processing by AuditRails::AuditsController#analytics as HTML
|
2477
|
+
Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
|
2478
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2479
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2480
|
+
Processing by AuditRails::AuditsController#create as HTML
|
2481
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2482
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2484
|
+
Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.6ms)
|
2485
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
2487
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2488
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2489
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
2490
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
2491
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2492
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2494
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
2495
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
2496
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2497
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2498
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2500
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2501
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2503
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2504
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2506
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2507
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2509
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
2510
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "audit_rails_audits" ("action", "controller", "created_at", "description", "updated_at", "user_name") VALUES (?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
2512
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
2513
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
2515
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, user_name AS user_name FROM "audit_rails_audits" GROUP BY user_name
|
2516
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|