commenteux 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +19 -1
  3. data/app/assets/javascripts/commenteux/application.js.coffee +18 -16
  4. data/app/controllers/commenteux/notes_controller.rb +66 -18
  5. data/app/helpers/commenteux/notes_helper.rb +5 -3
  6. data/app/helpers/commenteux/users_helper.rb +11 -0
  7. data/app/views/commenteux/notes/index.html.erb +13 -4
  8. data/app/views/commenteux/notes/new.html.erb +11 -2
  9. data/config/cucumber.yml +2 -0
  10. data/lib/commenteux/version.rb +1 -1
  11. data/spec/controllers/commenteux/notes_controller_spec.rb +135 -25
  12. data/spec/dummy/app/models/dummy_model.rb +1 -1
  13. data/spec/dummy/app/models/dummy_no_role_model.rb +3 -0
  14. data/spec/dummy/config/locales/en.yml +2 -0
  15. data/spec/dummy/db/migrate/20150612102101_create_dummy_no_role_models.rb +10 -0
  16. data/spec/dummy/db/schema.rb +7 -1
  17. data/spec/dummy/log/development.log +14 -1142
  18. data/spec/dummy/log/test.log +2334 -47
  19. data/spec/dummy/tmp/cache/assets/test/sprockets/{af00b28760a09c0a6fd6fe584cbb839d → 0ea5157d06860900da5e91e9e9e5c5ae} +0 -0
  20. data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  21. data/spec/dummy/tmp/cache/assets/test/sprockets/1961e9a889917e26f9b92f7e3678b9d8 +0 -0
  22. data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  23. data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  24. data/spec/dummy/tmp/cache/assets/test/sprockets/{6e1da15bffb0094059fbe56ddb206c07 → 4c0092a53cfc0cf92b75c45eea8e0c9c} +0 -0
  25. data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  26. data/spec/dummy/tmp/cache/assets/test/sprockets/{1957ff8c0d834428d5beca5bf51669b2 → d47c40f60d1e15e0c67f7f18a27a34e2} +0 -0
  27. data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  28. data/spec/dummy/tmp/cache/assets/test/sprockets/db2a42fb4a2ea58dddbe086ea7cbd8c3 +0 -0
  29. data/spec/dummy/tmp/cache/assets/test/sprockets/{9fbd3d6762f09cbefd55f6775cf9bebe → e8a6cef31bf116819ca4efd46d92cf23} +0 -0
  30. data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  31. data/spec/dummy/tmp/capybara/capybara-201506160848572837541916.html +50 -0
  32. data/spec/dummy/tmp/capybara/capybara-201506160849002657266256.html +1 -0
  33. data/spec/dummy/tmp/capybara/capybara-201506160849005456490075.html +1 -0
  34. data/spec/dummy/tmp/capybara/capybara-201506160849006051257852.html +50 -0
  35. data/spec/dummy/tmp/capybara/capybara-201506160849009617311507.html +1 -0
  36. data/spec/dummy/tmp/capybara/capybara-201506160851032943006672.html +49 -0
  37. data/spec/dummy/tmp/capybara/capybara-201506160851033032648231.html +0 -0
  38. data/spec/dummy/tmp/capybara/capybara-201506160851033315623084.html +0 -0
  39. data/spec/dummy/tmp/capybara/capybara-201506160851038790165986.html +0 -0
  40. data/spec/dummy/tmp/capybara/capybara-201506160855125750188512.html +49 -0
  41. data/spec/dummy/tmp/capybara/capybara-20150616085514290901703.html +46 -0
  42. data/spec/dummy/tmp/capybara/capybara-201506160902299004854094.html +50 -0
  43. data/spec/dummy/tmp/capybara/capybara-201506160903467053840829.html +50 -0
  44. data/spec/dummy/tmp/capybara/capybara-201506160908177506055011.html +0 -0
  45. data/spec/dummy/tmp/capybara/capybara-201506160908405071238114.html +1 -0
  46. data/spec/dummy/tmp/capybara/capybara-201506160912457681959819.html +50 -0
  47. data/spec/dummy/tmp/capybara/capybara-201506160914361347465054.html +50 -0
  48. data/spec/dummy/tmp/capybara/capybara-201506160919206069916380.html +50 -0
  49. data/spec/dummy/tmp/capybara/capybara-201506160919495766672705.html +50 -0
  50. data/spec/dummy/tmp/capybara/capybara-201506160921512325089167.html +50 -0
  51. data/spec/dummy/tmp/capybara/capybara-201506160925246853939548.html +50 -0
  52. data/spec/dummy/tmp/capybara/capybara-20150616092631910193376.html +0 -0
  53. data/spec/dummy/tmp/capybara/capybara-201506160927256081238729.html +50 -0
  54. data/spec/dummy/tmp/capybara/capybara-201506160929587747316609.html +50 -0
  55. data/spec/dummy/tmp/capybara/capybara-201506160932376393920368.html +50 -0
  56. data/spec/dummy/tmp/capybara/capybara-201506160949097224889578.html +1 -0
  57. data/spec/dummy/tmp/capybara/capybara-201506161015165425533754.html +0 -0
  58. data/spec/dummy/tmp/capybara/capybara-201506161017005963312932.html +50 -0
  59. data/spec/dummy/tmp/capybara/capybara-201506161018087481300351.html +50 -0
  60. data/spec/dummy/tmp/capybara/capybara-201506161018585177596998.html +50 -0
  61. data/spec/dummy/tmp/capybara/capybara-201506161021234628016602.html +0 -0
  62. data/spec/dummy/tmp/capybara/capybara-201506161021316159221359.html +1 -0
  63. data/spec/dummy/tmp/capybara/capybara-201506161022216700801596.html +50 -0
  64. data/spec/dummy/tmp/capybara/capybara-201506161028066297282377.html +1 -0
  65. data/spec/dummy/tmp/capybara/capybara-201506161028161304521095.html +50 -0
  66. data/spec/dummy/tmp/capybara/capybara-201506161029222052955082.html +50 -0
  67. data/spec/dummy/tmp/capybara/capybara-201506161030551952925736.html +50 -0
  68. data/spec/dummy/tmp/capybara/capybara-201506170925205207947945.html +0 -0
  69. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-48-57.908.html +50 -0
  70. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-48-57.908.png +0 -0
  71. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-49-00.472.html +50 -0
  72. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-49-00.472.png +0 -0
  73. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-51-03.616.html +49 -0
  74. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-51-03.616.png +0 -0
  75. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-12.417.html +49 -0
  76. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-12.417.png +0 -0
  77. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-14.688.html +46 -0
  78. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-08-55-14.688.png +0 -0
  79. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-02-29.270.html +50 -0
  80. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-02-29.270.png +0 -0
  81. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-03-46.063.html +50 -0
  82. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-03-46.063.png +0 -0
  83. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-12-46.560.html +50 -0
  84. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-12-46.560.png +0 -0
  85. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-14-36.456.html +50 -0
  86. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-14-36.456.png +0 -0
  87. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-20.502.html +50 -0
  88. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-20.502.png +0 -0
  89. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-49.861.html +50 -0
  90. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-19-49.861.png +0 -0
  91. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-21-51.126.html +50 -0
  92. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-21-51.126.png +0 -0
  93. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-25-24.066.html +50 -0
  94. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-25-24.066.png +0 -0
  95. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-27-25.369.html +50 -0
  96. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-27-25.369.png +0 -0
  97. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-29-58.010.html +50 -0
  98. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-29-58.010.png +0 -0
  99. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-32-37.472.html +50 -0
  100. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-09-32-37.472.png +0 -0
  101. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-17-00.415.html +50 -0
  102. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-17-00.415.png +0 -0
  103. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-08.307.html +50 -0
  104. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-08.307.png +0 -0
  105. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-58.249.html +50 -0
  106. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-18-58.249.png +0 -0
  107. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-22-21.961.html +50 -0
  108. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-22-21.961.png +0 -0
  109. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-28-16.319.html +50 -0
  110. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-28-16.319.png +0 -0
  111. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-29-22.339.html +50 -0
  112. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-29-22.339.png +0 -0
  113. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-30-55.591.html +50 -0
  114. data/spec/dummy/tmp/capybara/screenshot_2015-06-16-10-30-55.591.png +0 -0
  115. data/spec/fabricators/comments_frabricator.rb +2 -0
  116. data/spec/fabricators/dummy_no_role_models_fabricator.rb +3 -0
  117. data/spec/helpers/commenteux/notes_helper_spec.rb +13 -5
  118. data/spec/helpers/commenteux/users_helper_spec.rb +14 -0
  119. metadata +189 -42
  120. data/spec/dummy/tmp/cache/assets/development/sprockets/078e8a1b7bb61498dbae0070239e8f4c +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sprockets/1957ff8c0d834428d5beca5bf51669b2 +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sprockets/1961e9a889917e26f9b92f7e3678b9d8 +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sprockets/6e1da15bffb0094059fbe56ddb206c07 +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sprockets/9fbd3d6762f09cbefd55f6775cf9bebe +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sprockets/af00b28760a09c0a6fd6fe584cbb839d +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sprockets/d72f8bdb1dcb7ea80d1869cb2c6ebbd3 +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sprockets/db2a42fb4a2ea58dddbe086ea7cbd8c3 +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sprockets/ec516d6bcfdc219883f1ddb03b5a635b +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  135. data/spec/dummy/tmp/cache/assets/test/sprockets/d72f8bdb1dcb7ea80d1869cb2c6ebbd3 +0 -0
@@ -1,83 +1,2370 @@
1
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT `schema_migrations`.* FROM `schema_migrations`
2
-  (0.2ms) BEGIN
1
+  (14.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
2
+  (18.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
4
+ Migrating to CreateDummyModels (20140311235439)
5
+  (11.2ms) CREATE TABLE `dummy_models` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `text` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
6
+  (0.2ms) BEGIN
7
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140311235439')
8
+  (0.3ms) COMMIT
9
+ Migrating to CreateComments (20140312000846)
10
+  (9.2ms) CREATE TABLE `comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `title` varchar(50) DEFAULT '', `comment` text, `commentable_id` int(11), `commentable_type` varchar(255), `user_id` int(11), `role` varchar(255) DEFAULT 'comments', `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
11
+  (12.1ms) CREATE INDEX `index_comments_on_commentable_type` ON `comments` (`commentable_type`) 
12
+  (17.4ms) CREATE INDEX `index_comments_on_commentable_id` ON `comments` (`commentable_id`)
13
+  (13.4ms) CREATE INDEX `index_comments_on_user_id` ON `comments` (`user_id`) 
14
+  (0.1ms) BEGIN
15
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20140312000846')
16
+  (0.3ms) COMMIT
17
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
18
+  (0.1ms) BEGIN
19
+  (0.1ms) COMMIT
20
+  (0.1ms) BEGIN
21
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-10 19:35:43', 1, 'blah', '2015-06-10 19:35:43')
22
+ Started GET "/commenteux/dummy_model/1" for 127.0.0.1 at 2015-06-10 15:35:43 -0400
23
+ Processing by Commenteux::NotesController#index as HTML
24
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
25
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
26
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' ORDER BY created_at ASC
27
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (2.0ms)
28
+ Completed 200 OK in 171ms (Views: 124.0ms | ActiveRecord: 19.6ms)
29
+  (5.8ms) ROLLBACK
30
+  (0.1ms) BEGIN
31
+  (0.1ms) COMMIT
32
+  (0.1ms) BEGIN
33
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-10 19:35:43', 1, 'blah', '2015-06-10 19:35:43')
34
+ Started GET "/commenteux/dummy_model/1" for 127.0.0.1 at 2015-06-10 15:35:43 -0400
35
+ Processing by Commenteux::NotesController#index as HTML
36
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
37
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
38
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' ORDER BY created_at ASC
39
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
40
+ Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.5ms)
41
+  (0.4ms) ROLLBACK
42
+  (0.1ms) BEGIN
43
+  (0.1ms) COMMIT
44
+  (0.1ms) BEGIN
45
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-10 19:35:43', 1, 'blah', '2015-06-10 19:35:43')
46
+ Started GET "/commenteux/dummy_model/1/new" for 127.0.0.1 at 2015-06-10 15:35:43 -0400
47
+ Processing by Commenteux::NotesController#new as HTML
48
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
49
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
50
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (61.7ms)
51
+ Completed 200 OK in 70ms (Views: 63.2ms | ActiveRecord: 0.5ms)
52
+ Started POST "/commenteux/dummy_model/1?parent_div=" for 127.0.0.1 at 2015-06-10 15:35:44 -0400
53
+ Processing by Commenteux::NotesController#create as HTML
54
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "resource"=>"dummy_model", "resource_id"=>"1"}
55
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
56
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-10 19:35:44', '2015-06-10 19:35:44')
57
+ Redirected to http://www.example.com/commenteux/dummy_model/1?parent_div=
58
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
59
+ Started GET "/commenteux/dummy_model/1?parent_div=" for 127.0.0.1 at 2015-06-10 15:35:44 -0400
60
+ Processing by Commenteux::NotesController#index as HTML
61
+ Parameters: {"parent_div"=>"", "resource"=>"dummy_model", "resource_id"=>"1"}
62
+ DummyModel Load (0.1ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
63
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' ORDER BY created_at ASC
64
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (3.4ms)
65
+ Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms)
66
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
67
+  (6.1ms) ROLLBACK
68
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
69
+  (0.1ms) BEGIN
70
+ Processing by Commenteux::NotesController#index as HTML
71
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
72
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
73
+ Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms)
74
+  (0.1ms) ROLLBACK
75
+  (0.1ms) BEGIN
76
+ Processing by Commenteux::NotesController#index as JS
77
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
78
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
79
+  (0.1ms) ROLLBACK
80
+  (0.1ms) BEGIN
81
+ Processing by Commenteux::NotesController#new as HTML
82
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
83
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
84
+  (0.1ms) ROLLBACK
85
+  (0.1ms) BEGIN
86
+ Processing by Commenteux::NotesController#new as JS
87
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
88
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)
89
+  (0.1ms) ROLLBACK
90
+  (0.1ms) BEGIN
91
+  (0.1ms) ROLLBACK
92
+  (0.1ms) BEGIN
93
+  (0.1ms) ROLLBACK
94
+  (0.1ms) BEGIN
3
95
  Processing by Commenteux::NotesController#create as HTML
4
96
  Parameters: {"parent_div"=>"parent_div", "comments"=>{"title"=>"Titre", "comment"=>"Commentaire"}, "resource"=>"dummy_model", "resource_id"=>"1"}
5
97
  Redirected to http://test.host/commenteux/dummy_model/1?parent_div=parent_div
6
98
  Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
99
+  (0.1ms) ROLLBACK
100
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT `schema_migrations`.* FROM `schema_migrations`
101
+  (0.1ms) BEGIN
102
+  (0.1ms) ROLLBACK
103
+ ActiveRecord::SchemaMigration Load (26.0ms) SELECT `schema_migrations`.* FROM `schema_migrations`
104
+  (0.1ms) BEGIN
105
+  (0.1ms) ROLLBACK
106
+  (0.1ms) BEGIN
107
+  (0.1ms) ROLLBACK
108
+  (0.1ms) BEGIN
109
+ Processing by Commenteux::NotesController#new as HTML
110
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
111
+ Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.0ms)
7
112
   (0.2ms) ROLLBACK
8
113
   (0.1ms) BEGIN
9
- Processing by Commenteux::NotesController#index as HTML
114
+ Processing by Commenteux::NotesController#new as JS
10
115
  Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
11
- Completed 200 OK in 9ms (Views: 9.0ms | ActiveRecord: 0.0ms)
116
+ Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
117
+  (0.1ms) ROLLBACK
118
+  (0.1ms) BEGIN
119
+ Processing by Commenteux::NotesController#new as HTML
120
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
121
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
122
+  (0.1ms) ROLLBACK
123
+  (0.1ms) BEGIN
124
+  (0.1ms) ROLLBACK
125
+  (0.1ms) BEGIN
12
126
   (0.2ms) ROLLBACK
13
127
   (0.1ms) BEGIN
128
+  (0.1ms) ROLLBACK
129
+  (0.1ms) BEGIN
130
+ Processing by Commenteux::NotesController#index as HTML
131
+ Parameters: {"roles"=>"comment,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
132
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
133
+  (0.1ms) ROLLBACK
134
+  (0.1ms) BEGIN
14
135
  Processing by Commenteux::NotesController#index as JS
15
136
  Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
16
- Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
17
-  (0.2ms) ROLLBACK
137
+ Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
138
+  (0.1ms) ROLLBACK
139
+  (0.1ms) BEGIN
140
+ Processing by Commenteux::NotesController#index as HTML
141
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
142
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
143
+  (0.1ms) ROLLBACK
144
+  (0.1ms) BEGIN
145
+  (0.1ms) ROLLBACK
146
+  (0.1ms) BEGIN
147
+  (0.1ms) ROLLBACK
148
+  (0.1ms) BEGIN
149
+  (0.1ms) ROLLBACK
150
+  (0.1ms) BEGIN
151
+ Processing by Commenteux::NotesController#create as HTML
152
+ Parameters: {"parent_div"=>"parent_div", "comments"=>{"title"=>"Titre", "comment"=>"Commentaire"}, "resource"=>"dummy_model", "resource_id"=>"1"}
153
+ Redirected to http://test.host/commenteux/dummy_model/1?parent_div=parent_div
154
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
155
+  (0.1ms) ROLLBACK
156
+  (0.1ms) BEGIN
157
+ Processing by Commenteux::NotesController#create as HTML
158
+ Parameters: {"parent_div"=>"parent_div", "comments"=>{"title"=>"Titre", "comment"=>"Commentaire", "role"=>"delivery_man"}, "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
159
+ Redirected to http://test.host/commenteux/dummy_model/1?parent_div=parent_div&roles=comments,delivery_man
160
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
161
+  (0.1ms) ROLLBACK
162
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
18
163
   (0.2ms) BEGIN
19
- Processing by Commenteux::NotesController#new as HTML
164
+  (0.1ms) ROLLBACK
165
+  (0.1ms) BEGIN
166
+  (0.1ms) ROLLBACK
167
+  (0.1ms) BEGIN
168
+  (0.1ms) ROLLBACK
169
+  (0.1ms) BEGIN
170
+ Processing by Commenteux::NotesController#index as JS
20
171
  Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
21
- Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
172
+ Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
173
+  (0.1ms) ROLLBACK
174
+  (0.1ms) BEGIN
175
+ Processing by Commenteux::NotesController#index as HTML
176
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
177
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
178
+  (0.1ms) ROLLBACK
179
+  (0.1ms) BEGIN
180
+ Processing by Commenteux::NotesController#index as HTML
181
+ Parameters: {"roles"=>"comment,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
182
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
183
+  (0.1ms) ROLLBACK
184
+  (0.1ms) BEGIN
185
+  (0.1ms) ROLLBACK
186
+  (0.1ms) BEGIN
22
187
   (0.1ms) ROLLBACK
23
188
   (0.1ms) BEGIN
24
189
  Processing by Commenteux::NotesController#new as JS
25
190
  Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
26
- Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)
27
-  (0.2ms) ROLLBACK
191
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
192
+  (0.1ms) ROLLBACK
28
193
   (0.1ms) BEGIN
29
-  (0.2ms) ROLLBACK
194
+ Processing by Commenteux::NotesController#new as HTML
195
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
196
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
197
+  (0.1ms) ROLLBACK
198
+  (0.1ms) BEGIN
199
+ Processing by Commenteux::NotesController#new as HTML
200
+ Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
201
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
202
+  (0.1ms) ROLLBACK
203
+  (0.1ms) BEGIN
204
+  (0.1ms) ROLLBACK
205
+  (0.1ms) BEGIN
206
+ Processing by Commenteux::NotesController#create as HTML
207
+ Parameters: {"parent_div"=>"parent_div", "comments"=>{"title"=>"Titre", "comment"=>"Commentaire", "role"=>"delivery_man"}, "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
208
+ Redirected to http://test.host/commenteux/dummy_model/1?parent_div=parent_div&roles=comments,delivery_man
209
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
210
+  (0.1ms) ROLLBACK
211
+  (0.1ms) BEGIN
212
+ Processing by Commenteux::NotesController#create as HTML
213
+ Parameters: {"parent_div"=>"parent_div", "comments"=>{"title"=>"Titre", "comment"=>"Commentaire"}, "resource"=>"dummy_model", "resource_id"=>"1"}
214
+ Redirected to http://test.host/commenteux/dummy_model/1?parent_div=parent_div
215
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
216
+  (0.1ms) ROLLBACK
30
217
   (0.1ms) BEGIN
31
218
   (0.1ms) ROLLBACK
32
219
   (0.2ms) BEGIN
33
-  (0.2ms) ROLLBACK
220
+  (0.1ms) ROLLBACK
221
+  (0.1ms) BEGIN
222
+  (0.1ms) ROLLBACK
223
+  (0.2ms) BEGIN
224
+ SQL (7.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:48:47', 1, 'blah', '2015-06-16 12:48:47')
225
+  (6.5ms) COMMIT
226
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:48:49 -0400
227
+ Processing by Commenteux::NotesController#index as HTML
228
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
229
+ DummyModel Load (7.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
230
+ Comment Load (71.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
231
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
232
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (2.0ms)
233
+ Completed 200 OK in 273ms (Views: 134.8ms | ActiveRecord: 106.4ms)
234
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 08:48:50 -0400
235
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 08:48:50 -0400
236
+  (6.0ms) SELECT @@FOREIGN_KEY_CHECKS
237
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
238
+  (6.2ms) SELECT DATABASE() as db
239
+  (11.7ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
240
+  (9.5ms) TRUNCATE TABLE `comments`;
241
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
242
+  (0.4ms) SET FOREIGN_KEY_CHECKS = 1
243
+  (0.1ms) BEGIN
244
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:48:50', 1, 'blah', '2015-06-16 12:48:50')
245
+  (0.4ms) COMMIT
246
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:48:50 -0400
247
+ Processing by Commenteux::NotesController#index as HTML
248
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
249
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
250
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
251
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
252
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
253
+ Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.9ms)
254
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
255
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
256
+  (44.3ms) TRUNCATE TABLE `comments`;
257
+  (14.1ms) TRUNCATE TABLE `dummy_models`;
258
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
34
259
   (0.1ms) BEGIN
35
-  (0.1ms) COMMIT
260
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:48:52', 1, 'blah', '2015-06-16 12:48:52')
261
+  (0.5ms) COMMIT
262
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:48:52 -0400
263
+ Processing by Commenteux::NotesController#new as HTML
264
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
265
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
266
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (51.2ms)
267
+ Completed 200 OK in 58ms (Views: 52.3ms | ActiveRecord: 0.4ms)
268
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
269
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
270
+  (28.6ms) TRUNCATE TABLE `comments`;
271
+  (2.6ms) TRUNCATE TABLE `dummy_models`;
272
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
273
+  (0.1ms) BEGIN
274
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:48:58', 1, 'blah', '2015-06-16 12:48:58')
275
+  (0.3ms) COMMIT
276
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:48:58 -0400
277
+ Processing by Commenteux::NotesController#new as HTML
278
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
279
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
280
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.1ms)
281
+ Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms)
282
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:48:58 -0400
283
+ Processing by Commenteux::NotesController#create as JS
284
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
285
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
286
+  (0.1ms) BEGIN
287
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 12:48:58', 'delivery_man', '2015-06-16 12:48:58')
288
+  (12.0ms) COMMIT
289
+ Redirected to http://127.0.0.1:64190/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
290
+ Completed 302 Found in 17ms (ActiveRecord: 12.6ms)
291
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:48:58 -0400
292
+ Processing by Commenteux::NotesController#index as JS
293
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
294
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
295
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
296
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
297
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (5.4ms)
298
+ Completed 200 OK in 13ms (Views: 9.1ms | ActiveRecord: 0.7ms)
299
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
300
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
301
+  (27.2ms) TRUNCATE TABLE `comments`;
302
+  (3.2ms) TRUNCATE TABLE `dummy_models`;
303
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
304
+ Mysql2::Error: Table 'notes_dummy_bd_test.dummy_no_role_models' doesn't exist: SHOW FULL FIELDS FROM `dummy_no_role_models`
305
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
306
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
307
+  (28.6ms) TRUNCATE TABLE `comments`;
308
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
309
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
310
+ Mysql2::Error: Table 'notes_dummy_bd_test.dummy_no_role_models' doesn't exist: SHOW FULL FIELDS FROM `dummy_no_role_models`
311
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
312
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
313
+  (20.4ms) TRUNCATE TABLE `comments`;
314
+  (2.6ms) TRUNCATE TABLE `dummy_models`;
315
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
316
+ Mysql2::Error: Table 'notes_dummy_bd_test.dummy_no_role_models' doesn't exist: SHOW FULL FIELDS FROM `dummy_no_role_models`
317
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
318
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
319
+  (24.5ms) TRUNCATE TABLE `comments`;
320
+  (2.2ms) TRUNCATE TABLE `dummy_models`;
321
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
36
322
   (0.1ms) BEGIN
37
- SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2014-03-21 14:06:33', 1, 'blah', '2014-03-21 14:06:33')
38
- Started GET "/commenteux/dummy_model/1" for 127.0.0.1 at 2014-03-21 10:06:33 -0400
323
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:50:56', 1, 'blah', '2015-06-16 12:50:56')
324
+  (0.3ms) COMMIT
325
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
39
326
  Processing by Commenteux::NotesController#index as HTML
40
- Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
327
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
328
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
329
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
330
+ Comment Load (0.1ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
331
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.3ms)
332
+ Completed 200 OK in 42ms (Views: 12.6ms | ActiveRecord: 2.0ms)
333
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
334
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
335
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
336
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
337
+  (0.1ms) SELECT DATABASE() as db
338
+  (6.6ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
339
+  (21.0ms) TRUNCATE TABLE `comments`;
340
+  (3.0ms) TRUNCATE TABLE `dummy_models`;
341
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
342
+  (0.1ms) BEGIN
343
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:50:58', 1, 'blah', '2015-06-16 12:50:58')
344
+  (0.5ms) COMMIT
345
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
346
+ Processing by Commenteux::NotesController#index as HTML
347
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
348
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
349
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
350
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
351
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
352
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.6ms)
353
+ Started GET "/commenteux/dummy_model/1/new?parent_div=&roles=comments%2Cdelivery_man" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
354
+ Processing by Commenteux::NotesController#new as HTML
355
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
356
+ DummyModel Load (0.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
357
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb (36.2ms)
358
+ Completed 200 OK in 47ms (Views: 39.7ms | ActiveRecord: 0.7ms)
359
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
360
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
361
+  (3.9ms) TRUNCATE TABLE `comments`;
362
+  (2.4ms) TRUNCATE TABLE `dummy_models`;
363
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
364
+  (0.1ms) BEGIN
365
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:50:58', 1, 'blah', '2015-06-16 12:50:58')
366
+  (0.3ms) COMMIT
367
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
368
+ Processing by Commenteux::NotesController#new as HTML
369
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
370
+ DummyModel Load (0.6ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
371
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.6ms)
372
+ Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.6ms)
373
+ Started GET "/commenteux/dummy_model/1?parent_div=null&parent_div=&roles=comments%2Cdelivery_man" for 127.0.0.1 at 2015-06-16 08:50:58 -0400
374
+ Processing by Commenteux::NotesController#index as HTML
375
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
376
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
377
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
378
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
379
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.7ms)
380
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.6ms)
381
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
382
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
383
+  (3.5ms) TRUNCATE TABLE `comments`;
384
+  (2.1ms) TRUNCATE TABLE `dummy_models`;
385
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
386
+  (0.1ms) BEGIN
387
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:51:01', 1, 'blah', '2015-06-16 12:51:01')
388
+  (0.3ms) COMMIT
389
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:51:01 -0400
390
+ Processing by Commenteux::NotesController#new as HTML
391
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
392
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
393
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.8ms)
394
+ Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
395
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:51:01 -0400
396
+ Processing by Commenteux::NotesController#create as JS
397
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
398
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
399
+  (0.2ms) BEGIN
400
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 12:51:01', 'delivery_man', '2015-06-16 12:51:01')
401
+  (0.4ms) COMMIT
402
+ Redirected to http://127.0.0.1:64534/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
403
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
404
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:51:01 -0400
405
+ Processing by Commenteux::NotesController#index as JS
406
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
407
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
408
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
409
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
410
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.1ms)
411
+ Completed 200 OK in 10ms (Views: 6.8ms | ActiveRecord: 0.7ms)
412
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
413
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
414
+  (27.1ms) TRUNCATE TABLE `comments`;
415
+  (3.2ms) TRUNCATE TABLE `dummy_models`;
416
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
417
+ Mysql2::Error: Table 'notes_dummy_bd_test.dummy_no_role_models' doesn't exist: SHOW FULL FIELDS FROM `dummy_no_role_models`
418
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
419
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
420
+  (3.3ms) TRUNCATE TABLE `comments`;
421
+  (2.0ms) TRUNCATE TABLE `dummy_models`;
422
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
423
+ Mysql2::Error: Table 'notes_dummy_bd_test.dummy_no_role_models' doesn't exist: SHOW FULL FIELDS FROM `dummy_no_role_models`
424
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
425
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
426
+  (3.2ms) TRUNCATE TABLE `comments`;
427
+  (1.9ms) TRUNCATE TABLE `dummy_models`;
428
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
429
+ Mysql2::Error: Table 'notes_dummy_bd_test.dummy_no_role_models' doesn't exist: SHOW FULL FIELDS FROM `dummy_no_role_models`
430
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
431
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
432
+  (2.8ms) TRUNCATE TABLE `comments`;
433
+  (1.8ms) TRUNCATE TABLE `dummy_models`;
434
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
435
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
436
+ Migrating to CreateDummyNoRoleModels (20150612102101)
437
+  (35.7ms) CREATE TABLE `dummy_no_role_models` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `text` text, `created_at` datetime, `updated_at` datetime) ENGINE=InnoDB
438
+  (0.1ms) BEGIN
439
+ SQL (0.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20150612102101')
440
+  (0.3ms) COMMIT
441
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT `schema_migrations`.* FROM `schema_migrations`
442
+  (0.1ms) BEGIN
443
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:05', 1, 'blah', '2015-06-16 12:55:05')
444
+  (0.3ms) COMMIT
445
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
446
+ Processing by Commenteux::NotesController#index as HTML
447
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
448
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
449
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
450
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
451
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.3ms)
452
+ Completed 200 OK in 49ms (Views: 14.4ms | ActiveRecord: 2.0ms)
453
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
454
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
455
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
456
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
457
+  (0.1ms) SELECT DATABASE() as db
458
+  (0.8ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
459
+  (2.8ms) TRUNCATE TABLE `comments`;
460
+  (2.1ms) TRUNCATE TABLE `dummy_models`;
461
+  (2.1ms) TRUNCATE TABLE `dummy_no_role_models`;
462
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
463
+  (0.1ms) BEGIN
464
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:07', 1, 'blah', '2015-06-16 12:55:07')
465
+  (0.3ms) COMMIT
466
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
467
+ Processing by Commenteux::NotesController#index as HTML
468
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
469
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
470
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
471
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
472
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
473
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.6ms)
474
+ Started GET "/commenteux/dummy_model/1/new?parent_div=&roles=comments%2Cdelivery_man" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
475
+ Processing by Commenteux::NotesController#new as HTML
476
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
477
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
478
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb (37.6ms)
479
+ Completed 200 OK in 47ms (Views: 41.0ms | ActiveRecord: 0.3ms)
480
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
481
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
482
+  (3.1ms) TRUNCATE TABLE `comments`;
483
+  (1.7ms) TRUNCATE TABLE `dummy_models`;
484
+  (1.7ms) TRUNCATE TABLE `dummy_no_role_models`;
485
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
486
+  (0.1ms) BEGIN
487
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:07', 1, 'blah', '2015-06-16 12:55:07')
488
+  (0.2ms) COMMIT
489
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
490
+ Processing by Commenteux::NotesController#new as HTML
491
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
492
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
493
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.6ms)
494
+ Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.2ms)
495
+ Started GET "/commenteux/dummy_model/1?parent_div=null&parent_div=&roles=comments%2Cdelivery_man" for 127.0.0.1 at 2015-06-16 08:55:07 -0400
496
+ Processing by Commenteux::NotesController#index as HTML
497
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
498
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
499
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
500
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
501
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.5ms)
502
+ Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.6ms)
503
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
504
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
505
+  (3.7ms) TRUNCATE TABLE `comments`;
506
+  (2.3ms) TRUNCATE TABLE `dummy_models`;
507
+  (1.9ms) TRUNCATE TABLE `dummy_no_role_models`;
508
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
509
+  (0.1ms) BEGIN
510
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:10', 1, 'blah', '2015-06-16 12:55:10')
511
+  (0.2ms) COMMIT
512
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:55:10 -0400
513
+ Processing by Commenteux::NotesController#new as HTML
514
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
515
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
516
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.7ms)
517
+ Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms)
518
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:55:10 -0400
519
+ Processing by Commenteux::NotesController#create as JS
520
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
41
521
  DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
42
- Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' ORDER BY created_at ASC
43
- Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (307.0ms)
44
- Completed 200 OK in 433ms (Views: 372.7ms | ActiveRecord: 2.6ms)
45
-  (2.2ms) ROLLBACK
46
522
   (0.1ms) BEGIN
47
-  (0.1ms) COMMIT
523
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 12:55:10', 'delivery_man', '2015-06-16 12:55:10')
524
+  (0.4ms) COMMIT
525
+ Redirected to http://127.0.0.1:64590/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
526
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
527
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:55:10 -0400
528
+ Processing by Commenteux::NotesController#index as JS
529
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
530
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
531
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
532
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
533
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (2.8ms)
534
+ Completed 200 OK in 9ms (Views: 6.3ms | ActiveRecord: 0.6ms)
535
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
536
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
537
+  (21.4ms) TRUNCATE TABLE `comments`;
538
+  (2.9ms) TRUNCATE TABLE `dummy_models`;
539
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
540
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
48
541
   (0.1ms) BEGIN
49
- SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2014-03-21 14:06:34', 1, 'blah', '2014-03-21 14:06:34')
50
- Started GET "/commenteux/dummy_model/1" for 127.0.0.1 at 2014-03-21 10:06:34 -0400
542
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:12', 1, 'blah', '2015-06-16 12:55:12')
543
+  (0.2ms) COMMIT
544
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 08:55:12 -0400
51
545
  Processing by Commenteux::NotesController#index as HTML
52
- Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
546
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
547
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
548
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
549
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
550
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
551
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
552
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
553
+  (2.6ms) TRUNCATE TABLE `comments`;
554
+  (1.7ms) TRUNCATE TABLE `dummy_models`;
555
+  (1.9ms) TRUNCATE TABLE `dummy_no_role_models`;
556
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
557
+  (0.1ms) BEGIN
558
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:12', 1, 'blah', '2015-06-16 12:55:12')
559
+  (0.2ms) COMMIT
560
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 08:55:12 -0400
561
+ Processing by Commenteux::NotesController#index as HTML
562
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
563
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
564
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
565
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
566
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.4ms)
567
+ Started GET "/commenteux/dummy_no_role_model/1/new?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 08:55:12 -0400
568
+ Processing by Commenteux::NotesController#new as HTML
569
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
570
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
571
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb (2.1ms)
572
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
573
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
574
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
575
+  (2.9ms) TRUNCATE TABLE `comments`;
576
+  (1.9ms) TRUNCATE TABLE `dummy_models`;
577
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
578
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
579
+  (0.1ms) BEGIN
580
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:55:12', 1, 'blah', '2015-06-16 12:55:12')
581
+  (0.2ms) COMMIT
582
+ Started GET "/commenteux/dummy_no_role_model/1/new" for 127.0.0.1 at 2015-06-16 08:55:12 -0400
583
+ Processing by Commenteux::NotesController#new as HTML
584
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
585
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
586
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (1.9ms)
587
+ Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)
588
+ Started POST "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 08:55:12 -0400
589
+ Processing by Commenteux::NotesController#create as JS
590
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
591
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
592
+  (0.1ms) BEGIN
593
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyNoRoleModel', '2015-06-16 12:55:12', '2015-06-16 12:55:12')
594
+  (0.3ms) COMMIT
595
+ Redirected to http://127.0.0.1:64590/commenteux/dummy_no_role_model/1?parent_div=&roles=
596
+ Completed 302 Found in 4ms (ActiveRecord: 0.7ms)
597
+ Started GET "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 08:55:12 -0400
598
+ Processing by Commenteux::NotesController#index as JS
599
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
600
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
601
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
602
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.2ms)
603
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.5ms)
604
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
605
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
606
+  (24.7ms) TRUNCATE TABLE `comments`;
607
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
608
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
609
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
610
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
611
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
612
+  (0.1ms) SELECT DATABASE() as db
613
+  (1.3ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
614
+  (3.8ms) TRUNCATE TABLE `comments`;
615
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
616
+  (2.5ms) TRUNCATE TABLE `dummy_no_role_models`;
617
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
618
+  (0.1ms) BEGIN
619
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 12:59:35', 1, 'blah', '2015-06-16 12:59:35')
620
+  (0.4ms) COMMIT
621
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 08:59:38 -0400
622
+ Processing by Commenteux::NotesController#new as HTML
623
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
624
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
625
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (58.8ms)
626
+ Completed 200 OK in 129ms (Views: 86.2ms | ActiveRecord: 2.4ms)
627
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 08:59:38 -0400
628
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 08:59:38 -0400
629
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
630
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
631
+ Processing by Commenteux::NotesController#create as JS
632
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
633
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
634
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
635
+ Processing by Commenteux::NotesController#create as JS
636
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
637
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
638
+ DummyModel Load (2.6ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
639
+ Processing by Commenteux::NotesController#create as JS
640
+ DummyModel Load (7.8ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
641
+  (1.6ms) BEGIN
642
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
643
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
644
+ Processing by Commenteux::NotesController#create as JS
645
+ SQL (3.1ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
646
+  (2.1ms) BEGIN
647
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
648
+ DummyModel Load (0.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
649
+ SQL (3.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
650
+  (10.2ms) COMMIT
651
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
652
+ Completed 302 Found in 49ms (ActiveRecord: 17.6ms)
653
+ DummyModel Load (5.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
654
+  (7.6ms) COMMIT
655
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
656
+ Processing by Commenteux::NotesController#create as JS
657
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
658
+ Completed 302 Found in 56ms (ActiveRecord: 32.7ms)
659
+ DummyModel Load (4.1ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
660
+  (3.5ms) BEGIN
661
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
662
+  (21.9ms) BEGIN
663
+ Processing by Commenteux::NotesController#create as JS
664
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
665
+ SQL (4.0ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
666
+ SQL (13.8ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
667
+  (19.8ms) BEGIN
668
+  (0.7ms) COMMIT
669
+ DummyModel Load (2.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
670
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
671
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
672
+  (8.8ms) COMMIT
673
+ Completed 302 Found in 67ms (ActiveRecord: 32.9ms)
674
+ SQL (4.4ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
675
+  (0.8ms) BEGIN
676
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
677
+ Processing by Commenteux::NotesController#create as JS
678
+ Completed 302 Found in 68ms (ActiveRecord: 41.1ms)
679
+  (8.5ms) COMMIT
680
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
681
+ SQL (1.0ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
682
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
683
+ Processing by Commenteux::NotesController#index as JS
684
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
685
+ DummyModel Load (2.9ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
686
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
687
+ Completed 302 Found in 68ms (ActiveRecord: 36.8ms)
688
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
689
+  (0.6ms) COMMIT
690
+  (0.4ms) BEGIN
691
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
692
+ Processing by Commenteux::NotesController#index as JS
693
+ DummyModel Load (3.1ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
694
+ Completed 302 Found in 59ms (ActiveRecord: 5.1ms)
695
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
696
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
697
+ SQL (3.0ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:26', 'delivery_man', '2015-06-16 13:02:26')
698
+ Processing by Commenteux::NotesController#index as JS
699
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
700
+ Comment Load (6.9ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
701
+ DummyModel Load (5.8ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
702
+ DummyModel Load (8.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
703
+ Comment Load (8.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
704
+ Comment Load (6.7ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
705
+  (20.9ms) COMMIT
706
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
707
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:26 -0400
708
+ Comment Load (8.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
709
+ Completed 302 Found in 69ms (ActiveRecord: 27.2ms)
710
+ Comment Load (7.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
711
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (11.9ms)
712
+ Processing by Commenteux::NotesController#index as JS
713
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
714
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (21.3ms)
715
+ DummyModel Load (3.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
716
+ Comment Load (12.7ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
717
+ Completed 200 OK in 70ms (Views: 19.7ms | ActiveRecord: 21.0ms)
718
+ Completed 200 OK in 91ms (Views: 35.1ms | ActiveRecord: 20.0ms)
719
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:27 -0400
720
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.3ms)
721
+ Comment Load (6.6ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
722
+ Processing by Commenteux::NotesController#index as JS
723
+ Processing by Commenteux::NotesController#index as JS
724
+ Completed 200 OK in 85ms (Views: 11.2ms | ActiveRecord: 45.4ms)
725
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
726
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:27 -0400
727
+ Comment Load (4.1ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
728
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:27 -0400
729
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
730
+ Processing by Commenteux::NotesController#create as JS
731
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.1ms)
732
+ DummyModel Load (12.6ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
733
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
734
+ Completed 200 OK in 62ms (Views: 6.7ms | ActiveRecord: 20.8ms)
735
+ DummyModel Load (0.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
736
+ Comment Load (3.9ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
737
+ Comment Load (4.9ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
738
+ Processing by Commenteux::NotesController#index as JS
739
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
740
+ Comment Load (4.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
741
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.0ms)
742
+ Completed 200 OK in 34ms (Views: 4.0ms | ActiveRecord: 10.1ms)
743
+ DummyModel Load (9.0ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
744
+ DummyModel Load (33.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
745
+ Comment Load (1.0ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
746
+ Comment Load (25.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
747
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.1ms)
748
+ Completed 200 OK in 69ms (Views: 4.0ms | ActiveRecord: 41.9ms)
749
+  (11.1ms) BEGIN
750
+ Comment Load (13.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
751
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.0ms)
752
+ Completed 200 OK in 42ms (Views: 3.9ms | ActiveRecord: 23.4ms)
753
+ SQL (7.6ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:02:27', 'delivery_man', '2015-06-16 13:02:27')
754
+  (0.4ms) COMMIT
755
+ Redirected to http://127.0.0.1:64672/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
756
+ Completed 302 Found in 65ms (ActiveRecord: 52.3ms)
757
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:27 -0400
758
+ Processing by Commenteux::NotesController#index as JS
759
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
760
+ DummyModel Load (1.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
761
+ Comment Load (1.1ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
762
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
763
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.5ms)
764
+ Completed 200 OK in 20ms (Views: 4.5ms | ActiveRecord: 3.0ms)
765
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
766
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
767
+  (0.1ms) SELECT DATABASE() as db
768
+  (6.7ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
769
+  (20.6ms) TRUNCATE TABLE `comments`;
770
+  (3.1ms) TRUNCATE TABLE `dummy_models`;
771
+  (2.7ms) TRUNCATE TABLE `dummy_no_role_models`;
772
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
773
+  (0.2ms) BEGIN
774
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:02:46', 1, 'blah', '2015-06-16 13:02:46')
775
+  (0.4ms) COMMIT
776
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:02:48 -0400
777
+ Processing by Commenteux::NotesController#new as HTML
778
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
779
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
780
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (59.5ms)
781
+ Completed 200 OK in 241ms (Views: 202.5ms | ActiveRecord: 1.9ms)
782
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:02:48 -0400
783
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:02:48 -0400
784
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:03:43 -0400
785
+ Processing by Commenteux::NotesController#create as JS
786
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
787
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
788
+  (1.3ms) BEGIN
789
+ SQL (0.6ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:03:43', 'delivery_man', '2015-06-16 13:03:43')
790
+  (5.6ms) COMMIT
791
+ Redirected to http://127.0.0.1:64849/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
792
+ Completed 302 Found in 24ms (ActiveRecord: 7.7ms)
793
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:03:43 -0400
794
+ Processing by Commenteux::NotesController#create as JS
795
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
796
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
797
+  (0.2ms) BEGIN
798
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:03:43 -0400
799
+ SQL (3.7ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:03:43', 'delivery_man', '2015-06-16 13:03:43')
800
+ Processing by Commenteux::NotesController#index as JS
801
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
802
+  (10.8ms) COMMIT
803
+ Redirected to http://127.0.0.1:64849/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
804
+ Completed 302 Found in 28ms (ActiveRecord: 15.2ms)
805
+ DummyModel Load (4.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
806
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:03:43 -0400
807
+ Processing by Commenteux::NotesController#index as JS
808
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
809
+ DummyModel Load (1.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
810
+ Comment Load (0.6ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
811
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
812
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (7.8ms)
813
+ Completed 200 OK in 31ms (Views: 17.6ms | ActiveRecord: 2.2ms)
814
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
815
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
816
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (1.3ms)
817
+ Completed 200 OK in 54ms (Views: 2.3ms | ActiveRecord: 39.5ms)
818
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
819
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
820
+  (0.1ms) SELECT DATABASE() as db
821
+  (0.8ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
822
+  (3.9ms) TRUNCATE TABLE `comments`;
823
+  (2.1ms) TRUNCATE TABLE `dummy_models`;
824
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
825
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
826
+  (0.2ms) BEGIN
827
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:05:11', 1, 'blah', '2015-06-16 13:05:11')
828
+  (0.4ms) COMMIT
829
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:05:13 -0400
830
+ Processing by Commenteux::NotesController#new as HTML
831
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
832
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
833
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (66.9ms)
834
+ Completed 200 OK in 129ms (Views: 91.3ms | ActiveRecord: 1.9ms)
835
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:05:13 -0400
836
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:05:13 -0400
837
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
838
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
839
+ Processing by Commenteux::NotesController#create as JS
840
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
841
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
842
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
843
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
844
+ Started GET "/commenteux/dummy_model/1/new" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
845
+ Processing by Commenteux::NotesController#create as JS
846
+ DummyModel Load (5.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
847
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:17 -0400
848
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
849
+  (0.1ms) BEGIN
850
+ SQL (0.9ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:08:40', 1, 'blah', '2015-06-16 13:08:40')
851
+ Mysql2::Error: Duplicate entry '1' for key 'PRIMARY': INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:08:40', 1, 'blah', '2015-06-16 13:08:40')
852
+  (0.1ms) ROLLBACK
853
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
854
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
855
+  (0.2ms) SELECT DATABASE() as db
856
+  (6.6ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
857
+  (16.7ms) TRUNCATE TABLE `comments`;
858
+  (3.6ms) TRUNCATE TABLE `dummy_models`;
859
+  (3.2ms) TRUNCATE TABLE `dummy_no_role_models`;
860
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
861
+  (0.2ms) BEGIN
862
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:08:52', 1, 'blah', '2015-06-16 13:08:52')
863
+  (0.4ms) COMMIT
864
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:08:54 -0400
865
+ Processing by Commenteux::NotesController#new as HTML
866
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
53
867
  DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
54
- Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' ORDER BY created_at ASC
55
- Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.5ms)
56
- Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 0.7ms)
57
-  (0.5ms) ROLLBACK
868
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (78.3ms)
869
+ Completed 200 OK in 12593ms (Views: 104.3ms | ActiveRecord: 2.5ms)
870
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:09:07 -0400
871
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:09:07 -0400
872
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:11:58 -0400
873
+ Processing by Commenteux::NotesController#create as JS
874
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
875
+ DummyModel Load (0.9ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
876
+  (2.1ms) BEGIN
877
+ SQL (0.6ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:12:42', 'delivery_man', '2015-06-16 13:12:42')
878
+  (1.1ms) COMMIT
879
+ Redirected to http://127.0.0.1:65152/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
880
+ Completed 302 Found in 43794ms (ActiveRecord: 4.7ms)
881
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:12:42 -0400
882
+ Processing by Commenteux::NotesController#index as JS
883
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
884
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
885
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
886
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
887
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (8.1ms)
888
+ Completed 200 OK in 26ms (Views: 13.5ms | ActiveRecord: 0.9ms)
889
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
890
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
891
+  (0.2ms) SELECT DATABASE() as db
892
+  (1.0ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
893
+  (3.3ms) TRUNCATE TABLE `comments`;
894
+  (3.3ms) TRUNCATE TABLE `dummy_models`;
895
+  (2.1ms) TRUNCATE TABLE `dummy_no_role_models`;
896
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
897
+  (0.2ms) BEGIN
898
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:13:24', 1, 'blah', '2015-06-16 13:13:24')
899
+  (0.4ms) COMMIT
900
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:13:25 -0400
901
+ Processing by Commenteux::NotesController#new as HTML
902
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
903
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
904
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (74.4ms)
905
+ Completed 200 OK in 3068ms (Views: 99.3ms | ActiveRecord: 2.1ms)
906
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:13:28 -0400
907
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:13:28 -0400
908
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:13:33 -0400
909
+ Processing by Commenteux::NotesController#create as JS
910
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
911
+ DummyModel Load (3.6ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
912
+  (1.9ms) BEGIN
913
+ SQL (0.7ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:13:37', 'delivery_man', '2015-06-16 13:13:37')
914
+  (11.1ms) COMMIT
915
+ Redirected to http://127.0.0.1:65489/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
916
+ Completed 302 Found in 62985ms (ActiveRecord: 17.6ms)
917
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:14:36 -0400
918
+ Processing by Commenteux::NotesController#index as JS
919
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
920
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
921
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
922
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
923
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (9.5ms)
924
+ Completed 200 OK in 30ms (Views: 16.0ms | ActiveRecord: 0.9ms)
925
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
926
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
927
+  (0.1ms) SELECT DATABASE() as db
928
+  (6.9ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
929
+  (19.6ms) TRUNCATE TABLE `comments`;
930
+  (3.5ms) TRUNCATE TABLE `dummy_models`;
931
+  (2.7ms) TRUNCATE TABLE `dummy_no_role_models`;
932
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
933
+  (0.2ms) BEGIN
934
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:18:46', 1, 'blah', '2015-06-16 13:18:46')
935
+  (0.5ms) COMMIT
936
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:18:49 -0400
937
+ Processing by Commenteux::NotesController#new as HTML
938
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
939
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
940
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (72.4ms)
941
+ Completed 200 OK in 3654ms (Views: 101.6ms | ActiveRecord: 2.7ms)
942
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:18:52 -0400
943
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:18:52 -0400
944
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:18:56 -0400
945
+ Processing by Commenteux::NotesController#create as JS
946
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
947
+ DummyModel Load (4.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
948
+  (0.6ms) BEGIN
949
+ SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:18:57', 'delivery_man', '2015-06-16 13:18:57')
950
+  (5.5ms) COMMIT
951
+ Redirected to http://127.0.0.1:49216/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
952
+ Completed 302 Found in 1969ms (ActiveRecord: 11.2ms)
953
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:18:58 -0400
954
+ Processing by Commenteux::NotesController#index as JS
955
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
956
+ DummyModel Load (3.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
957
+ Comment Load (0.7ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
958
+ Comment Load (1.6ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
959
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (8.6ms)
960
+ Completed 200 OK in 22039ms (Views: 15.8ms | ActiveRecord: 5.5ms)
961
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
962
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
963
+  (0.2ms) SELECT DATABASE() as db
964
+  (6.6ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
965
+  (15.6ms) TRUNCATE TABLE `comments`;
966
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
967
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
968
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
58
969
   (0.1ms) BEGIN
59
-  (0.1ms) COMMIT
970
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:19:45', 1, 'blah', '2015-06-16 13:19:45')
971
+  (0.3ms) COMMIT
972
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:19:47 -0400
973
+ Processing by Commenteux::NotesController#new as HTML
974
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
975
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
976
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (33.4ms)
977
+ Completed 200 OK in 74ms (Views: 49.9ms | ActiveRecord: 1.7ms)
978
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:19:47 -0400
979
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:19:47 -0400
980
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:19:47 -0400
981
+ Processing by Commenteux::NotesController#create as JS
982
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
983
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
984
+  (0.1ms) BEGIN
985
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:19:47', 'delivery_man', '2015-06-16 13:19:47')
986
+  (0.3ms) COMMIT
987
+ Redirected to http://127.0.0.1:49277/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
988
+ Completed 302 Found in 6ms (ActiveRecord: 0.8ms)
989
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:19:47 -0400
990
+ Processing by Commenteux::NotesController#index as JS
991
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
992
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
993
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
994
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
995
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (3.3ms)
996
+ Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 1.7ms)
997
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
998
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
999
+  (0.1ms) SELECT DATABASE() as db
1000
+  (6.4ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1001
+  (19.9ms) TRUNCATE TABLE `comments`;
1002
+  (3.0ms) TRUNCATE TABLE `dummy_models`;
1003
+  (4.0ms) TRUNCATE TABLE `dummy_no_role_models`;
1004
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1005
+  (0.2ms) BEGIN
1006
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:20:47', 1, 'blah', '2015-06-16 13:20:47')
1007
+  (0.5ms) COMMIT
1008
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:20:49 -0400
1009
+ Processing by Commenteux::NotesController#new as HTML
1010
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1011
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1012
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (81.8ms)
1013
+ Completed 200 OK in 2842ms (Views: 107.3ms | ActiveRecord: 2.9ms)
1014
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:20:52 -0400
1015
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:20:52 -0400
1016
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:20:56 -0400
1017
+ Processing by Commenteux::NotesController#create as JS
1018
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1019
+ DummyModel Load (5.1ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1020
+  (0.9ms) BEGIN
1021
+ SQL (1.5ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:20:59', 'delivery_man', '2015-06-16 13:20:59')
1022
+  (5.6ms) COMMIT
1023
+ Redirected to http://127.0.0.1:49449/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1024
+ Completed 302 Found in 4828ms (ActiveRecord: 13.1ms)
1025
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:21:01 -0400
1026
+ Processing by Commenteux::NotesController#index as JS
1027
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1028
+ DummyModel Load (0.8ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1029
+ Comment Load (1.8ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1030
+ Comment Load (0.7ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1031
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (48613.2ms)
1032
+ Completed 200 OK in 50009ms (Views: 48619.6ms | ActiveRecord: 3.7ms)
1033
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1034
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1035
+  (0.1ms) SELECT DATABASE() as db
1036
+  (6.4ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1037
+  (15.7ms) TRUNCATE TABLE `comments`;
1038
+  (3.1ms) TRUNCATE TABLE `dummy_models`;
1039
+  (3.6ms) TRUNCATE TABLE `dummy_no_role_models`;
1040
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1041
+  (0.2ms) BEGIN
1042
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:22:26', 1, 'blah', '2015-06-16 13:22:26')
1043
+  (1.9ms) COMMIT
1044
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:22:27 -0400
1045
+ Processing by Commenteux::NotesController#new as HTML
1046
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1047
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1048
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (76.4ms)
1049
+ Completed 200 OK in 2798ms (Views: 103.0ms | ActiveRecord: 3.0ms)
1050
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:22:30 -0400
1051
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:22:30 -0400
1052
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:22:38 -0400
1053
+ Processing by Commenteux::NotesController#create as JS
1054
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1055
+ DummyModel Load (121423.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1056
+  (0.8ms) BEGIN
1057
+ SQL (1.8ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:24:41', 'delivery_man', '2015-06-16 13:24:41')
1058
+  (0.5ms) COMMIT
1059
+ Redirected to http://127.0.0.1:49512/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1060
+ Completed 302 Found in 134804ms (ActiveRecord: 121427.1ms)
1061
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:24:53 -0400
1062
+ Processing by Commenteux::NotesController#index as JS
1063
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1064
+ DummyModel Load (3.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1065
+ Comment Load (0.6ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1066
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1067
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (9979.1ms)
1068
+ Completed 200 OK in 30569ms (Views: 9988.9ms | ActiveRecord: 4.4ms)
1069
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1070
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1071
+  (0.2ms) SELECT DATABASE() as db
1072
+  (6.7ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1073
+  (18.7ms) TRUNCATE TABLE `comments`;
1074
+  (4.2ms) TRUNCATE TABLE `dummy_models`;
1075
+  (2.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1076
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1077
+  (0.2ms) BEGIN
1078
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:25:57', 1, 'blah', '2015-06-16 13:25:57')
1079
+  (0.4ms) COMMIT
1080
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:26:00 -0400
1081
+ Processing by Commenteux::NotesController#new as HTML
1082
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1083
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1084
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (84.0ms)
1085
+ Completed 200 OK in 6774ms (Views: 114.0ms | ActiveRecord: 2.7ms)
1086
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:26:06 -0400
1087
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:26:06 -0400
1088
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:26:11 -0400
1089
+ Processing by Commenteux::NotesController#create as JS
1090
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1091
+ DummyModel Load (15755.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1092
+  (1.6ms) BEGIN
1093
+ SQL (0.6ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:26:31', 'delivery_man', '2015-06-16 13:26:31')
1094
+  (0.8ms) COMMIT
1095
+ Redirected to http://127.0.0.1:49622/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1096
+ Completed 302 Found in 19213ms (ActiveRecord: 15758.5ms)
1097
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:26:31 -0400
1098
+ Processing by Commenteux::NotesController#index as JS
1099
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1100
+ DummyModel Load (0.8ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1101
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1102
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1103
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (7.9ms)
1104
+ Completed 200 OK in 26ms (Views: 13.4ms | ActiveRecord: 1.4ms)
1105
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1106
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1107
+  (0.1ms) SELECT DATABASE() as db
1108
+  (0.9ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1109
+  (3.3ms) TRUNCATE TABLE `comments`;
1110
+  (2.3ms) TRUNCATE TABLE `dummy_models`;
1111
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1112
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1113
+  (0.2ms) BEGIN
1114
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:26:55', 1, 'blah', '2015-06-16 13:26:55')
1115
+  (0.4ms) COMMIT
1116
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:26:57 -0400
1117
+ Processing by Commenteux::NotesController#new as HTML
1118
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1119
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1120
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (83.7ms)
1121
+ Completed 200 OK in 168ms (Views: 115.7ms | ActiveRecord: 2.3ms)
1122
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:26:57 -0400
1123
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:26:57 -0400
1124
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:27:01 -0400
1125
+ Processing by Commenteux::NotesController#create as JS
1126
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1127
+ DummyModel Load (3.9ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1128
+  (0.3ms) BEGIN
1129
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:27:04', 'delivery_man', '2015-06-16 13:27:04')
1130
+  (0.8ms) COMMIT
1131
+ Redirected to http://127.0.0.1:49677/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1132
+ Completed 302 Found in 9020ms (ActiveRecord: 5.2ms)
1133
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:27:10 -0400
1134
+ Processing by Commenteux::NotesController#index as JS
1135
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1136
+ DummyModel Load (2.8ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1137
+ Comment Load (0.8ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1138
+ Comment Load (1.9ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1139
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (5291.5ms)
1140
+ Completed 200 OK in 12277ms (Views: 5298.8ms | ActiveRecord: 5.4ms)
1141
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1142
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1143
+  (0.1ms) SELECT DATABASE() as db
1144
+  (6.9ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1145
+  (15.5ms) TRUNCATE TABLE `comments`;
1146
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
1147
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
1148
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1149
+  (0.2ms) BEGIN
1150
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:28:46', 1, 'blah', '2015-06-16 13:28:46')
1151
+  (0.4ms) COMMIT
1152
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:28:48 -0400
1153
+ Processing by Commenteux::NotesController#new as HTML
1154
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1155
+ DummyModel Load (0.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1156
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (82.4ms)
1157
+ Completed 200 OK in 172ms (Views: 117.8ms | ActiveRecord: 2.3ms)
1158
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:28:49 -0400
1159
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:28:49 -0400
1160
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:28:54 -0400
1161
+ Processing by Commenteux::NotesController#create as JS
1162
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1163
+ DummyModel Load (3.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1164
+  (0.4ms) BEGIN
1165
+ SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:28:56', 'delivery_man', '2015-06-16 13:28:56')
1166
+  (0.9ms) COMMIT
1167
+ Redirected to http://127.0.0.1:49799/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1168
+ Completed 302 Found in 4407ms (ActiveRecord: 4.8ms)
1169
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:28:58 -0400
1170
+ Processing by Commenteux::NotesController#index as JS
1171
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1172
+ DummyModel Load (0.9ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1173
+ Comment Load (2.1ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1174
+ Comment Load (0.7ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1175
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (4335.4ms)
1176
+ Completed 200 OK in 59186ms (Views: 4343.5ms | ActiveRecord: 3.8ms)
1177
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1178
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1179
+  (0.1ms) SELECT DATABASE() as db
1180
+  (6.7ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1181
+  (15.6ms) TRUNCATE TABLE `comments`;
1182
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
1183
+  (2.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1184
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
60
1185
   (0.1ms) BEGIN
61
- SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2014-03-21 14:06:34', 1, 'blah', '2014-03-21 14:06:34')
62
- Started GET "/commenteux/dummy_model/1/new" for 127.0.0.1 at 2014-03-21 10:06:34 -0400
1186
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:31:43', 1, 'blah', '2015-06-16 13:31:43')
1187
+  (0.4ms) COMMIT
1188
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:31:45 -0400
63
1189
  Processing by Commenteux::NotesController#new as HTML
64
- Parameters: {"resource"=>"dummy_model", "resource_id"=>"1"}
1190
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1191
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1192
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (86.8ms)
1193
+ Completed 200 OK in 282ms (Views: 231.1ms | ActiveRecord: 2.3ms)
1194
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:31:45 -0400
1195
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:31:45 -0400
1196
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:31:50 -0400
1197
+ Processing by Commenteux::NotesController#create as JS
1198
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1199
+ DummyModel Load (3.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1200
+  (0.2ms) BEGIN
1201
+ SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:31:51', 'delivery_man', '2015-06-16 13:31:51')
1202
+  (0.9ms) COMMIT
1203
+ Redirected to http://127.0.0.1:49929/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1204
+ Completed 302 Found in 3131ms (ActiveRecord: 4.8ms)
1205
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:31:53 -0400
1206
+ Processing by Commenteux::NotesController#index as JS
1207
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1208
+ DummyModel Load (17047.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1209
+ Comment Load (0.9ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1210
+ Comment Load (1.9ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1211
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (20095.8ms)
1212
+ Completed 200 OK in 43972ms (Views: 20102.5ms | ActiveRecord: 17050.6ms)
1213
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1214
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1215
+  (0.2ms) SELECT DATABASE() as db
1216
+  (6.5ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1217
+  (15.0ms) TRUNCATE TABLE `comments`;
1218
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
1219
+  (2.7ms) TRUNCATE TABLE `dummy_no_role_models`;
1220
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1221
+  (0.2ms) BEGIN
1222
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:33:16', 1, 'blah', '2015-06-16 13:33:16')
1223
+  (0.4ms) COMMIT
1224
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:33:18 -0400
1225
+ Processing by Commenteux::NotesController#new as HTML
1226
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1227
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1228
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (85.9ms)
1229
+ Completed 200 OK in 160ms (Views: 114.8ms | ActiveRecord: 1.9ms)
1230
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:33:18 -0400
1231
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:33:18 -0400
1232
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:47:51 -0400
1233
+ Processing by Commenteux::NotesController#create as JS
1234
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1235
+ DummyModel Load (0.7ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1236
+  (2.1ms) BEGIN
1237
+ SQL (0.4ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:48:00', 'delivery_man', '2015-06-16 13:48:00')
1238
+  (5.4ms) COMMIT
1239
+ Redirected to http://127.0.0.1:50002/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1240
+ Completed 302 Found in 8669ms (ActiveRecord: 8.6ms)
1241
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:48:00 -0400
1242
+ Processing by Commenteux::NotesController#create as JS
1243
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1244
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1245
+  (0.4ms) BEGIN
1246
+ SQL (0.4ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 13:48:00', 'delivery_man', '2015-06-16 13:48:00')
1247
+  (0.3ms) COMMIT
1248
+ Redirected to http://127.0.0.1:50002/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1249
+ Completed 302 Found in 16ms (ActiveRecord: 1.5ms)
1250
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:48:00 -0400
1251
+ Processing by Commenteux::NotesController#index as JS
1252
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1253
+ DummyModel Load (2.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1254
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:48:00 -0400
1255
+ Comment Load (4.8ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1256
+ Processing by Commenteux::NotesController#index as JS
1257
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1258
+ Comment Load (6.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1259
+  (0.2ms) BEGIN
1260
+ SQL (0.4ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:49:09', 1, 'blah', '2015-06-16 13:49:09')
1261
+ Mysql2::Error: Duplicate entry '1' for key 'PRIMARY': INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:49:09', 1, 'blah', '2015-06-16 13:49:09')
1262
+  (0.2ms) ROLLBACK
1263
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1264
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1265
+  (0.2ms) SELECT DATABASE() as db
1266
+  (6.6ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1267
+  (31.8ms) TRUNCATE TABLE `comments`;
1268
+  (3.2ms) TRUNCATE TABLE `dummy_models`;
1269
+  (3.0ms) TRUNCATE TABLE `dummy_no_role_models`;
1270
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
1271
+  (0.2ms) BEGIN
1272
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:49:22', 1, 'blah', '2015-06-16 13:49:22')
1273
+  (0.4ms) COMMIT
1274
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:49:24 -0400
1275
+ Processing by Commenteux::NotesController#index as HTML
1276
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1277
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1278
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1279
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1280
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (4355.4ms)
1281
+ Completed 200 OK in 4541ms (Views: 4499.5ms | ActiveRecord: 2.6ms)
1282
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:49:29 -0400
1283
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:49:29 -0400
1284
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1285
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1286
+  (0.2ms) SELECT DATABASE() as db
1287
+  (6.0ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1288
+  (19.7ms) TRUNCATE TABLE `comments`;
1289
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
1290
+  (2.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1291
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1292
+  (0.2ms) BEGIN
1293
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 13:51:29', 1, 'blah', '2015-06-16 13:51:29')
1294
+  (0.3ms) COMMIT
1295
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 09:51:31 -0400
1296
+ Processing by Commenteux::NotesController#index as HTML
1297
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1298
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1299
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1300
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1301
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (2.4ms)
1302
+ Completed 200 OK in 64ms (Views: 28.6ms | ActiveRecord: 2.5ms)
1303
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 09:51:31 -0400
1304
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 09:51:31 -0400
1305
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1306
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1307
+  (0.2ms) SELECT DATABASE() as db
1308
+  (6.7ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1309
+  (20.2ms) TRUNCATE TABLE `comments`;
1310
+  (2.9ms) TRUNCATE TABLE `dummy_models`;
1311
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
1312
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1313
+  (0.2ms) BEGIN
1314
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:02:50', 1, 'blah', '2015-06-16 14:02:50')
1315
+  (0.3ms) COMMIT
1316
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:02:52 -0400
1317
+ Processing by Commenteux::NotesController#index as HTML
1318
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1319
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1320
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1321
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1322
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (2.2ms)
1323
+ Completed 200 OK in 64ms (Views: 26.9ms | ActiveRecord: 3.0ms)
1324
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:02:52 -0400
1325
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:02:52 -0400
1326
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1327
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1328
+  (0.1ms) SELECT DATABASE() as db
1329
+  (1.0ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1330
+  (3.7ms) TRUNCATE TABLE `comments`;
1331
+  (2.5ms) TRUNCATE TABLE `dummy_models`;
1332
+  (2.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1333
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1334
+  (0.2ms) BEGIN
1335
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:04:35', 1, 'blah', '2015-06-16 14:04:35')
1336
+  (0.3ms) COMMIT
1337
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:04:37 -0400
1338
+ Processing by Commenteux::NotesController#index as HTML
1339
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1340
+ DummyModel Load (0.9ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1341
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1342
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1343
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (2.9ms)
1344
+ Completed 200 OK in 70ms (Views: 29.6ms | ActiveRecord: 2.9ms)
1345
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:04:37 -0400
1346
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:04:37 -0400
1347
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1348
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1349
+  (0.1ms) SELECT DATABASE() as db
1350
+  (1.0ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1351
+  (3.5ms) TRUNCATE TABLE `comments`;
1352
+  (2.5ms) TRUNCATE TABLE `dummy_models`;
1353
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1354
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1355
+ DummyModel Load (1635937.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1356
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (1635941.1ms)
1357
+ Completed 200 OK in 1635974ms (Views: 1635947.1ms | ActiveRecord: 13.8ms)
1358
+ Comment Load (1.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1359
+ Comment Load (2.0ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1360
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.6ms)
1361
+ Completed 200 OK in 1635972ms (Views: 1.9ms | ActiveRecord: 1635957.8ms)
1362
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1363
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1364
+  (0.2ms) SELECT DATABASE() as db
1365
+  (0.9ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1366
+  (4.4ms) TRUNCATE TABLE `comments`;
1367
+  (5.0ms) TRUNCATE TABLE `dummy_models`;
1368
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
1369
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1370
+  (0.2ms) BEGIN
1371
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:16:18', 1, 'blah', '2015-06-16 14:16:18')
1372
+  (0.3ms) COMMIT
1373
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:16:20 -0400
1374
+ Processing by Commenteux::NotesController#new as HTML
1375
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1376
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1377
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (75.3ms)
1378
+ Completed 200 OK in 246ms (Views: 206.9ms | ActiveRecord: 2.6ms)
1379
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:16:21 -0400
1380
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:16:21 -0400
1381
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:16:21 -0400
1382
+ Processing by Commenteux::NotesController#create as JS
1383
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1384
+ DummyModel Load (2.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1385
+  (0.2ms) BEGIN
1386
+ SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:16:21', 'delivery_man', '2015-06-16 14:16:21')
1387
+  (0.4ms) COMMIT
1388
+ Redirected to http://127.0.0.1:51157/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1389
+ Completed 302 Found in 19ms (ActiveRecord: 3.2ms)
1390
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:16:21 -0400
1391
+ Processing by Commenteux::NotesController#index as JS
1392
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
65
1393
  DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
66
- Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (71.8ms)
67
- Completed 200 OK in 114ms (Views: 73.9ms | ActiveRecord: 0.8ms)
68
- Started POST "/commenteux/dummy_model/1?parent_div=" for 127.0.0.1 at 2014-03-21 10:06:34 -0400
69
- Processing by Commenteux::NotesController#create as HTML
70
- Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "resource"=>"dummy_model", "resource_id"=>"1"}
1394
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1395
+ Comment Load (0.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1396
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (7.7ms)
1397
+ Completed 200 OK in 26ms (Views: 13.3ms | ActiveRecord: 1.1ms)
1398
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1399
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1400
+  (0.1ms) SELECT DATABASE() as db
1401
+  (0.9ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1402
+  (4.2ms) TRUNCATE TABLE `comments`;
1403
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
1404
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
1405
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1406
+  (0.2ms) BEGIN
1407
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:17:37', 1, 'blah', '2015-06-16 14:17:37')
1408
+  (0.3ms) COMMIT
1409
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:17:39 -0400
1410
+ Processing by Commenteux::NotesController#new as HTML
1411
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
71
1412
  DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
72
- SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2014-03-21 14:06:34', '2014-03-21 14:06:34')
73
- Redirected to http://www.example.com/commenteux/dummy_model/1?parent_div=
74
- Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
75
- Started GET "/commenteux/dummy_model/1?parent_div=" for 127.0.0.1 at 2014-03-21 10:06:34 -0400
1413
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (77.4ms)
1414
+ Completed 200 OK in 243ms (Views: 204.7ms | ActiveRecord: 2.0ms)
1415
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:17:39 -0400
1416
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:17:39 -0400
1417
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:17:39 -0400
1418
+ Processing by Commenteux::NotesController#create as JS
1419
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1420
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1421
+  (0.2ms) BEGIN
1422
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:17:39', 'delivery_man', '2015-06-16 14:17:39')
1423
+  (6.1ms) COMMIT
1424
+ Redirected to http://127.0.0.1:51287/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1425
+ Completed 302 Found in 25ms (ActiveRecord: 6.8ms)
1426
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:17:39 -0400
1427
+ Processing by Commenteux::NotesController#index as JS
1428
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1429
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1430
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1431
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1432
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (7.7ms)
1433
+ Completed 200 OK in 28ms (Views: 13.2ms | ActiveRecord: 1.0ms)
1434
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1435
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1436
+  (0.1ms) SELECT DATABASE() as db
1437
+  (1.0ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1438
+  (3.4ms) TRUNCATE TABLE `comments`;
1439
+  (2.1ms) TRUNCATE TABLE `dummy_models`;
1440
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1441
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 1
1442
+  (0.3ms) BEGIN
1443
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:18:40', 1, 'blah', '2015-06-16 14:18:40')
1444
+  (0.4ms) COMMIT
1445
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:18:43 -0400
1446
+ Processing by Commenteux::NotesController#new as HTML
1447
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1448
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1449
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (76.1ms)
1450
+ Completed 200 OK in 252ms (Views: 209.9ms | ActiveRecord: 2.0ms)
1451
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:18:43 -0400
1452
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:18:43 -0400
1453
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:18:43 -0400
1454
+ Processing by Commenteux::NotesController#create as JS
1455
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1456
+ DummyModel Load (2.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1457
+  (0.1ms) BEGIN
1458
+ SQL (0.6ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:18:43', 'delivery_man', '2015-06-16 14:18:43')
1459
+  (4.8ms) COMMIT
1460
+ Redirected to http://127.0.0.1:51410/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1461
+ Completed 302 Found in 47ms (ActiveRecord: 7.7ms)
1462
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:18:43 -0400
1463
+ Processing by Commenteux::NotesController#index as JS
1464
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1465
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1466
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1467
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1468
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (9.0ms)
1469
+ Completed 200 OK in 27ms (Views: 14.5ms | ActiveRecord: 1.0ms)
1470
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1471
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1472
+  (0.1ms) SELECT DATABASE() as db
1473
+  (0.9ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1474
+  (3.7ms) TRUNCATE TABLE `comments`;
1475
+  (2.1ms) TRUNCATE TABLE `dummy_models`;
1476
+  (2.5ms) TRUNCATE TABLE `dummy_no_role_models`;
1477
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1478
+  (0.2ms) BEGIN
1479
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:19:39', 1, 'blah', '2015-06-16 14:19:39')
1480
+  (0.3ms) COMMIT
1481
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:19:41 -0400
1482
+ Processing by Commenteux::NotesController#new as HTML
1483
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1484
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1485
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (73.6ms)
1486
+ Completed 200 OK in 248ms (Views: 203.5ms | ActiveRecord: 2.1ms)
1487
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:19:41 -0400
1488
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:19:41 -0400
1489
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:19:42 -0400
1490
+ Processing by Commenteux::NotesController#create as JS
1491
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1492
+ DummyModel Load (2.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1493
+  (0.1ms) BEGIN
1494
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:19:42', 'delivery_man', '2015-06-16 14:19:42')
1495
+  (0.3ms) COMMIT
1496
+ Redirected to http://127.0.0.1:51541/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1497
+ Completed 302 Found in 45ms (ActiveRecord: 3.0ms)
1498
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:19:42 -0400
1499
+ Processing by Commenteux::NotesController#index as JS
1500
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1501
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1502
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1503
+ Comment Load (0.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1504
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (9.1ms)
1505
+ Completed 200 OK in 29ms (Views: 14.6ms | ActiveRecord: 1.2ms)
1506
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1507
+  (0.3ms) SET FOREIGN_KEY_CHECKS = 0
1508
+  (0.2ms) SELECT DATABASE() as db
1509
+  (1.4ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1510
+  (0.2ms) BEGIN
1511
+ SQL (0.5ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:21:31', 1, 'blah', '2015-06-16 14:21:31')
1512
+ Mysql2::Error: Duplicate entry '1' for key 'PRIMARY': INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:21:31', 1, 'blah', '2015-06-16 14:21:31')
1513
+  (0.2ms) ROLLBACK
1514
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1515
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1516
+  (0.2ms) SELECT DATABASE() as db
1517
+  (6.4ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1518
+  (15.4ms) TRUNCATE TABLE `comments`;
1519
+  (2.3ms) TRUNCATE TABLE `dummy_models`;
1520
+  (2.1ms) TRUNCATE TABLE `dummy_no_role_models`;
1521
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1522
+  (0.2ms) BEGIN
1523
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:21:44', 1, 'blah', '2015-06-16 14:21:44')
1524
+  (0.3ms) COMMIT
1525
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:21:45 -0400
1526
+ Processing by Commenteux::NotesController#new as HTML
1527
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1528
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1529
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (70.3ms)
1530
+ Completed 200 OK in 247ms (Views: 205.6ms | ActiveRecord: 1.9ms)
1531
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:21:46 -0400
1532
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:21:46 -0400
1533
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:21:46 -0400
1534
+ Processing by Commenteux::NotesController#create as JS
1535
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1536
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1537
+  (0.4ms) BEGIN
1538
+ SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:21:46', 'delivery_man', '2015-06-16 14:21:46')
1539
+  (0.5ms) COMMIT
1540
+ Redirected to http://127.0.0.1:51654/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1541
+ Completed 302 Found in 23ms (ActiveRecord: 1.5ms)
1542
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:21:46 -0400
1543
+ Processing by Commenteux::NotesController#index as JS
1544
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1545
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1546
+ Comment Load (0.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1547
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1548
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (11.1ms)
1549
+ Completed 200 OK in 41ms (Views: 20.9ms | ActiveRecord: 1.2ms)
1550
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1551
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1552
+  (0.1ms) SELECT DATABASE() as db
1553
+  (1.0ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1554
+  (4.1ms) TRUNCATE TABLE `comments`;
1555
+  (2.9ms) TRUNCATE TABLE `dummy_models`;
1556
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
1557
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 1
1558
+  (0.2ms) BEGIN
1559
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:23:05', 1, 'blah', '2015-06-16 14:23:05')
1560
+  (0.3ms) COMMIT
1561
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:23:08 -0400
1562
+ Processing by Commenteux::NotesController#new as HTML
1563
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1564
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1565
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (75.6ms)
1566
+ Completed 200 OK in 245ms (Views: 205.2ms | ActiveRecord: 2.0ms)
1567
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:23:08 -0400
1568
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:23:08 -0400
1569
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:23:08 -0400
1570
+ Processing by Commenteux::NotesController#create as JS
1571
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1572
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1573
+  (0.2ms) BEGIN
1574
+ SQL (0.3ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:23:08', 'delivery_man', '2015-06-16 14:23:08')
1575
+  (0.3ms) COMMIT
1576
+ Redirected to http://127.0.0.1:51778/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1577
+ Completed 302 Found in 21ms (ActiveRecord: 1.1ms)
1578
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:23:08 -0400
1579
+ Processing by Commenteux::NotesController#index as JS
1580
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1581
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1582
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1583
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1584
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (8.6ms)
1585
+ Completed 200 OK in 29ms (Views: 16.6ms | ActiveRecord: 0.8ms)
1586
+  (0.1ms) BEGIN
1587
+ SQL (0.3ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:06', 1, 'blah', '2015-06-16 14:28:06')
1588
+ Mysql2::Error: Duplicate entry '1' for key 'PRIMARY': INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:06', 1, 'blah', '2015-06-16 14:28:06')
1589
+  (0.1ms) ROLLBACK
1590
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1591
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1592
+  (0.1ms) SELECT DATABASE() as db
1593
+  (6.6ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1594
+  (20.5ms) TRUNCATE TABLE `comments`;
1595
+  (2.9ms) TRUNCATE TABLE `dummy_models`;
1596
+  (2.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1597
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1598
+  (0.1ms) BEGIN
1599
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:08', 1, 'blah', '2015-06-16 14:28:08')
1600
+  (0.3ms) COMMIT
1601
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:28:08 -0400
76
1602
  Processing by Commenteux::NotesController#index as HTML
77
- Parameters: {"parent_div"=>"", "resource"=>"dummy_model", "resource_id"=>"1"}
1603
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1604
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1605
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1606
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1607
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.4ms)
1608
+ Completed 200 OK in 138ms (Views: 117.1ms | ActiveRecord: 2.4ms)
1609
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:28:08 -0400
1610
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:28:08 -0400
1611
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1612
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1613
+  (25.8ms) TRUNCATE TABLE `comments`;
1614
+  (2.4ms) TRUNCATE TABLE `dummy_models`;
1615
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
1616
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1617
+  (0.1ms) BEGIN
1618
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:11', 1, 'blah', '2015-06-16 14:28:11')
1619
+  (0.2ms) COMMIT
1620
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:28:11 -0400
1621
+ Processing by Commenteux::NotesController#new as HTML
1622
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1623
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1624
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (42.8ms)
1625
+ Completed 200 OK in 50ms (Views: 44.0ms | ActiveRecord: 0.3ms)
1626
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:28:11 -0400
1627
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1628
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1629
+  (26.0ms) TRUNCATE TABLE `comments`;
1630
+  (3.3ms) TRUNCATE TABLE `dummy_models`;
1631
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
1632
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1633
+  (0.1ms) BEGIN
1634
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:16', 1, 'blah', '2015-06-16 14:28:16')
1635
+  (0.2ms) COMMIT
1636
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:28:16 -0400
1637
+ Processing by Commenteux::NotesController#new as HTML
1638
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1639
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1640
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.4ms)
1641
+ Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.2ms)
1642
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:28:16 -0400
1643
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:28:16 -0400
1644
+ Processing by Commenteux::NotesController#create as JS
1645
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1646
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1647
+  (0.1ms) BEGIN
1648
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:28:16', 'delivery_man', '2015-06-16 14:28:16')
1649
+  (0.3ms) COMMIT
1650
+ Redirected to http://127.0.0.1:51883/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1651
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1652
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:28:16 -0400
1653
+ Processing by Commenteux::NotesController#index as JS
1654
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1655
+ DummyModel Load (1.1ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1656
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1657
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1658
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.9ms)
1659
+ Completed 200 OK in 16ms (Views: 10.2ms | ActiveRecord: 1.6ms)
1660
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
1661
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1662
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1663
+  (25.6ms) TRUNCATE TABLE `comments`;
1664
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
1665
+  (2.0ms) TRUNCATE TABLE `dummy_no_role_models`;
1666
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1667
+  (0.1ms) BEGIN
1668
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:19', 1, 'blah', '2015-06-16 14:28:19')
1669
+  (0.2ms) COMMIT
1670
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:28:19 -0400
1671
+ Processing by Commenteux::NotesController#index as HTML
1672
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1673
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1674
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1675
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
1676
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
1677
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:28:19 -0400
1678
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1679
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1680
+  (27.6ms) TRUNCATE TABLE `comments`;
1681
+  (2.6ms) TRUNCATE TABLE `dummy_models`;
1682
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
1683
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1684
+  (0.1ms) BEGIN
1685
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:20', 1, 'blah', '2015-06-16 14:28:20')
1686
+  (0.4ms) COMMIT
1687
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:28:20 -0400
1688
+ Processing by Commenteux::NotesController#index as HTML
1689
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1690
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1691
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1692
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
1693
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.4ms)
1694
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:28:20 -0400
1695
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1696
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1697
+  (27.0ms) TRUNCATE TABLE `comments`;
1698
+  (2.6ms) TRUNCATE TABLE `dummy_models`;
1699
+  (3.4ms) TRUNCATE TABLE `dummy_no_role_models`;
1700
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1701
+  (0.1ms) BEGIN
1702
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:28:22', 1, 'blah', '2015-06-16 14:28:22')
1703
+  (0.2ms) COMMIT
1704
+ Started GET "/commenteux/dummy_no_role_model/1/new" for 127.0.0.1 at 2015-06-16 10:28:22 -0400
1705
+ Processing by Commenteux::NotesController#new as HTML
1706
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1707
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1708
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.2ms)
1709
+ Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.2ms)
1710
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:28:22 -0400
1711
+ Started POST "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:28:22 -0400
1712
+ Processing by Commenteux::NotesController#create as JS
1713
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1714
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1715
+  (0.1ms) BEGIN
1716
+ SQL (0.1ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyNoRoleModel', '2015-06-16 14:28:22', '2015-06-16 14:28:22')
1717
+  (0.3ms) COMMIT
1718
+ Redirected to http://127.0.0.1:51883/commenteux/dummy_no_role_model/1?parent_div=&roles=
1719
+ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)
1720
+ Started GET "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:28:22 -0400
1721
+ Processing by Commenteux::NotesController#index as JS
1722
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1723
+ DummyNoRoleModel Load (0.1ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1724
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1725
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.4ms)
1726
+ Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)
1727
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
1728
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1729
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1730
+  (24.9ms) TRUNCATE TABLE `comments`;
1731
+  (4.3ms) TRUNCATE TABLE `dummy_models`;
1732
+  (2.7ms) TRUNCATE TABLE `dummy_no_role_models`;
1733
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1734
+  (0.1ms) BEGIN
1735
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:12', 1, 'blah', '2015-06-16 14:29:12')
1736
+  (0.4ms) COMMIT
1737
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:29:14 -0400
1738
+ Processing by Commenteux::NotesController#index as HTML
1739
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
78
1740
  DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
79
- Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' ORDER BY created_at ASC
80
- Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.5ms)
81
- Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.6ms)
82
- Comment Load (0.5ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
83
-  (1.2ms) ROLLBACK
1741
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1742
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1743
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.7ms)
1744
+ Completed 200 OK in 133ms (Views: 108.2ms | ActiveRecord: 2.1ms)
1745
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:29:14 -0400
1746
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:14 -0400
1747
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1748
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1749
+  (0.1ms) SELECT DATABASE() as db
1750
+  (6.8ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1751
+  (19.5ms) TRUNCATE TABLE `comments`;
1752
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
1753
+  (3.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1754
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1755
+  (0.1ms) BEGIN
1756
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:14', 1, 'blah', '2015-06-16 14:29:14')
1757
+  (0.3ms) COMMIT
1758
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:29:14 -0400
1759
+ Processing by Commenteux::NotesController#index as HTML
1760
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1761
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1762
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1763
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1764
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
1765
+ Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.8ms)
1766
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:14 -0400
1767
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1768
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1769
+  (25.5ms) TRUNCATE TABLE `comments`;
1770
+  (2.5ms) TRUNCATE TABLE `dummy_models`;
1771
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
1772
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1773
+  (0.1ms) BEGIN
1774
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:17', 1, 'blah', '2015-06-16 14:29:17')
1775
+  (0.4ms) COMMIT
1776
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:29:17 -0400
1777
+ Processing by Commenteux::NotesController#new as HTML
1778
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1779
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1780
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (34.1ms)
1781
+ Completed 200 OK in 43ms (Views: 35.5ms | ActiveRecord: 0.3ms)
1782
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:17 -0400
1783
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1784
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1785
+  (25.6ms) TRUNCATE TABLE `comments`;
1786
+  (3.2ms) TRUNCATE TABLE `dummy_models`;
1787
+  (4.0ms) TRUNCATE TABLE `dummy_no_role_models`;
1788
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1789
+  (0.1ms) BEGIN
1790
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:22', 1, 'blah', '2015-06-16 14:29:22')
1791
+  (0.3ms) COMMIT
1792
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:29:22 -0400
1793
+ Processing by Commenteux::NotesController#new as HTML
1794
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1795
+ DummyModel Load (0.5ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1796
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.5ms)
1797
+ Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.5ms)
1798
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:22 -0400
1799
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:29:22 -0400
1800
+ Processing by Commenteux::NotesController#create as JS
1801
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1802
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1803
+  (0.1ms) BEGIN
1804
+ SQL (0.1ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:29:22', 'delivery_man', '2015-06-16 14:29:22')
1805
+  (0.3ms) COMMIT
1806
+ Redirected to http://127.0.0.1:52196/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1807
+ Completed 302 Found in 5ms (ActiveRecord: 0.8ms)
1808
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:29:22 -0400
1809
+ Processing by Commenteux::NotesController#index as JS
1810
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1811
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1812
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1813
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1814
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.1ms)
1815
+ Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.7ms)
1816
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
1817
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1818
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1819
+  (25.6ms) TRUNCATE TABLE `comments`;
1820
+  (2.2ms) TRUNCATE TABLE `dummy_models`;
1821
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1822
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1823
+  (0.1ms) BEGIN
1824
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:25', 1, 'blah', '2015-06-16 14:29:25')
1825
+  (0.3ms) COMMIT
1826
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:29:25 -0400
1827
+ Processing by Commenteux::NotesController#index as HTML
1828
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1829
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1830
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1831
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
1832
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.4ms)
1833
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:26 -0400
1834
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1835
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
1836
+  (26.3ms) TRUNCATE TABLE `comments`;
1837
+  (3.2ms) TRUNCATE TABLE `dummy_models`;
1838
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
1839
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1840
+  (0.1ms) BEGIN
1841
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:26', 1, 'blah', '2015-06-16 14:29:26')
1842
+  (0.2ms) COMMIT
1843
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:29:26 -0400
1844
+ Processing by Commenteux::NotesController#index as HTML
1845
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1846
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1847
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1848
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
1849
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1850
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:26 -0400
1851
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1852
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1853
+  (25.2ms) TRUNCATE TABLE `comments`;
1854
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
1855
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1856
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1857
+  (0.1ms) BEGIN
1858
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:29:28', 1, 'blah', '2015-06-16 14:29:28')
1859
+  (0.2ms) COMMIT
1860
+ Started GET "/commenteux/dummy_no_role_model/1/new" for 127.0.0.1 at 2015-06-16 10:29:28 -0400
1861
+ Processing by Commenteux::NotesController#new as HTML
1862
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1863
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1864
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (7.3ms)
1865
+ Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.2ms)
1866
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:29:28 -0400
1867
+ Started POST "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:29:28 -0400
1868
+ Processing by Commenteux::NotesController#create as JS
1869
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1870
+ DummyNoRoleModel Load (0.3ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1871
+  (0.1ms) BEGIN
1872
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyNoRoleModel', '2015-06-16 14:29:28', '2015-06-16 14:29:28')
1873
+  (0.3ms) COMMIT
1874
+ Redirected to http://127.0.0.1:52196/commenteux/dummy_no_role_model/1?parent_div=&roles=
1875
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
1876
+ Started GET "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:29:28 -0400
1877
+ Processing by Commenteux::NotesController#index as JS
1878
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1879
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1880
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1881
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.3ms)
1882
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.4ms)
1883
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
1884
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1885
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1886
+  (27.3ms) TRUNCATE TABLE `comments`;
1887
+  (2.4ms) TRUNCATE TABLE `dummy_models`;
1888
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
1889
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1890
+  (0.1ms) BEGIN
1891
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:30:48', 1, 'blah', '2015-06-16 14:30:48')
1892
+  (0.4ms) COMMIT
1893
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:30:50 -0400
1894
+ Processing by Commenteux::NotesController#index as HTML
1895
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1896
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1897
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1898
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1899
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.4ms)
1900
+ Completed 200 OK in 42ms (Views: 14.1ms | ActiveRecord: 2.2ms)
1901
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:30:50 -0400
1902
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:30:50 -0400
1903
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
1904
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1905
+  (0.1ms) SELECT DATABASE() as db
1906
+  (7.1ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
1907
+  (19.4ms) TRUNCATE TABLE `comments`;
1908
+  (2.5ms) TRUNCATE TABLE `dummy_models`;
1909
+  (2.0ms) TRUNCATE TABLE `dummy_no_role_models`;
1910
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1911
+  (0.1ms) BEGIN
1912
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:30:50', 1, 'blah', '2015-06-16 14:30:50')
1913
+  (0.3ms) COMMIT
1914
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:30:50 -0400
1915
+ Processing by Commenteux::NotesController#index as HTML
1916
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1917
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1918
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1919
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1920
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
1921
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.7ms)
1922
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1923
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1924
+  (25.4ms) TRUNCATE TABLE `comments`;
1925
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
1926
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
1927
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1928
+  (0.1ms) BEGIN
1929
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:30:53', 1, 'blah', '2015-06-16 14:30:53')
1930
+  (0.6ms) COMMIT
1931
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:30:53 -0400
1932
+ Processing by Commenteux::NotesController#new as HTML
1933
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1934
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1935
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (34.4ms)
1936
+ Completed 200 OK in 48ms (Views: 35.7ms | ActiveRecord: 0.3ms)
1937
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
1938
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1939
+  (27.3ms) TRUNCATE TABLE `comments`;
1940
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
1941
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1942
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1943
+  (0.1ms) BEGIN
1944
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:30:55', 1, 'blah', '2015-06-16 14:30:55')
1945
+  (0.3ms) COMMIT
1946
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:30:55 -0400
1947
+ Processing by Commenteux::NotesController#new as HTML
1948
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1949
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1950
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.1ms)
1951
+ Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.2ms)
1952
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:30:55 -0400
1953
+ Processing by Commenteux::NotesController#create as JS
1954
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1955
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1956
+  (0.1ms) BEGIN
1957
+ SQL (0.8ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:30:56', 'delivery_man', '2015-06-16 14:30:56')
1958
+  (11.8ms) COMMIT
1959
+ Redirected to http://127.0.0.1:52558/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
1960
+ Completed 302 Found in 45ms (ActiveRecord: 13.0ms)
1961
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:30:56 -0400
1962
+ Processing by Commenteux::NotesController#index as JS
1963
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
1964
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
1965
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
1966
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
1967
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.0ms)
1968
+ Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.6ms)
1969
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
1970
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1971
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1972
+  (26.3ms) TRUNCATE TABLE `comments`;
1973
+  (2.5ms) TRUNCATE TABLE `dummy_models`;
1974
+  (2.8ms) TRUNCATE TABLE `dummy_no_role_models`;
1975
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1976
+  (0.1ms) BEGIN
1977
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:30:59', 1, 'blah', '2015-06-16 14:30:59')
1978
+  (0.3ms) COMMIT
1979
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:30:59 -0400
1980
+ Processing by Commenteux::NotesController#index as HTML
1981
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1982
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1983
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
1984
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
1985
+ Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.4ms)
1986
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
1987
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
1988
+  (26.3ms) TRUNCATE TABLE `comments`;
1989
+  (2.9ms) TRUNCATE TABLE `dummy_models`;
1990
+  (4.2ms) TRUNCATE TABLE `dummy_no_role_models`;
1991
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
1992
+  (0.1ms) BEGIN
1993
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:30:59', 1, 'blah', '2015-06-16 14:30:59')
1994
+  (0.3ms) COMMIT
1995
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:30:59 -0400
1996
+ Processing by Commenteux::NotesController#index as HTML
1997
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
1998
+ DummyNoRoleModel Load (0.3ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
1999
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2000
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
2001
+ Completed 200 OK in 5ms (Views: 1.3ms | ActiveRecord: 0.6ms)
2002
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2003
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2004
+  (25.9ms) TRUNCATE TABLE `comments`;
2005
+  (3.0ms) TRUNCATE TABLE `dummy_models`;
2006
+  (2.7ms) TRUNCATE TABLE `dummy_no_role_models`;
2007
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2008
+  (0.1ms) BEGIN
2009
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:31:01', 1, 'blah', '2015-06-16 14:31:01')
2010
+  (0.3ms) COMMIT
2011
+ Started GET "/commenteux/dummy_no_role_model/1/new" for 127.0.0.1 at 2015-06-16 10:31:01 -0400
2012
+ Processing by Commenteux::NotesController#new as HTML
2013
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2014
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2015
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.4ms)
2016
+ Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.2ms)
2017
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:31:01 -0400
2018
+ Started POST "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:31:02 -0400
2019
+ Processing by Commenteux::NotesController#create as JS
2020
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2021
+ DummyNoRoleModel Load (0.3ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2022
+  (0.2ms) BEGIN
2023
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyNoRoleModel', '2015-06-16 14:31:02', '2015-06-16 14:31:02')
2024
+  (0.3ms) COMMIT
2025
+ Redirected to http://127.0.0.1:52558/commenteux/dummy_no_role_model/1?parent_div=&roles=
2026
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
2027
+ Started GET "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:31:02 -0400
2028
+ Processing by Commenteux::NotesController#index as JS
2029
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2030
+ DummyNoRoleModel Load (0.1ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2031
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2032
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.2ms)
2033
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
2034
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
2035
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2036
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2037
+  (27.2ms) TRUNCATE TABLE `comments`;
2038
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
2039
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
2040
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2041
+  (0.1ms) BEGIN
2042
+ SQL (0.1ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:25', 1, 'blah', '2015-06-16 14:33:25')
2043
+  (0.3ms) COMMIT
2044
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:33:27 -0400
2045
+ Processing by Commenteux::NotesController#index as HTML
2046
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2047
+ DummyModel Load (0.6ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2048
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2049
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2050
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.6ms)
2051
+ Completed 200 OK in 137ms (Views: 113.7ms | ActiveRecord: 2.6ms)
2052
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:33:27 -0400
2053
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:27 -0400
2054
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
2055
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2056
+  (0.2ms) SELECT DATABASE() as db
2057
+  (6.8ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
2058
+  (20.3ms) TRUNCATE TABLE `comments`;
2059
+  (2.8ms) TRUNCATE TABLE `dummy_models`;
2060
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
2061
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2062
+  (0.2ms) BEGIN
2063
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:27', 1, 'blah', '2015-06-16 14:33:27')
2064
+  (0.4ms) COMMIT
2065
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:33:27 -0400
2066
+ Processing by Commenteux::NotesController#index as HTML
2067
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2068
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2069
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2070
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2071
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
2072
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.5ms)
2073
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:27 -0400
2074
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2075
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2076
+  (25.5ms) TRUNCATE TABLE `comments`;
2077
+  (3.3ms) TRUNCATE TABLE `dummy_models`;
2078
+  (2.1ms) TRUNCATE TABLE `dummy_no_role_models`;
2079
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2080
+  (0.1ms) BEGIN
2081
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:30', 1, 'blah', '2015-06-16 14:33:30')
2082
+  (0.3ms) COMMIT
2083
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2084
+ Processing by Commenteux::NotesController#new as HTML
2085
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2086
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2087
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (33.8ms)
2088
+ Completed 200 OK in 41ms (Views: 34.9ms | ActiveRecord: 0.3ms)
2089
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2090
+ Started GET "/commenteux/dummy_model/1?parent_div=null&parent_div=&roles=comments%2Cdelivery_man" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2091
+ Processing by Commenteux::NotesController#index as HTML
2092
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2093
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2094
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2095
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2096
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.6ms)
2097
+ Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.6ms)
2098
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2099
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2100
+  (26.2ms) TRUNCATE TABLE `comments`;
2101
+  (3.1ms) TRUNCATE TABLE `dummy_models`;
2102
+  (3.0ms) TRUNCATE TABLE `dummy_no_role_models`;
2103
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2104
+  (0.1ms) BEGIN
2105
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:30', 1, 'blah', '2015-06-16 14:33:30')
2106
+  (0.2ms) COMMIT
2107
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2108
+ Processing by Commenteux::NotesController#new as HTML
2109
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2110
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2111
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (3.1ms)
2112
+ Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.2ms)
2113
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2114
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2115
+ Processing by Commenteux::NotesController#create as JS
2116
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2117
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2118
+  (0.1ms) BEGIN
2119
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:33:30', 'delivery_man', '2015-06-16 14:33:30')
2120
+  (0.4ms) COMMIT
2121
+ Redirected to http://127.0.0.1:52912/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
2122
+ Completed 302 Found in 6ms (ActiveRecord: 0.9ms)
2123
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:33:30 -0400
2124
+ Processing by Commenteux::NotesController#index as JS
2125
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2126
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2127
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2128
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2129
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.1ms)
2130
+ Completed 200 OK in 11ms (Views: 7.2ms | ActiveRecord: 0.7ms)
2131
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
2132
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2133
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2134
+  (26.1ms) TRUNCATE TABLE `comments`;
2135
+  (2.6ms) TRUNCATE TABLE `dummy_models`;
2136
+  (2.0ms) TRUNCATE TABLE `dummy_no_role_models`;
2137
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2138
+  (0.1ms) BEGIN
2139
+ SQL (0.4ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:33', 1, 'blah', '2015-06-16 14:33:33')
2140
+  (0.5ms) COMMIT
2141
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:33:34 -0400
2142
+ Processing by Commenteux::NotesController#index as HTML
2143
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2144
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2145
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2146
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.1ms)
2147
+ Completed 200 OK in 4ms (Views: 0.8ms | ActiveRecord: 0.4ms)
2148
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:34 -0400
2149
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2150
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2151
+  (54.0ms) TRUNCATE TABLE `comments`;
2152
+  (3.0ms) TRUNCATE TABLE `dummy_models`;
2153
+  (3.2ms) TRUNCATE TABLE `dummy_no_role_models`;
2154
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2155
+  (0.1ms) BEGIN
2156
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:34', 1, 'blah', '2015-06-16 14:33:34')
2157
+  (0.3ms) COMMIT
2158
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:33:34 -0400
2159
+ Processing by Commenteux::NotesController#index as HTML
2160
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2161
+ DummyNoRoleModel Load (0.3ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2162
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2163
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.7ms)
2164
+ Completed 200 OK in 6ms (Views: 2.0ms | ActiveRecord: 0.6ms)
2165
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:34 -0400
2166
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2167
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2168
+  (3.2ms) TRUNCATE TABLE `comments`;
2169
+  (2.0ms) TRUNCATE TABLE `dummy_models`;
2170
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
2171
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2172
+  (0.1ms) BEGIN
2173
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:33:36', 1, 'blah', '2015-06-16 14:33:36')
2174
+  (0.2ms) COMMIT
2175
+ Started GET "/commenteux/dummy_no_role_model/1/new" for 127.0.0.1 at 2015-06-16 10:33:36 -0400
2176
+ Processing by Commenteux::NotesController#new as HTML
2177
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2178
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2179
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.1ms)
2180
+ Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.2ms)
2181
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:33:36 -0400
2182
+ Started POST "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:33:36 -0400
2183
+ Processing by Commenteux::NotesController#create as JS
2184
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2185
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2186
+  (0.1ms) BEGIN
2187
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyNoRoleModel', '2015-06-16 14:33:36', '2015-06-16 14:33:36')
2188
+  (0.3ms) COMMIT
2189
+ Redirected to http://127.0.0.1:52912/commenteux/dummy_no_role_model/1?parent_div=&roles=
2190
+ Completed 302 Found in 4ms (ActiveRecord: 0.9ms)
2191
+ Started GET "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:33:36 -0400
2192
+ Processing by Commenteux::NotesController#index as JS
2193
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2194
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2195
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2196
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.3ms)
2197
+ Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.5ms)
2198
+ Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
2199
+  (0.2ms) SELECT @@FOREIGN_KEY_CHECKS
2200
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2201
+  (26.0ms) TRUNCATE TABLE `comments`;
2202
+  (3.0ms) TRUNCATE TABLE `dummy_models`;
2203
+  (2.4ms) TRUNCATE TABLE `dummy_no_role_models`;
2204
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2205
+  (0.1ms) BEGIN
2206
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:31', 1, 'blah', '2015-06-16 14:34:31')
2207
+  (0.3ms) COMMIT
2208
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:34:33 -0400
2209
+ Processing by Commenteux::NotesController#index as HTML
2210
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2211
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2212
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2213
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2214
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (1.7ms)
2215
+ Completed 200 OK in 38ms (Views: 16.7ms | ActiveRecord: 2.2ms)
2216
+ Started GET "/assets/application.css" for 127.0.0.1 at 2015-06-16 10:34:33 -0400
2217
+ Started GET "/assets/application.js" for 127.0.0.1 at 2015-06-16 10:34:33 -0400
2218
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2219
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2220
+  (0.1ms) SELECT DATABASE() as db
2221
+  (7.1ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
2222
+  (18.9ms) TRUNCATE TABLE `comments`;
2223
+  (2.4ms) TRUNCATE TABLE `dummy_models`;
2224
+  (2.2ms) TRUNCATE TABLE `dummy_no_role_models`;
2225
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2226
+  (0.1ms) BEGIN
2227
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:33', 1, 'blah', '2015-06-16 14:34:33')
2228
+  (0.3ms) COMMIT
2229
+ Started GET "/commenteux/dummy_model/1?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:34:33 -0400
2230
+ Processing by Commenteux::NotesController#index as HTML
2231
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2232
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2233
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2234
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2235
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
2236
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.6ms)
2237
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2238
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2239
+  (26.4ms) TRUNCATE TABLE `comments`;
2240
+  (2.9ms) TRUNCATE TABLE `dummy_models`;
2241
+  (2.5ms) TRUNCATE TABLE `dummy_no_role_models`;
2242
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2243
+  (0.1ms) BEGIN
2244
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:36', 1, 'blah', '2015-06-16 14:34:36')
2245
+  (0.2ms) COMMIT
2246
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:34:36 -0400
2247
+ Processing by Commenteux::NotesController#new as HTML
2248
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2249
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2250
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (32.0ms)
2251
+ Completed 200 OK in 46ms (Views: 33.2ms | ActiveRecord: 0.4ms)
2252
+ Started GET "/commenteux/dummy_model/1?parent_div=null&parent_div=&roles=comments%2Cdelivery_man" for 127.0.0.1 at 2015-06-16 10:34:36 -0400
2253
+ Processing by Commenteux::NotesController#index as HTML
2254
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2255
+ DummyModel Load (0.4ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2256
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2257
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2258
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.5ms)
2259
+ Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.8ms)
2260
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2261
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2262
+  (26.6ms) TRUNCATE TABLE `comments`;
2263
+  (2.7ms) TRUNCATE TABLE `dummy_models`;
2264
+  (2.6ms) TRUNCATE TABLE `dummy_no_role_models`;
2265
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2266
+  (0.2ms) BEGIN
2267
+ SQL (0.2ms) INSERT INTO `dummy_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:36', 1, 'blah', '2015-06-16 14:34:36')
2268
+  (0.3ms) COMMIT
2269
+ Started GET "/commenteux/dummy_model/1/new?roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:34:36 -0400
2270
+ Processing by Commenteux::NotesController#new as HTML
2271
+ Parameters: {"roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2272
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2273
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.6ms)
2274
+ Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)
2275
+ Started POST "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:34:36 -0400
2276
+ Processing by Commenteux::NotesController#create as JS
2277
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire", "role"=>"delivery_man"}, "parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2278
+ DummyModel Load (0.3ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2279
+  (0.1ms) BEGIN
2280
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `role`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyModel', '2015-06-16 14:34:36', 'delivery_man', '2015-06-16 14:34:36')
2281
+  (0.3ms) COMMIT
2282
+ Redirected to http://127.0.0.1:53191/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man
2283
+ Completed 302 Found in 5ms (ActiveRecord: 0.9ms)
2284
+ Started GET "/commenteux/dummy_model/1?parent_div=&roles=comments,delivery_man" for 127.0.0.1 at 2015-06-16 10:34:36 -0400
2285
+ Processing by Commenteux::NotesController#index as JS
2286
+ Parameters: {"parent_div"=>"", "roles"=>"comments,delivery_man", "resource"=>"dummy_model", "resource_id"=>"1"}
2287
+ DummyModel Load (0.2ms) SELECT `dummy_models`.* FROM `dummy_models` WHERE `dummy_models`.`id` = 1 LIMIT 1
2288
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'comments' ORDER BY created_at ASC
2289
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyModel' AND `comments`.`role` = 'delivery_man' ORDER BY created_at ASC
2290
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (3.2ms)
2291
+ Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.5ms)
2292
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
2293
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2294
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2295
+  (26.9ms) TRUNCATE TABLE `comments`;
2296
+  (2.5ms) TRUNCATE TABLE `dummy_models`;
2297
+  (3.0ms) TRUNCATE TABLE `dummy_no_role_models`;
2298
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2299
+  (0.1ms) BEGIN
2300
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:36', 1, 'blah', '2015-06-16 14:34:36')
2301
+  (0.3ms) COMMIT
2302
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:34:36 -0400
2303
+ Processing by Commenteux::NotesController#index as HTML
2304
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2305
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2306
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2307
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
2308
+ Completed 200 OK in 4ms (Views: 1.0ms | ActiveRecord: 0.5ms)
2309
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2310
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2311
+  (25.9ms) TRUNCATE TABLE `comments`;
2312
+  (7.6ms) TRUNCATE TABLE `dummy_models`;
2313
+  (2.3ms) TRUNCATE TABLE `dummy_no_role_models`;
2314
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2315
+  (0.1ms) BEGIN
2316
+ SQL (0.2ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:37', 1, 'blah', '2015-06-16 14:34:37')
2317
+  (0.2ms) COMMIT
2318
+ Started GET "/commenteux/dummy_no_role_model/1" for 127.0.0.1 at 2015-06-16 10:34:37 -0400
2319
+ Processing by Commenteux::NotesController#index as HTML
2320
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2321
+ DummyNoRoleModel Load (0.3ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2322
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2323
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb within layouts/application (0.2ms)
2324
+ Completed 200 OK in 3ms (Views: 0.8ms | ActiveRecord: 0.5ms)
2325
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2326
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2327
+  (26.1ms) TRUNCATE TABLE `comments`;
2328
+  (2.4ms) TRUNCATE TABLE `dummy_models`;
2329
+  (2.7ms) TRUNCATE TABLE `dummy_no_role_models`;
2330
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2331
+  (0.1ms) BEGIN
2332
+ SQL (0.1ms) INSERT INTO `dummy_no_role_models` (`created_at`, `id`, `text`, `updated_at`) VALUES ('2015-06-16 14:34:39', 1, 'blah', '2015-06-16 14:34:39')
2333
+  (0.3ms) COMMIT
2334
+ Started GET "/commenteux/dummy_no_role_model/1/new" for 127.0.0.1 at 2015-06-16 10:34:39 -0400
2335
+ Processing by Commenteux::NotesController#new as HTML
2336
+ Parameters: {"resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2337
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2338
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/new.html.erb within layouts/application (2.1ms)
2339
+ Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
2340
+ Started POST "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:34:39 -0400
2341
+ Processing by Commenteux::NotesController#create as JS
2342
+ Parameters: {"utf8"=>"✓", "comments"=>{"title"=>"", "comment"=>"Ceci est un commentaire"}, "parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2343
+ DummyNoRoleModel Load (0.4ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2344
+  (0.1ms) BEGIN
2345
+ SQL (0.2ms) INSERT INTO `comments` (`comment`, `commentable_id`, `commentable_type`, `created_at`, `updated_at`) VALUES ('Ceci est un commentaire', 1, 'DummyNoRoleModel', '2015-06-16 14:34:39', '2015-06-16 14:34:39')
2346
+  (0.3ms) COMMIT
2347
+ Redirected to http://127.0.0.1:53191/commenteux/dummy_no_role_model/1?parent_div=&roles=
2348
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
2349
+ Started GET "/commenteux/dummy_no_role_model/1?parent_div=&roles=" for 127.0.0.1 at 2015-06-16 10:34:39 -0400
2350
+ Processing by Commenteux::NotesController#index as JS
2351
+ Parameters: {"parent_div"=>"", "roles"=>"", "resource"=>"dummy_no_role_model", "resource_id"=>"1"}
2352
+ DummyNoRoleModel Load (0.2ms) SELECT `dummy_no_role_models`.* FROM `dummy_no_role_models` WHERE `dummy_no_role_models`.`id` = 1 LIMIT 1
2353
+ Comment Load (0.2ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 AND `comments`.`commentable_type` = 'DummyNoRoleModel' ORDER BY created_at ASC
2354
+ Rendered /Users/seurdge/projects/commenteux/app/views/commenteux/notes/index.html.erb (0.3ms)
2355
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.4ms)
2356
+ Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 1 ORDER BY created_at ASC LIMIT 1
2357
+  (0.1ms) SELECT @@FOREIGN_KEY_CHECKS
2358
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 0
2359
+  (26.3ms) TRUNCATE TABLE `comments`;
2360
+  (2.4ms) TRUNCATE TABLE `dummy_models`;
2361
+  (2.5ms) TRUNCATE TABLE `dummy_no_role_models`;
2362
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1
2363
+  (0.3ms) SELECT @@FOREIGN_KEY_CHECKS
2364
+  (0.2ms) SET FOREIGN_KEY_CHECKS = 0
2365
+  (0.2ms) SELECT DATABASE() as db
2366
+  (1.5ms) select table_name from information_schema.views where table_schema = 'notes_dummy_bd_test'
2367
+  (7.9ms) TRUNCATE TABLE `comments`;
2368
+  (3.4ms) TRUNCATE TABLE `dummy_models`;
2369
+  (3.4ms) TRUNCATE TABLE `dummy_no_role_models`;
2370
+  (0.1ms) SET FOREIGN_KEY_CHECKS = 1