event_publisher 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +49 -2
- data/lib/event_publisher/controllers/trackable.rb +30 -13
- data/lib/event_publisher/models/trackable.rb +3 -0
- data/lib/event_publisher/version.rb +1 -1
- data/spec/dummy/log/test.log +617 -0
- data/spec/dummy/spec/controllers/articles_controller_spec.rb +0 -18
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d30014ff341ff74238aebb35acac4eda63249ce6
|
4
|
+
data.tar.gz: 8922958a4f517e3140f560f8789c246f5d425f24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e52d71fa050990e28bea6157d009d5d24799a48a385f1509fde0c7c009de9971621ace90535e80aaf2155e9a60606fe04d69e967c2f7d8a66872608ff4b659b1
|
7
|
+
data.tar.gz: 2d01ab563e046b6a99a4c884884aa441bf803c29048e3596675a313922f9aad297263b102dbe56656dc3be8aa47ff9c399947188bacf4516d5918794d955f696
|
data/README.rdoc
CHANGED
@@ -1,3 +1,50 @@
|
|
1
|
-
|
1
|
+
== EventPublisher
|
2
2
|
|
3
|
-
|
3
|
+
=== Installation
|
4
|
+
|
5
|
+
`gem install event_publisher`
|
6
|
+
|
7
|
+
Or add the gem to the Gemfile
|
8
|
+
|
9
|
+
`gem 'event_publisher'`
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
=== Usage
|
14
|
+
|
15
|
+
==== Models
|
16
|
+
The trackable (user) model should look like something like this
|
17
|
+
|
18
|
+
```rb
|
19
|
+
class Trackble
|
20
|
+
trackable
|
21
|
+
end
|
22
|
+
```
|
23
|
+
|
24
|
+
Where `trackable` adds the following:
|
25
|
+
1. `has_many` relation between `users` and `event_publisher_events_trackings` table
|
26
|
+
2. An instance method called `track_event(event)` that can be called on the user object and track event.
|
27
|
+
|
28
|
+
==== Controllers
|
29
|
+
|
30
|
+
===== Tracking events
|
31
|
+
To track events in controllers, you can use the following like in any action
|
32
|
+
|
33
|
+
```rb
|
34
|
+
track_event(current_user, "Listing articles")
|
35
|
+
```
|
36
|
+
|
37
|
+
#### Migrating events after logging in
|
38
|
+
After the user logged in, you can use this method `migrate_events_after_login(current_user)` which migrates
|
39
|
+
all the events for the user before logging in. It uses cookies to store the user's ID and type to be able to
|
40
|
+
track events.
|
41
|
+
|
42
|
+
If you're using devise gem, you can use the `migrate_events_after_login` as follows:
|
43
|
+
|
44
|
+
```rb
|
45
|
+
# In application_controller
|
46
|
+
def after_sign_in_path_for(resource)
|
47
|
+
migrate_events_after_login(resource)
|
48
|
+
super
|
49
|
+
end
|
50
|
+
```
|
@@ -1,5 +1,8 @@
|
|
1
1
|
module EventPublisher
|
2
2
|
module Trackable
|
3
|
+
# This method logs the user's event.
|
4
|
+
# Usage:
|
5
|
+
# track_event(current_user, "Logged in")
|
3
6
|
def track_event(user, event)
|
4
7
|
user ||= current_event_publisher_user || current_anonymous_user
|
5
8
|
|
@@ -8,6 +11,26 @@ module EventPublisher
|
|
8
11
|
user.track_event(event) # Creating the event
|
9
12
|
end
|
10
13
|
|
14
|
+
# This method is called after the user logged in to migrate
|
15
|
+
# the events stored before logging in (as anonymous user).
|
16
|
+
# Usage:
|
17
|
+
# def after_login_path(resource)
|
18
|
+
# migrate_events_after_login(resource)
|
19
|
+
# end
|
20
|
+
def migrate_events_after_login(user)
|
21
|
+
previously_logged_in = current_event_publisher_user
|
22
|
+
|
23
|
+
# Moving the events of the previosuly logged in user to the current user
|
24
|
+
previously_logged_in.event_trackings.update_all(
|
25
|
+
trackable_type: user.class.name,
|
26
|
+
trackable_id: user.id
|
27
|
+
)
|
28
|
+
|
29
|
+
# Setting/overriding the cookies for the current user
|
30
|
+
set_cookies_for(user)
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
11
34
|
# A method used to create an anonymous user to attach
|
12
35
|
# the events to.
|
13
36
|
def current_anonymous_user
|
@@ -15,25 +38,19 @@ module EventPublisher
|
|
15
38
|
EventPublisher::AnonymousUser.create
|
16
39
|
end
|
17
40
|
|
41
|
+
# Sets the event_publisher cookies. The cookies are:
|
42
|
+
# event_publisher_user_id: stores the user's id
|
43
|
+
# event_publisher_user_type: stores the user type. For exaple AnonymousUser or User
|
18
44
|
def set_cookies_for(user)
|
19
45
|
# Save the user ID in a signed cookie so no one can tweak it
|
20
46
|
cookies.signed[:event_publisher_user_id] = user.id
|
21
47
|
cookies.signed[:event_publisher_user_type] = user.class.name
|
22
48
|
end
|
23
49
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
previously_logged_in.event_trackings.update_all(
|
29
|
-
trackable_type: user.class.name,
|
30
|
-
trackable_id: user.id
|
31
|
-
)
|
32
|
-
|
33
|
-
# Setting/overriding the cookies for the current user
|
34
|
-
set_cookies_for(user)
|
35
|
-
end
|
36
|
-
|
50
|
+
# Returns the current_user for event_publisher.
|
51
|
+
# It's different from current_user where it finds
|
52
|
+
# the user using the cookies event_publisher_user_type
|
53
|
+
# and event_publisher_user_id
|
37
54
|
def current_event_publisher_user
|
38
55
|
klass = cookies.signed[:event_publisher_user_type]
|
39
56
|
user_id = cookies.signed[:event_publisher_user_id]
|
@@ -9,6 +9,9 @@ module EventPublisher
|
|
9
9
|
end
|
10
10
|
|
11
11
|
module InstanceMethods
|
12
|
+
# Tracks an event for a user.
|
13
|
+
# Usage:
|
14
|
+
# current_user.track_event("Logged in")
|
12
15
|
def track_event(event)
|
13
16
|
event = Event.where(name: event).first_or_create if event.is_a?(String)
|
14
17
|
self.event_trackings.create(event_id: event.id)
|
data/spec/dummy/log/test.log
CHANGED
@@ -20384,3 +20384,620 @@ Completed 200 OK in 8.9ms (Views: 0.7ms | ActiveRecord: 2.8ms)
|
|
20384
20384
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20385
20385
|
[1m[35mSQL (0.3ms)[0m SELECT "event_publisher_event_trackings".id FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."event_id" = 1077
|
20386
20386
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20387
|
+
Connecting to database specified by database.yml
|
20388
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
20389
|
+
[1m[35mSQL (13.3ms)[0m INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20390
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
20391
|
+
[1m[35m (0.3ms)[0m BEGIN
|
20392
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
20393
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20394
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20395
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "event_publisher_anonymous_users"
|
20396
|
+
[1m[36m (1.8ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 419 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'[0m
|
20397
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20398
|
+
Processing by ArticlesController#index as HTML
|
20399
|
+
[1m[36mArticle Load (1.2ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20400
|
+
[1m[35mEventPublisher::AnonymousUser Load (0.5ms)[0m SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 419 LIMIT 1
|
20401
|
+
[1m[36mEventPublisher::Event Load (1.2ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20402
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20403
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20404
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20405
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20406
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1078], ["ip", nil], ["operation_system", nil], ["trackable_id", 419], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20407
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20408
|
+
Rendered articles/index.html.erb within layouts/application (0.3ms)
|
20409
|
+
Completed 200 OK in 31.0ms (Views: 8.6ms | ActiveRecord: 6.7ms)
|
20410
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20411
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20412
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 419 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
|
20413
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20414
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20415
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20416
|
+
Processing by ArticlesController#index as HTML
|
20417
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20418
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.4ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20419
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20420
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20421
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20422
|
+
[1m[36mEventPublisher::Event Load (0.2ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20423
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20424
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20425
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20426
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20427
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1079], ["ip", nil], ["operation_system", nil], ["trackable_id", 420], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20428
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20429
|
+
Completed 200 OK in 9.5ms (Views: 0.6ms | ActiveRecord: 2.9ms)
|
20430
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20431
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20432
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20433
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20434
|
+
Processing by ArticlesController#index as HTML
|
20435
|
+
[1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles"
|
20436
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.3ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20437
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20438
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20439
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20440
|
+
[1m[36mEventPublisher::Event Load (0.4ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20441
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20442
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20443
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20444
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20445
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1080], ["ip", nil], ["operation_system", nil], ["trackable_id", 421], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20446
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20447
|
+
Completed 200 OK in 8.6ms (Views: 0.7ms | ActiveRecord: 2.8ms)
|
20448
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "event_publisher_anonymous_users"
|
20449
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20450
|
+
Processing by ArticlesController#index as HTML
|
20451
|
+
[1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles"
|
20452
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.4ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20453
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20454
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20455
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20456
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20457
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20458
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1080], ["ip", nil], ["operation_system", nil], ["trackable_id", 422], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20459
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20460
|
+
Completed 200 OK in 7.5ms (Views: 0.6ms | ActiveRecord: 2.5ms)
|
20461
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20462
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
20463
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20464
|
+
Processing by ArticlesController#index as HTML
|
20465
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20466
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.4ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20467
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20468
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20469
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20470
|
+
[1m[36mEventPublisher::Event Load (0.2ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20471
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20472
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20473
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20474
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20475
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1081], ["ip", nil], ["operation_system", nil], ["trackable_id", 423], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20476
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20477
|
+
Completed 200 OK in 8.2ms (Views: 0.6ms | ActiveRecord: 2.4ms)
|
20478
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
20479
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20480
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
20481
|
+
[1m[36mUser Exists (2.9ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
20482
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$dCTqjmpdgqCjE4St8uOErO1Wq3TMncYqqLbgfzmAR4pRaVw6UeA.6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20483
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20484
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20485
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20486
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20487
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20488
|
+
Processing by ArticlesController#show as HTML
|
20489
|
+
Parameters: {"id"=>"276"}
|
20490
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 450 LIMIT 1
|
20491
|
+
[1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1[0m [["id", "276"]]
|
20492
|
+
[1m[35mEventPublisher::Event Load (0.2ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20493
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20494
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20495
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20496
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20497
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1082], ["ip", nil], ["operation_system", nil], ["trackable_id", 450], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20498
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20499
|
+
Completed 200 OK in 7.9ms (Views: 1.6ms | ActiveRecord: 2.1ms)
|
20500
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20501
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
20502
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20503
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
20504
|
+
[1m[36mUser Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
20505
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$532EnKHJJo3YwwLK18QXCukRQ//zxlIH6nmF1XBT3GbkvxiZPQFYa"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20506
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20507
|
+
Processing by ArticlesController#show as HTML
|
20508
|
+
Parameters: {"id"=>"275"}
|
20509
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 451 LIMIT 1
|
20510
|
+
[1m[36mArticle Load (0.3ms)[0m [1mSELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1[0m [["id", "275"]]
|
20511
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20512
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20513
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20514
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20515
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20516
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1083], ["ip", nil], ["operation_system", nil], ["trackable_id", 451], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20517
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20518
|
+
Completed 200 OK in 6.4ms (Views: 0.7ms | ActiveRecord: 2.3ms)
|
20519
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
20520
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20521
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
20522
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20523
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$jBoP/QTpLDWNPFj3tZhMKe/2jgKzygwNpIiTjVjUcvCSmvhsrZeLC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20524
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20525
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20526
|
+
Processing by ArticlesController#index as HTML
|
20527
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20528
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 452 LIMIT 1[0m
|
20529
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20530
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20531
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20532
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20533
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20534
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1084], ["ip", nil], ["operation_system", nil], ["trackable_id", 452], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20535
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20536
|
+
Completed 200 OK in 7.5ms (Views: 0.7ms | ActiveRecord: 2.3ms)
|
20537
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20538
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20540
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20541
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
20542
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$7wi9wIiNR72P2I6S.rX/l.CBg1PdTh.GbVL9f8dT6FEVhBRwr.fSe"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20543
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20544
|
+
Processing by ArticlesController#index as HTML
|
20545
|
+
[1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles"
|
20546
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 453 LIMIT 1[0m
|
20547
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20548
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20549
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20550
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20551
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20552
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1085], ["ip", nil], ["operation_system", nil], ["trackable_id", 453], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20553
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20554
|
+
Completed 200 OK in 8.5ms (Views: 0.9ms | ActiveRecord: 2.4ms)
|
20555
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20556
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20557
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
20558
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20559
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$/yJmOjmbkzzz9RyMXhacHO/6ZjEEIkyzrCEmeqSTSv4KZEi6ynTo."], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20560
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20561
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20562
|
+
Processing by ArticlesController#index as HTML
|
20563
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20564
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 454 LIMIT 1[0m
|
20565
|
+
[1m[35mEventPublisher::Event Load (0.2ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20566
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20567
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20568
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20569
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20570
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1086], ["ip", nil], ["operation_system", nil], ["trackable_id", 454], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20571
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20572
|
+
Completed 200 OK in 29.0ms (Views: 0.7ms | ActiveRecord: 2.5ms)
|
20573
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20574
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20575
|
+
Processing by ArticlesController#index as HTML
|
20576
|
+
[1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20577
|
+
[1m[35mEventPublisher::AnonymousUser Load (0.3ms)[0m SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1
|
20578
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20579
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20580
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20581
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20582
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20583
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1086], ["ip", nil], ["operation_system", nil], ["trackable_id", 424], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20584
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20585
|
+
Completed 200 OK in 7.4ms (Views: 0.6ms | ActiveRecord: 2.4ms)
|
20586
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20587
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20588
|
+
Processing by ArticlesController#index as HTML
|
20589
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20590
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.3ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 424 LIMIT 1[0m
|
20591
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20592
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20593
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1086], ["ip", nil], ["operation_system", nil], ["trackable_id", 424], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20594
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20595
|
+
Completed 200 OK in 6.6ms (Views: 0.6ms | ActiveRecord: 1.8ms)
|
20596
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 454 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20597
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20598
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20599
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
20600
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20601
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$Tf0ZBaKMReA5xpucaMQQwuVqVbh1D8wf3f5b1hR3Lwk5J2e7BJS/6"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20602
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20603
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20604
|
+
Processing by ArticlesController#index as HTML
|
20605
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20606
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 455 LIMIT 1[0m
|
20607
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20608
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20609
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20610
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20612
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1087], ["ip", nil], ["operation_system", nil], ["trackable_id", 455], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20613
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20614
|
+
Completed 200 OK in 8.0ms (Views: 0.7ms | ActiveRecord: 2.6ms)
|
20615
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20616
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20617
|
+
Processing by ArticlesController#index as HTML
|
20618
|
+
[1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20619
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 455 LIMIT 1
|
20620
|
+
[1m[36mEventPublisher::Event Load (0.2ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20621
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20622
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1087], ["ip", nil], ["operation_system", nil], ["trackable_id", 455], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20623
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20624
|
+
Completed 200 OK in 7.5ms (Views: 0.6ms | ActiveRecord: 1.7ms)
|
20625
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 455 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20626
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20627
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20628
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20629
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20630
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20631
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20632
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20633
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20634
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20635
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20636
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20637
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20638
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20639
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20640
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20641
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20642
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20643
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20644
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 425], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20645
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20646
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 425 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
|
20647
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20648
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20649
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$d8dGUbu63kgbzkF95Njc2.v0Jqh.eVC9kgIWYeThbEgganOFdbnvO"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20650
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20651
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20652
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20653
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20654
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20655
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20656
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20657
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Login"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20658
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20659
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20660
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "Logout"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20661
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20662
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20663
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1089], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 426], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20664
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20665
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20666
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1089], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 426], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20667
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20668
|
+
[1m[35mSQL (0.3ms)[0m SELECT "event_publisher_event_trackings"."id" FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 426 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
|
20669
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20670
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20671
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20672
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20673
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20674
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20675
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1090], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20676
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20677
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20678
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20679
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20680
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20681
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20682
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20683
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1091], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20684
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20685
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20686
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1091], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20687
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20688
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20689
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00], ["event_id", 1091], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:43:55 UTC +00:00]]
|
20690
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20691
|
+
[1m[36mSQL (0.3ms)[0m [1mSELECT "event_publisher_event_trackings".id FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."event_id" = 1091[0m
|
20692
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20693
|
+
Connecting to database specified by database.yml
|
20694
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
20695
|
+
[1m[35mSQL (13.1ms)[0m INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20696
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
20697
|
+
[1m[35m (0.3ms)[0m BEGIN
|
20698
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20699
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20700
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20701
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20702
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1092], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20703
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20704
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20705
|
+
[1m[35m (0.2ms)[0m BEGIN
|
20706
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
20707
|
+
[1m[35mUser Exists (1.7ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20708
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$0ASX4Mj5Wprfer.NvLIXRer.L2rt.RJMspsPoT19Z/RdjyL9uXNpW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20709
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20710
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20711
|
+
Processing by ArticlesController#index as HTML
|
20712
|
+
[1m[35mArticle Load (1.1ms)[0m SELECT "articles".* FROM "articles"
|
20713
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 457 LIMIT 1[0m
|
20714
|
+
[1m[35mEventPublisher::Event Load (0.6ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20715
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20716
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20717
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20718
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20719
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1093], ["ip", nil], ["operation_system", nil], ["trackable_id", 457], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20720
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20721
|
+
Rendered articles/index.html.erb within layouts/application (0.2ms)
|
20722
|
+
Completed 200 OK in 26.8ms (Views: 7.2ms | ActiveRecord: 3.6ms)
|
20723
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20724
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
20725
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20726
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20727
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
20728
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$GBse/dTlAtkzAtnPROTV2uSBLg800mVbKITN3MKtsIZ9MP8C8m0jC"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20729
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20730
|
+
Processing by ArticlesController#index as HTML
|
20731
|
+
[1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles"
|
20732
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 458 LIMIT 1[0m
|
20733
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20734
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20735
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20736
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20737
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20738
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1094], ["ip", nil], ["operation_system", nil], ["trackable_id", 458], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20739
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20740
|
+
Completed 200 OK in 7.7ms (Views: 0.7ms | ActiveRecord: 2.3ms)
|
20741
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20742
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20743
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
20744
|
+
[1m[35mUser Exists (0.4ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20745
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$1GnyDm3CGkHZDhYXc4VeaO3JXNynqMpE9b0jp3z4O0g4DC3f93BqW"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20746
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20747
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20748
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("author_id", "content", "created_at", "name", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["author_id", nil], ["content", nil], ["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Article 1"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20749
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20750
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20751
|
+
Processing by ArticlesController#show as HTML
|
20752
|
+
Parameters: {"id"=>"278"}
|
20753
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 459 LIMIT 1[0m
|
20754
|
+
[1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1 [["id", "278"]]
|
20755
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20756
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20757
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20758
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20759
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20760
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1095], ["ip", nil], ["operation_system", nil], ["trackable_id", 459], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20761
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20762
|
+
Completed 200 OK in 7.6ms (Views: 1.3ms | ActiveRecord: 2.5ms)
|
20763
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20764
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20765
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20766
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20767
|
+
[1m[35mUser Exists (0.6ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20768
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$tz1Y679PS2jr/kEGdwD1Yeye1RsEGdfzNU0VJxXbSIzhmM3WAc63C"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20769
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20770
|
+
Processing by ArticlesController#show as HTML
|
20771
|
+
Parameters: {"id"=>"277"}
|
20772
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 460 LIMIT 1[0m
|
20773
|
+
[1m[35mArticle Load (0.3ms)[0m SELECT "articles".* FROM "articles" WHERE "articles"."id" = $1 LIMIT 1 [["id", "277"]]
|
20774
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20775
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20776
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20777
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20778
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20779
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1096], ["ip", nil], ["operation_system", nil], ["trackable_id", 460], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20780
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20781
|
+
Completed 200 OK in 6.7ms (Views: 0.7ms | ActiveRecord: 2.3ms)
|
20782
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
20783
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20784
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20785
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
20786
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$hp.efDOCIjnflysQP55t5Opny2XUoducUWwjfCutXrO4VdQXCyA0i"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20787
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20788
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20789
|
+
Processing by ArticlesController#index as HTML
|
20790
|
+
[1m[36mArticle Load (0.6ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20791
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 461 LIMIT 1
|
20792
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20793
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20794
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20795
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20796
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20797
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1097], ["ip", nil], ["operation_system", nil], ["trackable_id", 461], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20798
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20799
|
+
Completed 200 OK in 8.1ms (Views: 0.7ms | ActiveRecord: 2.7ms)
|
20800
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20801
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20802
|
+
Processing by ArticlesController#index as HTML
|
20803
|
+
[1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles"
|
20804
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.7ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20805
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20806
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20807
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20808
|
+
[1m[36mEventPublisher::Event Load (0.4ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20809
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
20810
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1097], ["ip", nil], ["operation_system", nil], ["trackable_id", 427], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20811
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20812
|
+
Completed 200 OK in 15.5ms (Views: 0.6ms | ActiveRecord: 5.1ms)
|
20813
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20814
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20815
|
+
Processing by ArticlesController#index as HTML
|
20816
|
+
[1m[36mArticle Load (0.4ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20817
|
+
[1m[35mEventPublisher::AnonymousUser Load (0.4ms)[0m SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 427 LIMIT 1
|
20818
|
+
[1m[36mEventPublisher::Event Load (0.4ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20819
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20820
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1097], ["ip", nil], ["operation_system", nil], ["trackable_id", 427], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20821
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20822
|
+
Completed 200 OK in 6.8ms (Views: 0.7ms | ActiveRecord: 1.9ms)
|
20823
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 461 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20824
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20825
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20826
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20827
|
+
[1m[36mUser Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1[0m
|
20828
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$JUfZan9mU7qCXNkDgwB.queMdE5IzbCywB4XGEbW/OBH/0BruzF12"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20829
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20830
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20831
|
+
Processing by ArticlesController#index as HTML
|
20832
|
+
[1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20833
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 462 LIMIT 1
|
20834
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20835
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20836
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20837
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20838
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20839
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1098], ["ip", nil], ["operation_system", nil], ["trackable_id", 462], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20840
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20841
|
+
Completed 200 OK in 7.3ms (Views: 0.7ms | ActiveRecord: 2.1ms)
|
20842
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20843
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20844
|
+
Processing by ArticlesController#index as HTML
|
20845
|
+
[1m[35mArticle Load (0.4ms)[0m SELECT "articles".* FROM "articles"
|
20846
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = 462 LIMIT 1[0m
|
20847
|
+
[1m[35mEventPublisher::Event Load (0.3ms)[0m SELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1
|
20848
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20849
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00], ["event_id", 1098], ["ip", nil], ["operation_system", nil], ["trackable_id", 462], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:09 UTC +00:00]]
|
20850
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20851
|
+
Completed 200 OK in 7.1ms (Views: 0.8ms | ActiveRecord: 1.7ms)
|
20852
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 462 AND "event_publisher_event_trackings"."trackable_type" = 'User'
|
20853
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20854
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20855
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" [0m
|
20856
|
+
Processing by ArticlesController#index as HTML
|
20857
|
+
[1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles"
|
20858
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.7ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20859
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
20860
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20861
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20862
|
+
[1m[36mEventPublisher::Event Load (0.4ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20863
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20864
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20865
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20866
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20867
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1099], ["ip", nil], ["operation_system", nil], ["trackable_id", 428], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20868
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20869
|
+
Completed 200 OK in 33.5ms (Views: 0.7ms | ActiveRecord: 3.9ms)
|
20870
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20871
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
20872
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20873
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20874
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20875
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20876
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "event_publisher_anonymous_users"
|
20877
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 429 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'[0m
|
20878
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20879
|
+
Processing by ArticlesController#index as HTML
|
20880
|
+
[1m[36mArticle Load (0.5ms)[0m [1mSELECT "articles".* FROM "articles" [0m
|
20881
|
+
[1m[35mEventPublisher::AnonymousUser Load (0.4ms)[0m SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 429 LIMIT 1
|
20882
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20884
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20885
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20886
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20887
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1100], ["ip", nil], ["operation_system", nil], ["trackable_id", 429], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20888
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20889
|
+
Completed 200 OK in 7.6ms (Views: 0.6ms | ActiveRecord: 2.2ms)
|
20890
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings"
|
20891
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20892
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 429 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
|
20893
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
20894
|
+
[1m[35m (0.1ms)[0m BEGIN
|
20895
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20896
|
+
Processing by ArticlesController#index as HTML
|
20897
|
+
[1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles"
|
20898
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.3ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20899
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20900
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20901
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20902
|
+
[1m[36mEventPublisher::Event Load (0.2ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20903
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20904
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20905
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20906
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20907
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1101], ["ip", nil], ["operation_system", nil], ["trackable_id", 430], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20909
|
+
Completed 200 OK in 8.3ms (Views: 0.6ms | ActiveRecord: 2.5ms)
|
20910
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_anonymous_users"
|
20911
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20912
|
+
Processing by ArticlesController#index as HTML
|
20913
|
+
[1m[35mArticle Load (0.5ms)[0m SELECT "articles".* FROM "articles"
|
20914
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.4ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20915
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
20916
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20917
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20918
|
+
[1m[36mEventPublisher::Event Load (0.3ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20919
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20920
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1101], ["ip", nil], ["operation_system", nil], ["trackable_id", 431], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20921
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20922
|
+
Completed 200 OK in 7.5ms (Views: 0.6ms | ActiveRecord: 2.6ms)
|
20923
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_anonymous_users" [0m
|
20924
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20925
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20926
|
+
Processing by ArticlesController#index as HTML
|
20927
|
+
[1m[35mArticle Load (0.6ms)[0m SELECT "articles".* FROM "articles"
|
20928
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.3ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" IS NULL LIMIT 1[0m
|
20929
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20930
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20931
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20932
|
+
[1m[36mEventPublisher::Event Load (0.2ms)[0m [1mSELECT "event_publisher_events".* FROM "event_publisher_events" WHERE "event_publisher_events"."name" = 'Listing articles' LIMIT 1[0m
|
20933
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20934
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Listing articles"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20935
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20936
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20937
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1102], ["ip", nil], ["operation_system", nil], ["trackable_id", 432], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20938
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20939
|
+
Completed 200 OK in 8.3ms (Views: 0.6ms | ActiveRecord: 2.5ms)
|
20940
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20941
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20942
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20943
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20944
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20945
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20946
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20947
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20948
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20949
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20950
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20951
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20952
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20953
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20954
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20955
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20956
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20957
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20958
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 433], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20959
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20960
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 433 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
|
20961
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
20962
|
+
[1m[35mUser Exists (0.3ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."email" = 'user@example.com' LIMIT 1
|
20963
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "last_sign_in_at", "last_sign_in_ip", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "user@example.com"], ["encrypted_password", "$2a$04$SUIcebVHn5o2B/NV6j4Wyu6F/EF9Z3xycrxrrA3Bg1vPI8RKn/Mfi"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20964
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20965
|
+
[1m[36mEventPublisher::AnonymousUser Load (0.4ms)[0m [1mSELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = 433 LIMIT 1[0m
|
20966
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "event_publisher_event_trackings" SET "trackable_type" = 'User', "trackable_id" = 463 WHERE "event_publisher_event_trackings"."trackable_id" = 433 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'
|
20967
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 463 AND "event_publisher_event_trackings"."trackable_type" = 'User'[0m
|
20968
|
+
[1m[35mEventPublisher::AnonymousUser Load (0.3ms)[0m SELECT "event_publisher_anonymous_users".* FROM "event_publisher_anonymous_users" WHERE "event_publisher_anonymous_users"."id" = $1 LIMIT 1 [["id", 433]]
|
20969
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 433 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'[0m
|
20970
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20971
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20972
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20973
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_anonymous_users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20974
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20975
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20976
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Login"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20977
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20978
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20979
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "Logout"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20980
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20981
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20982
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1104], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 434], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20984
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20985
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1104], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 434], ["trackable_type", "EventPublisher::AnonymousUser"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20986
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20987
|
+
[1m[36mSQL (0.3ms)[0m [1mSELECT "event_publisher_event_trackings"."id" FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."trackable_id" = 434 AND "event_publisher_event_trackings"."trackable_type" = 'EventPublisher::AnonymousUser'[0m
|
20988
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
20989
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
20990
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20991
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_events" ("created_at", "name", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["name", "User logged in"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20992
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
20993
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
20994
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1105], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20995
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
20996
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
20997
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1105], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
20998
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
20999
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
21000
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "event_publisher_event_trackings" ("created_at", "event_id", "ip", "operation_system", "trackable_id", "trackable_type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00], ["event_id", 1105], ["ip", "127.0.0.1"], ["operation_system", "Mac OSX"], ["trackable_id", 1], ["trackable_type", "User"], ["updated_at", Sun, 17 Aug 2014 21:44:10 UTC +00:00]]
|
21001
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
21002
|
+
[1m[35mSQL (0.3ms)[0m SELECT "event_publisher_event_trackings".id FROM "event_publisher_event_trackings" WHERE "event_publisher_event_trackings"."event_id" = 1105
|
21003
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
@@ -1,23 +1,5 @@
|
|
1
1
|
require 'rails_helper'
|
2
2
|
|
3
|
-
# This spec was generated by rspec-rails when you ran the scaffold generator.
|
4
|
-
# It demonstrates how one might use RSpec to specify the controller code that
|
5
|
-
# was generated by Rails when you ran the scaffold generator.
|
6
|
-
#
|
7
|
-
# It assumes that the implementation code is generated by the rails scaffold
|
8
|
-
# generator. If you are using any extension libraries to generate different
|
9
|
-
# controller code, this generated spec may or may not pass.
|
10
|
-
#
|
11
|
-
# It only uses APIs available in rails and/or rspec-rails. There are a number
|
12
|
-
# of tools you can use to make these specs even more expressive, but we're
|
13
|
-
# sticking to rails and rspec-rails APIs to keep things simple and stable.
|
14
|
-
#
|
15
|
-
# Compared to earlier versions of this generator, there is very limited use of
|
16
|
-
# stubs and message expectations in this spec. Stubs are only used when there
|
17
|
-
# is no simpler way to get a handle on the object needed for the example.
|
18
|
-
# Message expectations are only used when there is no simpler way to specify
|
19
|
-
# that an instance is receiving a specific message.
|
20
|
-
|
21
3
|
RSpec.describe ArticlesController, :type => :controller do
|
22
4
|
shared_examples "setting event publisher cookies" do |action, params|
|
23
5
|
it "should save the cookies of the current logged in user" do
|