user_notifier 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/workers/user_notifier/email_worker.rb +1 -4
- data/lib/user_notifier/models/base.rb +8 -0
- data/lib/user_notifier/version.rb +1 -1
- data/spec/dummy/log/test.log +246 -0
- 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: cdd2ab094e02c99e723edbbe759fdb9e1f89e043
|
4
|
+
data.tar.gz: bdaf02d80f56b0a8bc36f2a3f8baf64d7739daed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2210ddc1d6217c723e64cbb9d0bd473eae06fe891b69148bf40ff2343082d1e9137dc1ba88c68cc6453c5855713c68eb2d906324e9015fd4fa35f28cb2df1b51
|
7
|
+
data.tar.gz: 8352e2a9266fb860f0e8196084f07a66210f35e15f095f5465aef015d182f911fdb8582b5ef3f842b8fbd38ef107f23c73766a8b58d890ace4be42e161b4f00d
|
@@ -7,7 +7,7 @@ class UserNotifier::EmailWorker
|
|
7
7
|
# We don't want to raise exceptions in case our notification does not exist in the database
|
8
8
|
if resource
|
9
9
|
resource.update_attribute :sent_at, DateTime.now
|
10
|
-
|
10
|
+
resource.deliver_without_worker
|
11
11
|
else
|
12
12
|
raise "Notification #{notification_id} not found.. sending to retry queue"
|
13
13
|
end
|
@@ -18,7 +18,4 @@ class UserNotifier::EmailWorker
|
|
18
18
|
@klass ||= Object.const_get(model_name)
|
19
19
|
end
|
20
20
|
|
21
|
-
def mailer
|
22
|
-
UserNotifier::Mailer
|
23
|
-
end
|
24
21
|
end
|
@@ -26,6 +26,14 @@ class UserNotifier::Base < ActiveRecord::Base
|
|
26
26
|
UserNotifier::EmailWorker.perform_async(self.class.name.to_s, self.id)
|
27
27
|
end
|
28
28
|
|
29
|
+
def deliver_without_worker
|
30
|
+
mailer.notify(self).deliver
|
31
|
+
end
|
32
|
+
|
33
|
+
def mailer
|
34
|
+
UserNotifier::Mailer
|
35
|
+
end
|
36
|
+
|
29
37
|
private
|
30
38
|
def self.user_association_name
|
31
39
|
UserNotifier.user_class_name.downcase.to_sym
|
data/spec/dummy/log/test.log
CHANGED
@@ -552,3 +552,249 @@ UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
|
|
552
552
|
|
553
553
|
UserNotifier::Mailer#notify: processed outbound mail in 2.0ms
|
554
554
|
[1m[35m (0.6ms)[0m rollback transaction
|
555
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
556
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
557
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
558
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
560
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
561
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
562
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
563
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
564
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
565
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
566
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
568
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
569
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
570
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
571
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
572
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
573
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
574
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
576
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
577
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
578
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
579
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
580
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
581
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.758932"], ["updated_at", "2015-05-14 19:15:21.758932"]]
|
582
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
583
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
584
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.769224"], ["updated_at", "2015-05-14 19:15:21.769224"]]
|
585
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
586
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
587
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
588
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
589
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.780969"], ["updated_at", "2015-05-14 19:15:21.780969"]]
|
590
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
591
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
592
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.783173"], ["updated_at", "2015-05-14 19:15:21.783173"]]
|
593
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
594
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
595
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_notifications" ("template_name", "locale", "from_email", "from_name", "order_id", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["order_id", 1], ["user_id", 1]]
|
596
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
597
|
+
[1m[36m (2.2ms)[0m [1mrollback transaction[0m
|
598
|
+
[1m[35m (0.0ms)[0m begin transaction
|
599
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
600
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.817003"], ["updated_at", "2015-05-14 19:15:21.817003"]]
|
601
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
602
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
603
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.818416"], ["updated_at", "2015-05-14 19:15:21.818416"]]
|
604
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
605
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
606
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "order_notifications" ("template_name", "locale", "from_email", "from_name", "order_id", "user_id") VALUES (?, ?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["order_id", 1], ["user_id", 1]]
|
607
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
608
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
610
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
611
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.822261"], ["updated_at", "2015-05-14 19:15:21.822261"]]
|
612
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
613
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
614
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.823632"], ["updated_at", "2015-05-14 19:15:21.823632"]]
|
615
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
616
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
617
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "order_notifications" ("template_name", "locale", "from_email", "from_name", "order_id", "user_id") VALUES (?, ?, ?, ?, ?, ?)[0m [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["order_id", 1], ["user_id", 1]]
|
618
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
619
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
620
|
+
[1m[35m (0.1ms)[0m begin transaction
|
621
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
622
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.829323"], ["updated_at", "2015-05-14 19:15:21.829323"]]
|
623
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
624
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
625
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.831296"], ["updated_at", "2015-05-14 19:15:21.831296"]]
|
626
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
627
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
628
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
629
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
630
|
+
[1m[35m (5.7ms)[0m rollback transaction
|
631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
632
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
633
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.846683"], ["updated_at", "2015-05-14 19:15:21.846683"]]
|
634
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
635
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
636
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.849351"], ["updated_at", "2015-05-14 19:15:21.849351"]]
|
637
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
638
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
639
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
640
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
641
|
+
[1m[36mUserNotification Load (0.1ms)[0m [1mSELECT "user_notifications".* FROM "user_notifications" ORDER BY "user_notifications"."id" DESC LIMIT 1[0m
|
642
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
643
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
644
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
645
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.862230"], ["updated_at", "2015-05-14 19:15:21.862230"]]
|
646
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
647
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
648
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.863716"], ["updated_at", "2015-05-14 19:15:21.863716"]]
|
649
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
650
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
651
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
652
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
653
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "user_notifications" WHERE "user_notifications"."template_name" = ? AND "user_notifications"."user_id" = 1[0m [["template_name", "test"]]
|
654
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "user_notifications"
|
655
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
656
|
+
[1m[35m (0.1ms)[0m begin transaction
|
657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
658
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.872325"], ["updated_at", "2015-05-14 19:15:21.872325"]]
|
659
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
660
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
661
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.874349"], ["updated_at", "2015-05-14 19:15:21.874349"]]
|
662
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
663
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
665
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
666
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "user_notifications" WHERE "user_notifications"."template_name" = ? AND "user_notifications"."user_id" = 1 [["template_name", "another_test"]]
|
667
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
668
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "another_test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
669
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
670
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "user_notifications"
|
671
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
672
|
+
[1m[35m (0.1ms)[0m begin transaction
|
673
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
674
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.882759"], ["updated_at", "2015-05-14 19:15:21.882759"]]
|
675
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
676
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
677
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.884147"], ["updated_at", "2015-05-14 19:15:21.884147"]]
|
678
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
679
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
680
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
681
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
682
|
+
[1m[35mUserNotification Load (0.1ms)[0m SELECT "user_notifications".* FROM "user_notifications" ORDER BY "user_notifications"."id" DESC LIMIT 1
|
683
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
684
|
+
[1m[35m (0.0ms)[0m begin transaction
|
685
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
686
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.889135"], ["updated_at", "2015-05-14 19:15:21.889135"]]
|
687
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
688
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
689
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.890622"], ["updated_at", "2015-05-14 19:15:21.890622"]]
|
690
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
691
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
692
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
693
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
694
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
695
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
696
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
697
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.898583"], ["updated_at", "2015-05-14 19:15:21.898583"]]
|
698
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
699
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
700
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.901564"], ["updated_at", "2015-05-14 19:15:21.901564"]]
|
701
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
702
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
703
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?)[0m [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
705
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
706
|
+
[1m[35m (0.1ms)[0m begin transaction
|
707
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
708
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?) [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.918095"], ["updated_at", "2015-05-14 19:15:21.918095"]]
|
709
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
710
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
711
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "title", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["user_id", 1], ["title", "test"], ["created_at", "2015-05-14 19:15:21.920071"], ["updated_at", "2015-05-14 19:15:21.920071"]]
|
712
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
713
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
714
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
715
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
716
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
717
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
718
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
719
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:21.930147"], ["updated_at", "2015-05-14 19:15:21.930147"]]
|
720
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
721
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
722
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
723
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
724
|
+
Rendered user_notifier/mailer/test_subject.en.text.erb (0.9ms)
|
725
|
+
Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.2ms)
|
726
|
+
|
727
|
+
UserNotifier::Mailer#notify: processed outbound mail in 156.5ms
|
728
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
729
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
730
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
731
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.099233"], ["updated_at", "2015-05-14 19:15:22.099233"]]
|
732
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
733
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
734
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
735
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
736
|
+
Rendered user_notifier/mailer/test_subject.en.text.erb (0.0ms)
|
737
|
+
Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
|
738
|
+
|
739
|
+
UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
|
740
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
741
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
742
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
743
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.105630"], ["updated_at", "2015-05-14 19:15:22.105630"]]
|
744
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
745
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
746
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "pt"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
747
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
748
|
+
Rendered user_notifier/mailer/test_subject.pt.text.erb (0.3ms)
|
749
|
+
Rendered user_notifier/mailer/test.pt.html.erb within layouts/email (0.3ms)
|
750
|
+
|
751
|
+
UserNotifier::Mailer#notify: processed outbound mail in 27.5ms
|
752
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
753
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
754
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
755
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.138234"], ["updated_at", "2015-05-14 19:15:22.138234"]]
|
756
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
757
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
758
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "pt"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
759
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
760
|
+
Rendered user_notifier/mailer/test_subject.pt.text.erb (0.0ms)
|
761
|
+
Rendered user_notifier/mailer/test.pt.html.erb within layouts/email (0.0ms)
|
762
|
+
|
763
|
+
UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
|
764
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
765
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
766
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
767
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.145070"], ["updated_at", "2015-05-14 19:15:22.145070"]]
|
768
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
769
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
770
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
771
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
772
|
+
Rendered user_notifier/mailer/test_subject.en.text.erb (0.0ms)
|
773
|
+
Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
|
774
|
+
|
775
|
+
UserNotifier::Mailer#notify: processed outbound mail in 1.2ms
|
776
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
777
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
778
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
779
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.151031"], ["updated_at", "2015-05-14 19:15:22.151031"]]
|
780
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
781
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
782
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
783
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
784
|
+
Rendered user_notifier/mailer/test_subject.en.text.erb (0.0ms)
|
785
|
+
Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
|
786
|
+
|
787
|
+
UserNotifier::Mailer#notify: processed outbound mail in 1.1ms
|
788
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
789
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
790
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
791
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("email", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["email", "foo@bar.com"], ["created_at", "2015-05-14 19:15:22.156668"], ["updated_at", "2015-05-14 19:15:22.156668"]]
|
792
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
793
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
794
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "user_notifications" ("template_name", "locale", "from_email", "from_name", "user_id") VALUES (?, ?, ?, ?, ?) [["template_name", "test"], ["locale", "en"], ["from_email", "no-reply@yourdomain"], ["from_name", "please configure a default from name"], ["user_id", 1]]
|
795
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
796
|
+
Rendered user_notifier/mailer/test_subject.en.text.erb (0.1ms)
|
797
|
+
Rendered user_notifier/mailer/test.en.html.erb within layouts/email (0.0ms)
|
798
|
+
|
799
|
+
UserNotifier::Mailer#notify: processed outbound mail in 1.9ms
|
800
|
+
[1m[35m (0.8ms)[0m rollback transaction
|