push_type_wysiwyg 0.2.1 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/push_type/froala_overrides/file_upload.js +11 -2
  3. data/app/assets/javascripts/push_type/froala_overrides/froala_editor.js +50 -27
  4. data/app/assets/javascripts/push_type/froala_overrides/image_editor.js +23 -32
  5. data/app/assets/javascripts/push_type/froala_overrides/media_manager.js +42 -4
  6. data/app/assets/javascripts/push_type/wysiwyg.js.coffee +7 -2
  7. data/app/assets/stylesheets/push_type/froala_overrides.scss +4 -0
  8. data/app/assets/stylesheets/push_type/pt_theme.scss +3 -1
  9. data/test/dummy/app/controllers/application_controller.rb +0 -16
  10. data/test/dummy/app/models/page.rb +1 -3
  11. data/test/dummy/app/views/nodes/page.html.erb +1 -1
  12. data/test/dummy/config/initializers/push_type.rb +1 -1
  13. data/test/dummy/config/secrets.yml +2 -2
  14. data/test/dummy/db/migrate/{20150209204402_create_push_type_users.push_type.rb → 20150222152513_create_push_type_users.push_type.rb} +0 -0
  15. data/test/dummy/db/migrate/{20150209204403_create_push_type_nodes.push_type.rb → 20150222152514_create_push_type_nodes.push_type.rb} +0 -0
  16. data/test/dummy/db/migrate/{20150209204404_create_push_type_node_hierarchies.push_type.rb → 20150222152515_create_push_type_node_hierarchies.push_type.rb} +0 -0
  17. data/test/dummy/db/migrate/{20150209204405_create_push_type_assets.push_type.rb → 20150222152516_create_push_type_assets.push_type.rb} +0 -0
  18. data/test/dummy/db/schema.rb +1 -1
  19. data/test/dummy/log/development.log +2964 -34212
  20. data/test/dummy/log/test.log +607 -607
  21. data/test/dummy/public/system/dragonfly/development/2015/02/22/1l58rmwrzh_unnamed.jpg +0 -0
  22. data/test/dummy/public/system/dragonfly/development/2015/02/{17/6xzqa5lr5o_unnamed.png.meta.yml → 22/1l58rmwrzh_unnamed.jpg.meta.yml} +1 -1
  23. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin.scssc +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/froala_overrides.scssc +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/pt_theme.scssc +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/{7d07558d12b9bd9b9dfa778344bab4ac → 00ba3b70f9c53c57d22cf0bee1c37172} +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/04e7b5cc79c9b1c549820832eb88d319 +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/{2d1bc2b9dc5ee0ed5635abc31fb1bc88 → 092ab959c3e9331b83af5258e71da363} +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/096eddf7a98fd625176db364d134da81 +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/0aa9b91b3ecfb11e422aa5d7764e96b9 +0 -0
  31. data/test/dummy/tmp/cache/assets/development/sprockets/0e01ae9de0f3914c8317853aedd9ace4 +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sprockets/106c19f564ec5217ee478cbab34720f1 +0 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/{e568172da8ab8581f83f98dad0a73d29 → 13f28eb9e74d963db85d096c41d1a0dc} +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/1c77a98139216e228eba134f34095843 +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/20d629f8f2d27d8418db0113f0346abc +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/21bfe84f05ed2fba3ce99db95bb959b3 +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/23c10c485dbe7ea46614928874120ecf +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/24cb56346b5c952d3e54370706a44947 +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sprockets/{badf6e6ab7c3d1cc2b180e5883005a40 → 281682b191417684daf9036d98ef6f6a} +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/28d688f439ef90b05d8061d8c3209a34 +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/{c988fd2c5c9497ccef54f79a9e444ac6 → 2acc8cc9d4b7a10606e6cdf14f6c3bbd} +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/30905e99aec45e80d3e9f20ed6100f7b +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/30f88df6b769522639aee569e18ab005 +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/3220d70364d496c9cec094a51213d58a +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/3250647bb1e816f8ee380676051395a0 +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/34180a46a1fc802cc4e37f4db0626478 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/3508023b6222e6b0876c773e38ec700d +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/398116cdc953ef489a67c3a7e7a1aece +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/{932f699ead87a4b9910d47334ed14d60 → 3c6444c7e7cefae32b10e67f32c0277a} +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/3d35d51d6f620f3b4354d36d7959c89d +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/3d913c6890c084026be6278d4e2e8547 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/463cf86d1833a97b9145f6e36ab75d53 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/488d63b20534d2642d48b86b5a267a3b +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/4a0db6a94f7ee4df38bb9fc2ca66f0c7 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/4b55a223c2dc35a5f80af7af884749f3 +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/55bff739aaf7938f394017db041e742e +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/56a23304bd86f6f426dd44b6a14e0bbf +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/576b745d6338e8f7635e82939abb6e5f +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/5b03a21e24f2318345666c69b686067a +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/5c3ab7f66e6c662a3ff250afdeb61a44 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/5c7a9715a4d34606731b486f1251151d +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/5e0b7b9458a23ccc5c66e2ab0398a17c +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/5f85da4ac11a64f005e2656b99be44ac +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/{805c63977d339feb2ea7b61e1141a32f → 615c2789eb50bd461f700dbbe612375a} +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/61a4c97ff14ea9dc6f5d8ca42c65b34f +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/{7b63c613f1053bde6004342003178a0e → 6756d566c21f4e4b087fdff4f998d932} +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/68f987c6c8cac5655b3ee24985a584fc +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/6e520d29d8e0af4c5fdb3ce228619f9e +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/744c7370209ddecff0f0e7cb474bc4cf +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/7925f8f38f5165ad9d36a7d73dd00c06 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/79f92fe028aba3a0b3cc05f29b209da3 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/897fcee94209310a5d16db6b10c29dfa +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/8b9fc2be9ca39f6c79bfdad5364dc676 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/8d531fdb806de0724337e0b80e253914 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/8df98e9b5189ffce4cf77a33533416a6 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/91971e95dd0172705ab405c50732dce6 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/9221dd4a064b2d36adbdbce6a33a6f7e +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/927bf336b73c19a6d35362d3e8ec1541 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/9525e9603e466a87e595061d4af7fec7 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/{c190d0bdd188c43629f35b9f463b86af → 98f7a7f74c13a9f46cfbc7288fc95212} +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/99fe26a80e7e5ec06edf349306f40d5a +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/9a08c53fbaab11a94ed694fa4fc21bce +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/9c34afd1737e54e4eb06cc87ddf17b78 +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/a031c4e726d60fef882757c0f39eb66f +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/{1c63cb75109171c505bf1b6b3f26513b → a09464fdd61b5bfb25f86f5c04283d1f} +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/a93ec74f5cd7f26f8c663d4c481fe689 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/a9b8decaa2942e8913458c9f35da2693 +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/{47dcfb84d9a092ad939f512e1d3db43c → adb1525a6ffb2f6bde64edad42ff1843} +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/b22e7be4b7531ad92c824dcfd9adca27 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/beae69b8f0d0fdaef95ab96db9591086 +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/c206fbd33f49ab785c6ddf4bcffd3b93 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/c24da6389dfcadaf699c9b4a4eea9964 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/c9ebc72dd9509bb10caa1dbedb55de2b +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/cc63d401339265551b27ac91974668cb +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/d1e4481ce50457c9250e4be77c3510a2 +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/d4e555198f64c730192a65bdbcb8e27a +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/d71b8364b6c65852719d388c7d55976e +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/d82779125c814758e2311f37945d172e +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/df90022afc0d52f16bc498be20a5967d +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/e5290501d2ae519f0be938a3ad74e7e0 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/e540a9dc1aa001f8c4cba7a6b00f69d2 +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/e6e78e14e8c962d31e6148ca56230af9 +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/{74d0a68ec9399e1929715edba40caff4 → ea8966f9b9d68690ec2d1d8bdd59ffb5} +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/edd24c59de6c00e4e68dbbdf2775984a +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/f4bc04a453fa1e6b7454312a918fca27 +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/f5016ef8a1200a0a022e1b2f8ac7edbb +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/f7cf86568d1c692cb0a565614f282572 +0 -0
  108. metadata +118 -166
  109. data/test/dummy/public/system/dragonfly/development/2015/02/17/1331xwucig_marte38_01.jpg +0 -0
  110. data/test/dummy/public/system/dragonfly/development/2015/02/17/1331xwucig_marte38_01.jpg.meta.yml +0 -4
  111. data/test/dummy/public/system/dragonfly/development/2015/02/17/1bkup9vlqk_unnamed.png +0 -0
  112. data/test/dummy/public/system/dragonfly/development/2015/02/17/1bkup9vlqk_unnamed.png.meta.yml +0 -4
  113. data/test/dummy/public/system/dragonfly/development/2015/02/17/3kbs5oyedu_unnamed.png +0 -0
  114. data/test/dummy/public/system/dragonfly/development/2015/02/17/3kbs5oyedu_unnamed.png.meta.yml +0 -4
  115. data/test/dummy/public/system/dragonfly/development/2015/02/17/51yeipq39k_unnamed.png +0 -0
  116. data/test/dummy/public/system/dragonfly/development/2015/02/17/51yeipq39k_unnamed.png.meta.yml +0 -4
  117. data/test/dummy/public/system/dragonfly/development/2015/02/17/57qpcjycnz_Screen_Shot_2015_02_09_at_12.12.46.png +0 -0
  118. data/test/dummy/public/system/dragonfly/development/2015/02/17/57qpcjycnz_Screen_Shot_2015_02_09_at_12.12.46.png.meta.yml +0 -4
  119. data/test/dummy/public/system/dragonfly/development/2015/02/17/5fwu19ku6u_stay_another_day.jpg +0 -0
  120. data/test/dummy/public/system/dragonfly/development/2015/02/17/5fwu19ku6u_stay_another_day.jpg.meta.yml +0 -4
  121. data/test/dummy/public/system/dragonfly/development/2015/02/17/6gy2twpcyv_marte38_01.jpg +0 -0
  122. data/test/dummy/public/system/dragonfly/development/2015/02/17/6gy2twpcyv_marte38_01.jpg.meta.yml +0 -4
  123. data/test/dummy/public/system/dragonfly/development/2015/02/17/6xzqa5lr5o_unnamed.png +0 -0
  124. data/test/dummy/public/system/dragonfly/development/2015/02/17/8e6bxhsc89_unnamed.png +0 -0
  125. data/test/dummy/public/system/dragonfly/development/2015/02/17/8e6bxhsc89_unnamed.png.meta.yml +0 -4
  126. data/test/dummy/public/system/dragonfly/development/2015/02/17/8kpk5uscyk_unnamed.png +0 -0
  127. data/test/dummy/public/system/dragonfly/development/2015/02/17/8kpk5uscyk_unnamed.png.meta.yml +0 -4
  128. data/test/dummy/public/system/dragonfly/development/2015/02/17/8upyxtsk3r_unnamed.png +0 -0
  129. data/test/dummy/public/system/dragonfly/development/2015/02/17/8upyxtsk3r_unnamed.png.meta.yml +0 -4
  130. data/test/dummy/public/system/dragonfly/development/2015/02/17/9carjg3q0n_unnamed.png +0 -0
  131. data/test/dummy/public/system/dragonfly/development/2015/02/17/9carjg3q0n_unnamed.png.meta.yml +0 -4
  132. data/test/dummy/public/system/dragonfly/development/2015/02/17/9sq8ly1z0r_marte38_01.jpg +0 -0
  133. data/test/dummy/public/system/dragonfly/development/2015/02/17/9sq8ly1z0r_marte38_01.jpg.meta.yml +0 -4
  134. data/test/dummy/public/system/dragonfly/development/2015/02/17/9swrm8bfl0_marte38_01.jpg +0 -0
  135. data/test/dummy/public/system/dragonfly/development/2015/02/17/9swrm8bfl0_marte38_01.jpg.meta.yml +0 -4
  136. data/test/dummy/public/system/dragonfly/development/2015/02/17/t9xke2lmz_unnamed.png +0 -0
  137. data/test/dummy/public/system/dragonfly/development/2015/02/17/t9xke2lmz_unnamed.png.meta.yml +0 -4
  138. data/test/dummy/tmp/cache/assets/development/sprockets/0448802b256c25a379824969bf01241e +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/0ac59c93a84a52aba800cb33372b8f96 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/2479bd5cbccdeac3ab4df62c2c12e8d3 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/25b238c2ec907a80d53955a0bb81073c +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/31c57ad31a65f9a951c6d7268cdedae5 +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/36b405be9a5b7a40ad906728c9aeb94f +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/3d4f40cd6363f1841fa7c17dcbd281ce +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/4b8d83b7ae1317cf918d180b938ff565 +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/4f422267ef34574e3b4422b4137c7dd8 +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/55d58e1add1ca367e262464e83ad82cf +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/59992ed1702654aa166f8572af80a301 +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/600202d00479f08d2e69019e34d12e65 +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/6366afb9c2ba5987d78c050fbce75acc +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/75c5663a92b2003b794d5f5d184fde44 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/7a6cc81125937d35e5b984a3c7098c1a +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/8da458b8df4bfbd9fb0eed86c36442d4 +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/8feb3d758b7824f15b301f9dc024c3f6 +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/a010781c05d478892856f75c751d6ab4 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/a96494099d559bfd8cb5257e21cb196c +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/aaa6dc2bd59e21dd14b0c86a308a1d1f +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/c42a7aac68d827f88bcc25a41cdb5591 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/c5ef052e357af6829f6c522a38916fc7 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/d7f4e0230ca18ec1ef6cfa1460b096f6 +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/ef166197fe2d31e69653c512a685ed9d +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/f02093872b151ddb0fd1074fe83ff846 +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/faf1bbb7beb1e6ddcf804de02c7b5c36 +0 -0
  170. data/test/dummy/tmp/pids/server.pid +0 -1
@@ -1,31 +1,31 @@
1
-  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
2
   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150209204402)
4
+ Migrating to CreatePushTypeUsers (20150222152513)
5
5
   (0.1ms) BEGIN
6
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
6
+ SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
7
   (2.2ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp, "updated_at" timestamp)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204402"]]
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222152513"]]
9
9
   (0.5ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150209204403)
10
+ Migrating to CreatePushTypeNodes (20150222152514)
11
11
   (0.1ms) BEGIN
12
-  (1.8ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204403"]]
12
+  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222152514"]]
14
14
   (0.3ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150209204404)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150222152515)
16
16
   (0.1ms) BEGIN
17
17
   (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
18
   (0.6ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.5ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204404"]]
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222152515"]]
21
21
   (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150209204405)
22
+ Migrating to CreatePushTypeAssets (20150222152516)
23
23
   (0.1ms) BEGIN
24
-  (1.7ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204405"]]
24
+  (3.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150222152516"]]
26
26
   (0.3ms) COMMIT
27
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
27
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
29
29
  FROM pg_constraint c
30
30
  JOIN pg_class t1 ON c.conrelid = t1.oid
31
31
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -37,7 +37,7 @@ WHERE c.contype = 'f'
37
37
  AND t3.nspname = ANY (current_schemas(false))
38
38
  ORDER BY c.conname
39
39
 
40
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
40
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
41
41
  FROM pg_constraint c
42
42
  JOIN pg_class t1 ON c.conrelid = t1.oid
43
43
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -61,7 +61,7 @@ WHERE c.contype = 'f'
61
61
  AND t3.nspname = ANY (current_schemas(false))
62
62
  ORDER BY c.conname
63
63
 
64
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
64
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
65
65
  FROM pg_constraint c
66
66
  JOIN pg_class t1 ON c.conrelid = t1.oid
67
67
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -75,791 +75,823 @@ ORDER BY c.conname
75
75
  
76
76
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
77
77
   (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
78
-  (1.0ms)  SELECT schemaname || '.' || tablename
78
+  (0.9ms)  SELECT schemaname || '.' || tablename
79
79
  FROM pg_tables
80
80
  WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
81
81
  
82
82
   (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
83
-  (8.2ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;
83
+  (7.8ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;
84
84
   (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
85
85
   (0.1ms) BEGIN
86
- ----------------------------------------------------------------------------------------
87
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
88
- ----------------------------------------------------------------------------------------
86
+ ----------------------------------------------------------------------------------
87
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
88
+ ----------------------------------------------------------------------------------
89
89
   (0.1ms) SAVEPOINT active_record_1
90
90
   (0.1ms) RELEASE SAVEPOINT active_record_1
91
-  (0.1ms) SAVEPOINT active_record_1
92
- Processing by PushType::WysiwygMediaController#create as JSON
93
- Parameters: {"asset"=>{}}
91
+  (0.0ms) SAVEPOINT active_record_1
94
92
   (0.1ms) SAVEPOINT active_record_2
95
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
96
- Completed 200 OK in 20ms (Views: 0.2ms | ActiveRecord: 1.1ms)
97
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
98
-  (0.1ms) ROLLBACK
99
-  (0.1ms) BEGIN
100
- ----------------------------------------------------------------------------------------
101
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
102
- ----------------------------------------------------------------------------------------
103
-  (0.1ms) SAVEPOINT active_record_1
104
-  (0.1ms) RELEASE SAVEPOINT active_record_1
105
-  (0.1ms) SAVEPOINT active_record_1
106
- Processing by PushType::WysiwygMediaController#create as JSON
107
- Parameters: {"asset"=>{}}
93
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-02-22 15:25:18.204025"], ["updated_at", "2015-02-22 15:25:18.204025"], ["file_ext", "png"], ["mime_type", "image/png"]]
94
+  (0.1ms) RELEASE SAVEPOINT active_record_2
95
+  (0.1ms) SAVEPOINT active_record_2
96
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-02-22 15:25:18.209994"], ["updated_at", "2015-02-22 15:25:18.209994"], ["file_ext", "png"], ["mime_type", "image/png"]]
97
+  (0.1ms) RELEASE SAVEPOINT active_record_2
108
98
   (0.1ms) SAVEPOINT active_record_2
109
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
110
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
111
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
112
-  (0.1ms) ROLLBACK
113
-  (0.1ms) BEGIN
114
- ----------------------------------------------------------------------------------------
115
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
116
- ----------------------------------------------------------------------------------------
117
-  (0.1ms) SAVEPOINT active_record_1
118
-  (0.1ms) RELEASE SAVEPOINT active_record_1
119
-  (0.1ms) SAVEPOINT active_record_1
120
- Processing by PushType::WysiwygMediaController#create as JSON
121
- Parameters: {"asset"=>{}}
99
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-02-22 15:25:18.219530"], ["updated_at", "2015-02-22 15:25:18.219530"], ["file_ext", "png"], ["mime_type", "image/png"]]
100
+  (0.1ms) RELEASE SAVEPOINT active_record_2
101
+  (0.1ms) SAVEPOINT active_record_2
102
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-02-22 15:25:18.222021"], ["updated_at", "2015-02-22 15:25:18.222021"], ["file_ext", "png"], ["mime_type", "image/png"]]
103
+  (0.1ms) RELEASE SAVEPOINT active_record_2
122
104
   (0.1ms) SAVEPOINT active_record_2
123
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
124
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
125
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
126
-  (0.1ms) ROLLBACK
127
-  (0.1ms) BEGIN
128
- ----------------------------------------------------------------------
129
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
130
- ----------------------------------------------------------------------
131
-  (0.1ms) SAVEPOINT active_record_1
132
-  (0.1ms) RELEASE SAVEPOINT active_record_1
133
-  (0.1ms) SAVEPOINT active_record_1
105
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-02-22 15:25:18.224616"], ["updated_at", "2015-02-22 15:25:18.224616"], ["file_ext", "png"], ["mime_type", "image/png"]]
106
+  (0.1ms) RELEASE SAVEPOINT active_record_2
107
+  (0.1ms) SAVEPOINT active_record_2
108
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-02-22 15:25:18.227971"], ["updated_at", "2015-02-22 15:25:18.227971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
109
+  (0.1ms) RELEASE SAVEPOINT active_record_2
134
110
   (0.1ms) SAVEPOINT active_record_2
135
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-02-09 20:44:06.830959"], ["updated_at", "2015-02-09 20:44:06.830959"], ["file_ext", "png"], ["mime_type", "image/png"]]
111
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-02-22 15:25:18.230767"], ["updated_at", "2015-02-22 15:25:18.230767"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
136
112
   (0.1ms) RELEASE SAVEPOINT active_record_2
137
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
138
-  (0.1ms) ROLLBACK
139
-  (0.1ms) BEGIN
140
- ----------------------------------------------------------------------
141
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
142
- ----------------------------------------------------------------------
143
-  (0.1ms) SAVEPOINT active_record_1
144
-  (0.0ms) RELEASE SAVEPOINT active_record_1
145
-  (0.0ms) SAVEPOINT active_record_1
146
113
   (0.1ms) SAVEPOINT active_record_2
147
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-02-09 20:44:06.845276"], ["updated_at", "2015-02-09 20:44:06.845276"], ["file_ext", "png"], ["mime_type", "image/png"]]
114
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-02-22 15:25:18.233219"], ["updated_at", "2015-02-22 15:25:18.233219"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
148
115
   (0.1ms) RELEASE SAVEPOINT active_record_2
149
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
150
-  (0.1ms) ROLLBACK
151
-  (0.1ms) BEGIN
152
- ----------------------------------------------------------------------
153
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
154
- ----------------------------------------------------------------------
155
-  (0.0ms) SAVEPOINT active_record_1
156
-  (0.0ms) RELEASE SAVEPOINT active_record_1
157
-  (0.0ms) SAVEPOINT active_record_1
158
116
   (0.1ms) SAVEPOINT active_record_2
159
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-02-09 20:44:06.851234"], ["updated_at", "2015-02-09 20:44:06.851234"], ["file_ext", "png"], ["mime_type", "image/png"]]
117
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-02-22 15:25:18.235683"], ["updated_at", "2015-02-22 15:25:18.235683"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
160
118
   (0.1ms) RELEASE SAVEPOINT active_record_2
161
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
162
-  (0.1ms) ROLLBACK
163
-  (0.1ms) BEGIN
164
- ----------------------------------------------------------------------
165
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
166
- ----------------------------------------------------------------------
167
-  (0.1ms) SAVEPOINT active_record_1
168
-  (0.0ms) RELEASE SAVEPOINT active_record_1
169
-  (0.0ms) SAVEPOINT active_record_1
170
119
   (0.1ms) SAVEPOINT active_record_2
171
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-02-09 20:44:06.857414"], ["updated_at", "2015-02-09 20:44:06.857414"], ["file_ext", "png"], ["mime_type", "image/png"]]
120
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-02-22 15:25:18.238163"], ["updated_at", "2015-02-22 15:25:18.238163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
172
121
   (0.1ms) RELEASE SAVEPOINT active_record_2
173
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
174
-  (0.1ms) ROLLBACK
175
-  (0.0ms) BEGIN
176
- ----------------------------------------------------------------------
177
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
178
- ----------------------------------------------------------------------
179
-  (0.0ms) SAVEPOINT active_record_1
180
-  (0.0ms) RELEASE SAVEPOINT active_record_1
181
-  (0.0ms) SAVEPOINT active_record_1
182
122
   (0.1ms) SAVEPOINT active_record_2
183
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-02-09 20:44:06.863785"], ["updated_at", "2015-02-09 20:44:06.863785"], ["file_ext", "png"], ["mime_type", "image/png"]]
123
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-02-22 15:25:18.240815"], ["updated_at", "2015-02-22 15:25:18.240815"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
184
124
   (0.1ms) RELEASE SAVEPOINT active_record_2
185
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
186
-  (0.1ms) ROLLBACK
187
-  (0.1ms) BEGIN
188
- ----------------------------------------------------------------------
189
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
190
- ----------------------------------------------------------------------
191
-  (0.0ms) SAVEPOINT active_record_1
192
-  (0.1ms) RELEASE SAVEPOINT active_record_1
193
-  (0.1ms) SAVEPOINT active_record_1
194
125
   (0.1ms) SAVEPOINT active_record_2
195
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-02-09 20:44:06.869985"], ["updated_at", "2015-02-09 20:44:06.869985"], ["file_ext", "png"], ["mime_type", "image/png"]]
126
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-02-22 15:25:18.243349"], ["updated_at", "2015-02-22 15:25:18.243349"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
196
127
   (0.1ms) RELEASE SAVEPOINT active_record_2
128
+  (0.1ms) SAVEPOINT active_record_2
129
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-02-22 15:25:18.245838"], ["updated_at", "2015-02-22 15:25:18.245838"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
130
+  (0.1ms) RELEASE SAVEPOINT active_record_2
131
+  (0.1ms) SAVEPOINT active_record_2
132
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-02-22 15:25:18.248233"], ["updated_at", "2015-02-22 15:25:18.248233"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
133
+  (0.1ms) RELEASE SAVEPOINT active_record_2
134
+  (0.1ms) SAVEPOINT active_record_2
135
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-02-22 15:25:18.250772"], ["updated_at", "2015-02-22 15:25:18.250772"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
136
+  (0.1ms) RELEASE SAVEPOINT active_record_2
137
+  (0.1ms) SAVEPOINT active_record_2
138
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-02-22 15:25:18.253366"], ["updated_at", "2015-02-22 15:25:18.253366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
139
+  (0.1ms) RELEASE SAVEPOINT active_record_2
140
+  (0.1ms) SAVEPOINT active_record_2
141
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-02-22 15:25:18.255788"], ["updated_at", "2015-02-22 15:25:18.255788"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
142
+  (0.1ms) RELEASE SAVEPOINT active_record_2
143
+  (0.1ms) SAVEPOINT active_record_2
144
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-02-22 15:25:18.258191"], ["updated_at", "2015-02-22 15:25:18.258191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
145
+  (0.1ms) RELEASE SAVEPOINT active_record_2
146
+ Processing by PushType::WysiwygMediaController#index as JSON
147
+ Parameters: {"filter"=>"file", "page"=>2}
148
+ PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
149
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
150
+ Completed 200 OK in 16ms (Views: 0.3ms | ActiveRecord: 0.9ms)
197
151
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
198
152
   (0.1ms) ROLLBACK
199
153
   (0.1ms) BEGIN
200
- ----------------------------------------------------------------------
201
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
202
- ----------------------------------------------------------------------
154
+ ----------------------------------------------------------------------------------
155
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
156
+ ----------------------------------------------------------------------------------
203
157
   (0.1ms) SAVEPOINT active_record_1
204
158
   (0.0ms) RELEASE SAVEPOINT active_record_1
205
159
   (0.0ms) SAVEPOINT active_record_1
206
160
   (0.1ms) SAVEPOINT active_record_2
207
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-02-09 20:44:06.876200"], ["updated_at", "2015-02-09 20:44:06.876200"], ["file_ext", "png"], ["mime_type", "image/png"]]
161
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-02-22 15:25:18.283854"], ["updated_at", "2015-02-22 15:25:18.283854"], ["file_ext", "png"], ["mime_type", "image/png"]]
208
162
   (0.1ms) RELEASE SAVEPOINT active_record_2
209
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
210
-  (0.1ms) ROLLBACK
211
-  (0.1ms) BEGIN
212
- ----------------------------------------------------------------------------------
213
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
214
- ----------------------------------------------------------------------------------
215
-  (0.1ms) SAVEPOINT active_record_1
216
-  (0.1ms) RELEASE SAVEPOINT active_record_1
217
-  (0.0ms) SAVEPOINT active_record_1
218
163
   (0.1ms) SAVEPOINT active_record_2
219
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-02-09 20:44:06.883584"], ["updated_at", "2015-02-09 20:44:06.883584"], ["file_ext", "png"], ["mime_type", "image/png"]]
164
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-02-22 15:25:18.286688"], ["updated_at", "2015-02-22 15:25:18.286688"], ["file_ext", "png"], ["mime_type", "image/png"]]
220
165
   (0.1ms) RELEASE SAVEPOINT active_record_2
221
166
   (0.1ms) SAVEPOINT active_record_2
222
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-02-09 20:44:06.886522"], ["updated_at", "2015-02-09 20:44:06.886522"], ["file_ext", "png"], ["mime_type", "image/png"]]
167
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-02-22 15:25:18.289178"], ["updated_at", "2015-02-22 15:25:18.289178"], ["file_ext", "png"], ["mime_type", "image/png"]]
223
168
   (0.1ms) RELEASE SAVEPOINT active_record_2
224
169
   (0.1ms) SAVEPOINT active_record_2
225
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-02-09 20:44:06.889343"], ["updated_at", "2015-02-09 20:44:06.889343"], ["file_ext", "png"], ["mime_type", "image/png"]]
170
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-02-22 15:25:18.291675"], ["updated_at", "2015-02-22 15:25:18.291675"], ["file_ext", "png"], ["mime_type", "image/png"]]
226
171
   (0.1ms) RELEASE SAVEPOINT active_record_2
227
172
   (0.1ms) SAVEPOINT active_record_2
228
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-02-09 20:44:06.891978"], ["updated_at", "2015-02-09 20:44:06.891978"], ["file_ext", "png"], ["mime_type", "image/png"]]
173
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-02-22 15:25:18.294134"], ["updated_at", "2015-02-22 15:25:18.294134"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
174
   (0.1ms) RELEASE SAVEPOINT active_record_2
230
175
   (0.1ms) SAVEPOINT active_record_2
231
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-02-09 20:44:06.894722"], ["updated_at", "2015-02-09 20:44:06.894722"], ["file_ext", "png"], ["mime_type", "image/png"]]
176
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-02-22 15:25:18.296740"], ["updated_at", "2015-02-22 15:25:18.296740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
232
177
   (0.1ms) RELEASE SAVEPOINT active_record_2
233
178
   (0.1ms) SAVEPOINT active_record_2
234
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-02-09 20:44:06.897678"], ["updated_at", "2015-02-09 20:44:06.897678"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
179
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-02-22 15:25:18.299343"], ["updated_at", "2015-02-22 15:25:18.299343"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
235
180
   (0.1ms) RELEASE SAVEPOINT active_record_2
236
181
   (0.1ms) SAVEPOINT active_record_2
237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-02-09 20:44:06.900323"], ["updated_at", "2015-02-09 20:44:06.900323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
182
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-02-22 15:25:18.301738"], ["updated_at", "2015-02-22 15:25:18.301738"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
238
183
   (0.1ms) RELEASE SAVEPOINT active_record_2
239
184
   (0.1ms) SAVEPOINT active_record_2
240
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-02-09 20:44:06.903143"], ["updated_at", "2015-02-09 20:44:06.903143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
185
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-02-22 15:25:18.304328"], ["updated_at", "2015-02-22 15:25:18.304328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
186
   (0.1ms) RELEASE SAVEPOINT active_record_2
242
187
   (0.1ms) SAVEPOINT active_record_2
243
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-02-09 20:44:06.905957"], ["updated_at", "2015-02-09 20:44:06.905957"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
188
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-02-22 15:25:18.306799"], ["updated_at", "2015-02-22 15:25:18.306799"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
189
   (0.1ms) RELEASE SAVEPOINT active_record_2
245
190
   (0.1ms) SAVEPOINT active_record_2
246
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-02-09 20:44:06.908662"], ["updated_at", "2015-02-09 20:44:06.908662"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
191
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-02-22 15:25:18.309312"], ["updated_at", "2015-02-22 15:25:18.309312"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
192
   (0.1ms) RELEASE SAVEPOINT active_record_2
248
193
   (0.1ms) SAVEPOINT active_record_2
249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-02-09 20:44:06.911496"], ["updated_at", "2015-02-09 20:44:06.911496"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
194
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-02-22 15:25:18.311865"], ["updated_at", "2015-02-22 15:25:18.311865"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
195
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
196
   (0.1ms) SAVEPOINT active_record_2
252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "19"], ["created_at", "2015-02-09 20:44:06.914232"], ["updated_at", "2015-02-09 20:44:06.914232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
197
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-02-22 15:25:18.314310"], ["updated_at", "2015-02-22 15:25:18.314310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
198
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
199
   (0.1ms) SAVEPOINT active_record_2
255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "20"], ["created_at", "2015-02-09 20:44:06.916997"], ["updated_at", "2015-02-09 20:44:06.916997"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
200
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-02-22 15:25:18.316874"], ["updated_at", "2015-02-22 15:25:18.316874"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
201
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
202
   (0.1ms) SAVEPOINT active_record_2
258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "21"], ["created_at", "2015-02-09 20:44:06.919650"], ["updated_at", "2015-02-09 20:44:06.919650"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
203
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-02-22 15:25:18.319277"], ["updated_at", "2015-02-22 15:25:18.319277"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
204
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
205
   (0.1ms) SAVEPOINT active_record_2
261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "22"], ["created_at", "2015-02-09 20:44:06.922247"], ["updated_at", "2015-02-09 20:44:06.922247"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
206
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-02-22 15:25:18.321847"], ["updated_at", "2015-02-22 15:25:18.321847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
207
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
208
   (0.1ms) SAVEPOINT active_record_2
264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "23"], ["created_at", "2015-02-09 20:44:06.924957"], ["updated_at", "2015-02-09 20:44:06.924957"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
209
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-02-22 15:25:18.324292"], ["updated_at", "2015-02-22 15:25:18.324292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
265
210
   (0.1ms) RELEASE SAVEPOINT active_record_2
266
211
   (0.1ms) SAVEPOINT active_record_2
267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-02-09 20:44:06.927684"], ["updated_at", "2015-02-09 20:44:06.927684"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
212
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-02-22 15:25:18.326770"], ["updated_at", "2015-02-22 15:25:18.326770"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
268
213
   (0.1ms) RELEASE SAVEPOINT active_record_2
269
-  (0.1ms) SAVEPOINT active_record_2
270
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-02-09 20:44:06.930353"], ["updated_at", "2015-02-09 20:44:06.930353"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
271
-  (0.1ms) RELEASE SAVEPOINT active_record_2
272
214
  Processing by PushType::WysiwygMediaController#index as JSON
273
215
  Parameters: {"filter"=>"file", "page"=>2}
274
- PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
275
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
276
- Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 0.8ms)
277
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
278
-  (0.1ms) ROLLBACK
279
-  (0.1ms) BEGIN
216
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
217
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
218
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
219
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
+  (0.1ms) ROLLBACK
221
+  (0.1ms) BEGIN
280
222
  ----------------------------------------------------------------------------------
281
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
223
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
282
224
  ----------------------------------------------------------------------------------
283
-  (0.1ms) SAVEPOINT active_record_1
284
-  (0.1ms) RELEASE SAVEPOINT active_record_1
285
-  (0.1ms) SAVEPOINT active_record_1
286
-  (0.1ms) SAVEPOINT active_record_2
287
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2015-02-09 20:44:06.952078"], ["updated_at", "2015-02-09 20:44:06.952078"], ["file_ext", "png"], ["mime_type", "image/png"]]
288
-  (0.1ms) RELEASE SAVEPOINT active_record_2
225
+  (0.1ms) SAVEPOINT active_record_1
226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
227
+  (0.0ms) SAVEPOINT active_record_1
289
228
   (0.1ms) SAVEPOINT active_record_2
290
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2015-02-09 20:44:06.954916"], ["updated_at", "2015-02-09 20:44:06.954916"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-02-22 15:25:18.338140"], ["updated_at", "2015-02-22 15:25:18.338140"], ["file_ext", "png"], ["mime_type", "image/png"]]
291
230
   (0.1ms) RELEASE SAVEPOINT active_record_2
292
231
   (0.1ms) SAVEPOINT active_record_2
293
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2015-02-09 20:44:06.957803"], ["updated_at", "2015-02-09 20:44:06.957803"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-02-22 15:25:18.340784"], ["updated_at", "2015-02-22 15:25:18.340784"], ["file_ext", "png"], ["mime_type", "image/png"]]
294
233
   (0.1ms) RELEASE SAVEPOINT active_record_2
295
234
   (0.1ms) SAVEPOINT active_record_2
296
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-02-09 20:44:06.960322"], ["updated_at", "2015-02-09 20:44:06.960322"], ["file_ext", "png"], ["mime_type", "image/png"]]
235
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-02-22 15:25:18.343322"], ["updated_at", "2015-02-22 15:25:18.343322"], ["file_ext", "png"], ["mime_type", "image/png"]]
297
236
   (0.1ms) RELEASE SAVEPOINT active_record_2
298
237
   (0.1ms) SAVEPOINT active_record_2
299
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["created_at", "2015-02-09 20:44:06.962752"], ["updated_at", "2015-02-09 20:44:06.962752"], ["file_ext", "png"], ["mime_type", "image/png"]]
238
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-02-22 15:25:18.345832"], ["updated_at", "2015-02-22 15:25:18.345832"], ["file_ext", "png"], ["mime_type", "image/png"]]
300
239
   (0.1ms) RELEASE SAVEPOINT active_record_2
301
240
   (0.1ms) SAVEPOINT active_record_2
302
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-02-09 20:44:06.965205"], ["updated_at", "2015-02-09 20:44:06.965205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-02-22 15:25:18.348351"], ["updated_at", "2015-02-22 15:25:18.348351"], ["file_ext", "png"], ["mime_type", "image/png"]]
303
242
   (0.1ms) RELEASE SAVEPOINT active_record_2
304
243
   (0.1ms) SAVEPOINT active_record_2
305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-02-09 20:44:06.967651"], ["updated_at", "2015-02-09 20:44:06.967651"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-02-22 15:25:18.350711"], ["updated_at", "2015-02-22 15:25:18.350711"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
306
245
   (0.1ms) RELEASE SAVEPOINT active_record_2
307
246
   (0.1ms) SAVEPOINT active_record_2
308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-02-09 20:44:06.970192"], ["updated_at", "2015-02-09 20:44:06.970192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-02-22 15:25:18.353064"], ["updated_at", "2015-02-22 15:25:18.353064"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
248
   (0.1ms) RELEASE SAVEPOINT active_record_2
310
249
   (0.1ms) SAVEPOINT active_record_2
311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-02-09 20:44:06.972681"], ["updated_at", "2015-02-09 20:44:06.972681"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-02-22 15:25:18.355435"], ["updated_at", "2015-02-22 15:25:18.355435"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
251
   (0.1ms) RELEASE SAVEPOINT active_record_2
313
252
   (0.1ms) SAVEPOINT active_record_2
314
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-02-09 20:44:06.975196"], ["updated_at", "2015-02-09 20:44:06.975196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-02-22 15:25:18.357884"], ["updated_at", "2015-02-22 15:25:18.357884"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
254
   (0.1ms) RELEASE SAVEPOINT active_record_2
316
255
   (0.1ms) SAVEPOINT active_record_2
317
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-02-09 20:44:06.977692"], ["updated_at", "2015-02-09 20:44:06.977692"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-02-22 15:25:18.360542"], ["updated_at", "2015-02-22 15:25:18.360542"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
257
   (0.1ms) RELEASE SAVEPOINT active_record_2
319
258
   (0.1ms) SAVEPOINT active_record_2
320
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2015-02-09 20:44:06.980371"], ["updated_at", "2015-02-09 20:44:06.980371"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-02-22 15:25:18.363030"], ["updated_at", "2015-02-22 15:25:18.363030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
260
   (0.1ms) RELEASE SAVEPOINT active_record_2
322
261
   (0.1ms) SAVEPOINT active_record_2
323
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2015-02-09 20:44:06.982925"], ["updated_at", "2015-02-09 20:44:06.982925"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-02-22 15:25:18.365590"], ["updated_at", "2015-02-22 15:25:18.365590"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
263
   (0.1ms) RELEASE SAVEPOINT active_record_2
325
264
   (0.1ms) SAVEPOINT active_record_2
326
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "39"], ["created_at", "2015-02-09 20:44:06.985637"], ["updated_at", "2015-02-09 20:44:06.985637"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
265
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-02-22 15:25:18.368144"], ["updated_at", "2015-02-22 15:25:18.368144"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
266
   (0.1ms) RELEASE SAVEPOINT active_record_2
328
267
   (0.1ms) SAVEPOINT active_record_2
329
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "40"], ["created_at", "2015-02-09 20:44:06.988194"], ["updated_at", "2015-02-09 20:44:06.988194"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
268
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-02-22 15:25:18.370881"], ["updated_at", "2015-02-22 15:25:18.370881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
269
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
270
   (0.1ms) SAVEPOINT active_record_2
332
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "41"], ["created_at", "2015-02-09 20:44:06.990740"], ["updated_at", "2015-02-09 20:44:06.990740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
271
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-02-22 15:25:18.373881"], ["updated_at", "2015-02-22 15:25:18.373881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
333
272
   (0.1ms) RELEASE SAVEPOINT active_record_2
334
273
   (0.1ms) SAVEPOINT active_record_2
335
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-02-09 20:44:06.993408"], ["updated_at", "2015-02-09 20:44:06.993408"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
274
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-02-22 15:25:18.377075"], ["updated_at", "2015-02-22 15:25:18.377075"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
336
275
   (0.1ms) RELEASE SAVEPOINT active_record_2
337
276
   (0.1ms) SAVEPOINT active_record_2
338
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-02-09 20:44:06.996146"], ["updated_at", "2015-02-09 20:44:06.996146"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
277
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-02-22 15:25:18.380577"], ["updated_at", "2015-02-22 15:25:18.380577"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
339
278
   (0.1ms) RELEASE SAVEPOINT active_record_2
279
+  (0.1ms) SAVEPOINT active_record_2
280
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-02-22 15:25:18.383475"], ["updated_at", "2015-02-22 15:25:18.383475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
281
+  (0.1ms) RELEASE SAVEPOINT active_record_2
340
282
  Processing by PushType::WysiwygMediaController#index as JSON
341
283
  Parameters: {"filter"=>"file", "page"=>2}
342
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
343
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
344
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
345
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
346
-  (0.1ms) ROLLBACK
347
-  (0.2ms) BEGIN
284
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
285
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
286
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
287
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
288
+  (0.1ms) ROLLBACK
289
+  (0.1ms) BEGIN
348
290
  ----------------------------------------------------------------------------------
349
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
291
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
350
292
  ----------------------------------------------------------------------------------
351
-  (0.1ms) SAVEPOINT active_record_1
352
-  (0.0ms) RELEASE SAVEPOINT active_record_1
353
-  (0.0ms) SAVEPOINT active_record_1
354
-  (0.1ms) SAVEPOINT active_record_2
355
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2015-02-09 20:44:07.007890"], ["updated_at", "2015-02-09 20:44:07.007890"], ["file_ext", "png"], ["mime_type", "image/png"]]
356
-  (0.1ms) RELEASE SAVEPOINT active_record_2
293
+  (0.1ms) SAVEPOINT active_record_1
294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295
+  (0.1ms) SAVEPOINT active_record_1
357
296
   (0.1ms) SAVEPOINT active_record_2
358
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "45"], ["created_at", "2015-02-09 20:44:07.016153"], ["updated_at", "2015-02-09 20:44:07.016153"], ["file_ext", "png"], ["mime_type", "image/png"]]
297
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-02-22 15:25:18.401100"], ["updated_at", "2015-02-22 15:25:18.401100"], ["file_ext", "png"], ["mime_type", "image/png"]]
359
298
   (0.1ms) RELEASE SAVEPOINT active_record_2
360
299
   (0.1ms) SAVEPOINT active_record_2
361
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2015-02-09 20:44:07.019056"], ["updated_at", "2015-02-09 20:44:07.019056"], ["file_ext", "png"], ["mime_type", "image/png"]]
300
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-02-22 15:25:18.403712"], ["updated_at", "2015-02-22 15:25:18.403712"], ["file_ext", "png"], ["mime_type", "image/png"]]
362
301
   (0.1ms) RELEASE SAVEPOINT active_record_2
363
302
   (0.1ms) SAVEPOINT active_record_2
364
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2015-02-09 20:44:07.021631"], ["updated_at", "2015-02-09 20:44:07.021631"], ["file_ext", "png"], ["mime_type", "image/png"]]
303
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-02-22 15:25:18.406160"], ["updated_at", "2015-02-22 15:25:18.406160"], ["file_ext", "png"], ["mime_type", "image/png"]]
365
304
   (0.1ms) RELEASE SAVEPOINT active_record_2
366
305
   (0.1ms) SAVEPOINT active_record_2
367
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2015-02-09 20:44:07.024101"], ["updated_at", "2015-02-09 20:44:07.024101"], ["file_ext", "png"], ["mime_type", "image/png"]]
306
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-02-22 15:25:18.408581"], ["updated_at", "2015-02-22 15:25:18.408581"], ["file_ext", "png"], ["mime_type", "image/png"]]
368
307
   (0.1ms) RELEASE SAVEPOINT active_record_2
369
308
   (0.1ms) SAVEPOINT active_record_2
370
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-02-09 20:44:07.026589"], ["updated_at", "2015-02-09 20:44:07.026589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-02-22 15:25:18.411183"], ["updated_at", "2015-02-22 15:25:18.411183"], ["file_ext", "png"], ["mime_type", "image/png"]]
371
310
   (0.1ms) RELEASE SAVEPOINT active_record_2
372
311
   (0.1ms) SAVEPOINT active_record_2
373
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-02-09 20:44:07.029249"], ["updated_at", "2015-02-09 20:44:07.029249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-02-22 15:25:18.413751"], ["updated_at", "2015-02-22 15:25:18.413751"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
374
313
   (0.1ms) RELEASE SAVEPOINT active_record_2
375
314
   (0.1ms) SAVEPOINT active_record_2
376
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-02-09 20:44:07.031928"], ["updated_at", "2015-02-09 20:44:07.031928"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-02-22 15:25:18.416232"], ["updated_at", "2015-02-22 15:25:18.416232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
316
   (0.1ms) RELEASE SAVEPOINT active_record_2
378
317
   (0.1ms) SAVEPOINT active_record_2
379
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-02-09 20:44:07.034415"], ["updated_at", "2015-02-09 20:44:07.034415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-02-22 15:25:18.418669"], ["updated_at", "2015-02-22 15:25:18.418669"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
319
   (0.1ms) RELEASE SAVEPOINT active_record_2
381
320
   (0.1ms) SAVEPOINT active_record_2
382
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-02-09 20:44:07.036985"], ["updated_at", "2015-02-09 20:44:07.036985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-02-22 15:25:18.421085"], ["updated_at", "2015-02-22 15:25:18.421085"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
322
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
323
   (0.1ms) SAVEPOINT active_record_2
385
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-02-09 20:44:07.039585"], ["updated_at", "2015-02-09 20:44:07.039585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-02-22 15:25:18.423628"], ["updated_at", "2015-02-22 15:25:18.423628"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
325
   (0.1ms) RELEASE SAVEPOINT active_record_2
387
326
   (0.1ms) SAVEPOINT active_record_2
388
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-02-09 20:44:07.042412"], ["updated_at", "2015-02-09 20:44:07.042412"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-02-22 15:25:18.426120"], ["updated_at", "2015-02-22 15:25:18.426120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
328
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
329
   (0.1ms) SAVEPOINT active_record_2
391
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-02-09 20:44:07.045228"], ["updated_at", "2015-02-09 20:44:07.045228"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-02-22 15:25:18.428870"], ["updated_at", "2015-02-22 15:25:18.428870"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
331
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
332
   (0.1ms) SAVEPOINT active_record_2
394
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "57"], ["created_at", "2015-02-09 20:44:07.047861"], ["updated_at", "2015-02-09 20:44:07.047861"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
333
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-02-22 15:25:18.431391"], ["updated_at", "2015-02-22 15:25:18.431391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
334
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
335
   (0.1ms) SAVEPOINT active_record_2
397
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2015-02-09 20:44:07.050396"], ["updated_at", "2015-02-09 20:44:07.050396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
336
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-02-22 15:25:18.433958"], ["updated_at", "2015-02-22 15:25:18.433958"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
337
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
338
   (0.1ms) SAVEPOINT active_record_2
400
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2015-02-09 20:44:07.053221"], ["updated_at", "2015-02-09 20:44:07.053221"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
339
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-02-22 15:25:18.436533"], ["updated_at", "2015-02-22 15:25:18.436533"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
401
340
   (0.1ms) RELEASE SAVEPOINT active_record_2
402
341
   (0.1ms) SAVEPOINT active_record_2
403
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-02-09 20:44:07.055761"], ["updated_at", "2015-02-09 20:44:07.055761"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
342
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-02-22 15:25:18.439022"], ["updated_at", "2015-02-22 15:25:18.439022"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
404
343
   (0.1ms) RELEASE SAVEPOINT active_record_2
405
344
   (0.1ms) SAVEPOINT active_record_2
406
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-02-09 20:44:07.058415"], ["updated_at", "2015-02-09 20:44:07.058415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
345
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-02-22 15:25:18.441415"], ["updated_at", "2015-02-22 15:25:18.441415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
407
346
   (0.1ms) RELEASE SAVEPOINT active_record_2
347
+  (0.1ms) SAVEPOINT active_record_2
348
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-02-22 15:25:18.443829"], ["updated_at", "2015-02-22 15:25:18.443829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
349
+  (0.1ms) RELEASE SAVEPOINT active_record_2
408
350
  Processing by PushType::WysiwygMediaController#index as JSON
409
351
  Parameters: {"filter"=>"file", "page"=>2}
410
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
411
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
412
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
352
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
353
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
354
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
355
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
356
+  (0.1ms) ROLLBACK
357
+  (0.1ms) BEGIN
358
+ ----------------------------------------------------------------------
359
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
360
+ ----------------------------------------------------------------------
361
+  (0.1ms) SAVEPOINT active_record_1
362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363
+  (0.1ms) SAVEPOINT active_record_1
364
+  (0.1ms) SAVEPOINT active_record_2
365
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-02-22 15:25:18.457669"], ["updated_at", "2015-02-22 15:25:18.457669"], ["file_ext", "png"], ["mime_type", "image/png"]]
366
+  (0.1ms) RELEASE SAVEPOINT active_record_2
413
367
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
414
368
   (0.1ms) ROLLBACK
415
369
   (0.1ms) BEGIN
416
- ----------------------------------------------------------------------------------
417
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
418
- ----------------------------------------------------------------------------------
370
+ ----------------------------------------------------------------------
371
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
372
+ ----------------------------------------------------------------------
419
373
   (0.1ms) SAVEPOINT active_record_1
420
-  (0.0ms) RELEASE SAVEPOINT active_record_1
374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
375
+  (0.1ms) SAVEPOINT active_record_1
376
+  (0.1ms) SAVEPOINT active_record_2
377
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-02-22 15:25:18.465859"], ["updated_at", "2015-02-22 15:25:18.465859"], ["file_ext", "png"], ["mime_type", "image/png"]]
378
+  (0.1ms) RELEASE SAVEPOINT active_record_2
379
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
380
+  (0.1ms) ROLLBACK
381
+  (0.1ms) BEGIN
382
+ ----------------------------------------------------------------------
383
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
384
+ ----------------------------------------------------------------------
385
+  (0.1ms) SAVEPOINT active_record_1
386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
387
+  (0.0ms) SAVEPOINT active_record_1
388
+  (0.1ms) SAVEPOINT active_record_2
389
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-02-22 15:25:18.472448"], ["updated_at", "2015-02-22 15:25:18.472448"], ["file_ext", "png"], ["mime_type", "image/png"]]
390
+  (0.1ms) RELEASE SAVEPOINT active_record_2
391
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
392
+  (0.1ms) ROLLBACK
393
+  (0.1ms) BEGIN
394
+ ----------------------------------------------------------------------
395
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
396
+ ----------------------------------------------------------------------
421
397
   (0.0ms) SAVEPOINT active_record_1
398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
399
+  (0.1ms) SAVEPOINT active_record_1
422
400
   (0.1ms) SAVEPOINT active_record_2
423
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "62"], ["created_at", "2015-02-09 20:44:07.070966"], ["updated_at", "2015-02-09 20:44:07.070966"], ["file_ext", "png"], ["mime_type", "image/png"]]
401
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-02-22 15:25:18.478956"], ["updated_at", "2015-02-22 15:25:18.478956"], ["file_ext", "png"], ["mime_type", "image/png"]]
424
402
   (0.1ms) RELEASE SAVEPOINT active_record_2
403
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
404
+  (0.1ms) ROLLBACK
405
+  (0.1ms) BEGIN
406
+ ----------------------------------------------------------------------
407
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
408
+ ----------------------------------------------------------------------
409
+  (0.1ms) SAVEPOINT active_record_1
410
+  (0.1ms) RELEASE SAVEPOINT active_record_1
411
+  (0.0ms) SAVEPOINT active_record_1
425
412
   (0.1ms) SAVEPOINT active_record_2
426
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "63"], ["created_at", "2015-02-09 20:44:07.073670"], ["updated_at", "2015-02-09 20:44:07.073670"], ["file_ext", "png"], ["mime_type", "image/png"]]
413
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-02-22 15:25:18.485601"], ["updated_at", "2015-02-22 15:25:18.485601"], ["file_ext", "png"], ["mime_type", "image/png"]]
427
414
   (0.1ms) RELEASE SAVEPOINT active_record_2
415
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
416
+  (0.1ms) ROLLBACK
417
+  (0.1ms) BEGIN
418
+ ----------------------------------------------------------------------
419
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
420
+ ----------------------------------------------------------------------
421
+  (0.0ms) SAVEPOINT active_record_1
422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
423
+  (0.0ms) SAVEPOINT active_record_1
428
424
   (0.1ms) SAVEPOINT active_record_2
429
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "64"], ["created_at", "2015-02-09 20:44:07.076475"], ["updated_at", "2015-02-09 20:44:07.076475"], ["file_ext", "png"], ["mime_type", "image/png"]]
425
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-02-22 15:25:18.492612"], ["updated_at", "2015-02-22 15:25:18.492612"], ["file_ext", "png"], ["mime_type", "image/png"]]
430
426
   (0.1ms) RELEASE SAVEPOINT active_record_2
427
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
428
+  (0.1ms) ROLLBACK
429
+  (0.1ms) BEGIN
430
+ ----------------------------------------------------------------------
431
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
432
+ ----------------------------------------------------------------------
433
+  (0.1ms) SAVEPOINT active_record_1
434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
435
+  (0.1ms) SAVEPOINT active_record_1
431
436
   (0.1ms) SAVEPOINT active_record_2
432
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "65"], ["created_at", "2015-02-09 20:44:07.079139"], ["updated_at", "2015-02-09 20:44:07.079139"], ["file_ext", "png"], ["mime_type", "image/png"]]
437
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-02-22 15:25:18.499446"], ["updated_at", "2015-02-22 15:25:18.499446"], ["file_ext", "png"], ["mime_type", "image/png"]]
438
+  (0.1ms) RELEASE SAVEPOINT active_record_2
439
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
440
+  (0.2ms) ROLLBACK
441
+  (0.1ms) BEGIN
442
+ --------------------------------------------------------------------------------
443
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
444
+ --------------------------------------------------------------------------------
445
+  (0.1ms) SAVEPOINT active_record_1
446
+  (0.1ms) RELEASE SAVEPOINT active_record_1
447
+  (0.1ms) SAVEPOINT active_record_1
448
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
449
+ Processing by PushType::WysiwygMediaController#create as JSON
450
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc343f009e8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150222-6309-168di47>>}}
451
+  (0.1ms) SAVEPOINT active_record_2
452
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-02-22 15:25:18.516053"], ["updated_at", "2015-02-22 15:25:18.516053"], ["file_ext", "png"], ["mime_type", "image/png"]]
453
+  (0.1ms) RELEASE SAVEPOINT active_record_2
454
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.4ms)
455
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
456
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
457
+  (0.1ms) ROLLBACK
458
+  (0.1ms) BEGIN
459
+ -----------------------------------------------------------------------
460
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
461
+ -----------------------------------------------------------------------
462
+  (0.1ms) SAVEPOINT active_record_1
463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
464
+  (0.1ms) SAVEPOINT active_record_1
465
+  (0.1ms) SAVEPOINT active_record_2
466
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "81"], ["created_at", "2015-02-22 15:25:18.524596"], ["updated_at", "2015-02-22 15:25:18.524596"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
467
   (0.1ms) RELEASE SAVEPOINT active_record_2
434
468
   (0.1ms) SAVEPOINT active_record_2
435
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "66"], ["created_at", "2015-02-09 20:44:07.081742"], ["updated_at", "2015-02-09 20:44:07.081742"], ["file_ext", "png"], ["mime_type", "image/png"]]
469
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2015-02-22 15:25:18.527197"], ["updated_at", "2015-02-22 15:25:18.527197"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
470
   (0.1ms) RELEASE SAVEPOINT active_record_2
437
471
   (0.1ms) SAVEPOINT active_record_2
438
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-02-09 20:44:07.084281"], ["updated_at", "2015-02-09 20:44:07.084281"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
472
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-02-22 15:25:18.529881"], ["updated_at", "2015-02-22 15:25:18.529881"], ["file_ext", "png"], ["mime_type", "image/png"]]
439
473
   (0.1ms) RELEASE SAVEPOINT active_record_2
440
474
   (0.1ms) SAVEPOINT active_record_2
441
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-02-09 20:44:07.086822"], ["updated_at", "2015-02-09 20:44:07.086822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
475
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-02-22 15:25:18.532425"], ["updated_at", "2015-02-22 15:25:18.532425"], ["file_ext", "png"], ["mime_type", "image/png"]]
476
+  (0.1ms) RELEASE SAVEPOINT active_record_2
477
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
478
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
479
+  (0.1ms) ROLLBACK
480
+  (0.0ms) BEGIN
481
+ -----------------------------------------------------------------------
482
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
483
+ -----------------------------------------------------------------------
484
+  (0.0ms) SAVEPOINT active_record_1
485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
486
+  (0.0ms) SAVEPOINT active_record_1
487
+  (0.1ms) SAVEPOINT active_record_2
488
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-02-22 15:25:18.537510"], ["updated_at", "2015-02-22 15:25:18.537510"], ["file_ext", "png"], ["mime_type", "image/png"]]
442
489
   (0.1ms) RELEASE SAVEPOINT active_record_2
443
490
   (0.1ms) SAVEPOINT active_record_2
444
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-02-09 20:44:07.089501"], ["updated_at", "2015-02-09 20:44:07.089501"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
491
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-02-22 15:25:18.540010"], ["updated_at", "2015-02-22 15:25:18.540010"], ["file_ext", "png"], ["mime_type", "image/png"]]
445
492
   (0.1ms) RELEASE SAVEPOINT active_record_2
446
493
   (0.1ms) SAVEPOINT active_record_2
447
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-02-09 20:44:07.092093"], ["updated_at", "2015-02-09 20:44:07.092093"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
494
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "87"], ["created_at", "2015-02-22 15:25:18.542437"], ["updated_at", "2015-02-22 15:25:18.542437"], ["file_ext", "png"], ["mime_type", "image/png"]]
448
495
   (0.1ms) RELEASE SAVEPOINT active_record_2
449
496
   (0.1ms) SAVEPOINT active_record_2
450
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-02-09 20:44:07.094636"], ["updated_at", "2015-02-09 20:44:07.094636"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
497
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "88"], ["created_at", "2015-02-22 15:25:18.544979"], ["updated_at", "2015-02-22 15:25:18.544979"], ["file_ext", "png"], ["mime_type", "image/png"]]
498
+  (0.1ms) RELEASE SAVEPOINT active_record_2
499
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
500
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
501
+  (0.1ms) ROLLBACK
502
+  (0.1ms) BEGIN
503
+ -----------------------------------------------------------------------
504
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
505
+ -----------------------------------------------------------------------
506
+  (0.0ms) SAVEPOINT active_record_1
507
+  (0.0ms) RELEASE SAVEPOINT active_record_1
508
+  (0.0ms) SAVEPOINT active_record_1
509
+  (0.1ms) SAVEPOINT active_record_2
510
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "89"], ["created_at", "2015-02-22 15:25:18.550205"], ["updated_at", "2015-02-22 15:25:18.550205"], ["file_ext", "png"], ["mime_type", "image/png"]]
451
511
   (0.1ms) RELEASE SAVEPOINT active_record_2
452
512
   (0.1ms) SAVEPOINT active_record_2
453
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-02-09 20:44:07.097153"], ["updated_at", "2015-02-09 20:44:07.097153"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "90"], ["created_at", "2015-02-22 15:25:18.552737"], ["updated_at", "2015-02-22 15:25:18.552737"], ["file_ext", "png"], ["mime_type", "image/png"]]
454
514
   (0.1ms) RELEASE SAVEPOINT active_record_2
455
515
   (0.1ms) SAVEPOINT active_record_2
456
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-02-09 20:44:07.099919"], ["updated_at", "2015-02-09 20:44:07.099919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "91"], ["created_at", "2015-02-22 15:25:18.555163"], ["updated_at", "2015-02-22 15:25:18.555163"], ["file_ext", "png"], ["mime_type", "image/png"]]
457
517
   (0.1ms) RELEASE SAVEPOINT active_record_2
458
518
   (0.1ms) SAVEPOINT active_record_2
459
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-02-09 20:44:07.102467"], ["updated_at", "2015-02-09 20:44:07.102467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "92"], ["created_at", "2015-02-22 15:25:18.557599"], ["updated_at", "2015-02-22 15:25:18.557599"], ["file_ext", "png"], ["mime_type", "image/png"]]
520
+  (0.1ms) RELEASE SAVEPOINT active_record_2
521
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
522
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
523
+  (0.1ms) ROLLBACK
524
+  (0.1ms) BEGIN
525
+ -----------------------------------------------------------------------
526
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
527
+ -----------------------------------------------------------------------
528
+  (0.0ms) SAVEPOINT active_record_1
529
+  (0.0ms) RELEASE SAVEPOINT active_record_1
530
+  (0.0ms) SAVEPOINT active_record_1
531
+  (0.1ms) SAVEPOINT active_record_2
532
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-02-22 15:25:18.562700"], ["updated_at", "2015-02-22 15:25:18.562700"], ["file_ext", "png"], ["mime_type", "image/png"]]
460
533
   (0.1ms) RELEASE SAVEPOINT active_record_2
461
534
   (0.1ms) SAVEPOINT active_record_2
462
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2015-02-09 20:44:07.105237"], ["updated_at", "2015-02-09 20:44:07.105237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
535
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-02-22 15:25:18.565284"], ["updated_at", "2015-02-22 15:25:18.565284"], ["file_ext", "png"], ["mime_type", "image/png"]]
463
536
   (0.1ms) RELEASE SAVEPOINT active_record_2
464
537
   (0.1ms) SAVEPOINT active_record_2
465
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2015-02-09 20:44:07.107869"], ["updated_at", "2015-02-09 20:44:07.107869"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
538
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-02-22 15:25:18.567811"], ["updated_at", "2015-02-22 15:25:18.567811"], ["file_ext", "png"], ["mime_type", "image/png"]]
466
539
   (0.1ms) RELEASE SAVEPOINT active_record_2
467
540
   (0.1ms) SAVEPOINT active_record_2
468
- SQL (0.4ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "77"], ["created_at", "2015-02-09 20:44:07.110556"], ["updated_at", "2015-02-09 20:44:07.110556"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
541
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-02-22 15:25:18.595450"], ["updated_at", "2015-02-22 15:25:18.595450"], ["file_ext", "png"], ["mime_type", "image/png"]]
542
+  (0.1ms) RELEASE SAVEPOINT active_record_2
543
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
544
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
545
+  (0.1ms) ROLLBACK
546
+  (0.1ms) BEGIN
547
+ -----------------------------------------------------------------------
548
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
549
+ -----------------------------------------------------------------------
550
+  (0.0ms) SAVEPOINT active_record_1
551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
552
+  (0.0ms) SAVEPOINT active_record_1
553
+  (0.1ms) SAVEPOINT active_record_2
554
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "97"], ["created_at", "2015-02-22 15:25:18.600777"], ["updated_at", "2015-02-22 15:25:18.600777"], ["file_ext", "png"], ["mime_type", "image/png"]]
469
555
   (0.1ms) RELEASE SAVEPOINT active_record_2
470
556
   (0.1ms) SAVEPOINT active_record_2
471
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-02-09 20:44:07.113478"], ["updated_at", "2015-02-09 20:44:07.113478"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-02-22 15:25:18.603335"], ["updated_at", "2015-02-22 15:25:18.603335"], ["file_ext", "png"], ["mime_type", "image/png"]]
472
558
   (0.1ms) RELEASE SAVEPOINT active_record_2
473
559
   (0.1ms) SAVEPOINT active_record_2
474
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-02-09 20:44:07.116312"], ["updated_at", "2015-02-09 20:44:07.116312"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
560
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "99"], ["created_at", "2015-02-22 15:25:18.606100"], ["updated_at", "2015-02-22 15:25:18.606100"], ["file_ext", "png"], ["mime_type", "image/png"]]
475
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
476
- Processing by PushType::WysiwygMediaController#index as JSON
477
- Parameters: {"filter"=>"file", "page"=>2}
478
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
479
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
480
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
562
+  (0.1ms) SAVEPOINT active_record_2
563
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2015-02-22 15:25:18.608682"], ["updated_at", "2015-02-22 15:25:18.608682"], ["file_ext", "png"], ["mime_type", "image/png"]]
564
+  (0.1ms) RELEASE SAVEPOINT active_record_2
565
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
481
566
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
482
-  (0.2ms) ROLLBACK
483
-  (0.1ms) BEGIN
567
+  (0.1ms) ROLLBACK
568
+  (0.0ms) BEGIN
484
569
  ---------------------------------------------------------------------------------------
485
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
570
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
486
571
  ---------------------------------------------------------------------------------------
487
-  (0.1ms) SAVEPOINT active_record_1
488
-  (0.1ms) RELEASE SAVEPOINT active_record_1
572
+  (0.0ms) SAVEPOINT active_record_1
573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
489
574
   (0.0ms) SAVEPOINT active_record_1
490
575
   (0.1ms) SAVEPOINT active_record_2
491
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-02-09 20:44:07.130807"], ["updated_at", "2015-02-09 20:44:07.130807"], ["file_ext", "png"], ["mime_type", "image/png"]]
576
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-02-22 15:25:18.614417"], ["updated_at", "2015-02-22 15:25:18.614417"], ["file_ext", "png"], ["mime_type", "image/png"]]
492
577
   (0.1ms) RELEASE SAVEPOINT active_record_2
493
578
   (0.1ms) SAVEPOINT active_record_2
494
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "81"], ["created_at", "2015-02-09 20:44:07.133836"], ["updated_at", "2015-02-09 20:44:07.133836"], ["file_ext", "png"], ["mime_type", "image/png"]]
579
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-02-22 15:25:18.617159"], ["updated_at", "2015-02-22 15:25:18.617159"], ["file_ext", "png"], ["mime_type", "image/png"]]
495
580
   (0.1ms) RELEASE SAVEPOINT active_record_2
496
581
   (0.1ms) SAVEPOINT active_record_2
497
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2015-02-09 20:44:07.136539"], ["updated_at", "2015-02-09 20:44:07.136539"], ["file_ext", "png"], ["mime_type", "image/png"]]
582
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-02-22 15:25:18.619734"], ["updated_at", "2015-02-22 15:25:18.619734"], ["file_ext", "png"], ["mime_type", "image/png"]]
498
583
   (0.1ms) RELEASE SAVEPOINT active_record_2
499
584
   (0.1ms) SAVEPOINT active_record_2
500
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-02-09 20:44:07.139223"], ["updated_at", "2015-02-09 20:44:07.139223"], ["file_ext", "png"], ["mime_type", "image/png"]]
585
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-02-22 15:25:18.622266"], ["updated_at", "2015-02-22 15:25:18.622266"], ["file_ext", "png"], ["mime_type", "image/png"]]
501
586
   (0.1ms) RELEASE SAVEPOINT active_record_2
502
587
   (0.1ms) SAVEPOINT active_record_2
503
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-02-09 20:44:07.142016"], ["updated_at", "2015-02-09 20:44:07.142016"], ["file_ext", "png"], ["mime_type", "image/png"]]
588
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "105"], ["created_at", "2015-02-22 15:25:18.625176"], ["updated_at", "2015-02-22 15:25:18.625176"], ["file_ext", "png"], ["mime_type", "image/png"]]
504
589
   (0.1ms) RELEASE SAVEPOINT active_record_2
505
590
   (0.1ms) SAVEPOINT active_record_2
506
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-02-09 20:44:07.144647"], ["updated_at", "2015-02-09 20:44:07.144647"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
591
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-02-22 15:25:18.627976"], ["updated_at", "2015-02-22 15:25:18.627976"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
507
592
   (0.1ms) RELEASE SAVEPOINT active_record_2
508
593
   (0.1ms) SAVEPOINT active_record_2
509
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-02-09 20:44:07.147400"], ["updated_at", "2015-02-09 20:44:07.147400"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
594
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-02-22 15:25:18.630612"], ["updated_at", "2015-02-22 15:25:18.630612"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
510
595
   (0.1ms) RELEASE SAVEPOINT active_record_2
511
596
   (0.1ms) SAVEPOINT active_record_2
512
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-02-09 20:44:07.149987"], ["updated_at", "2015-02-09 20:44:07.149987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
597
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-02-22 15:25:18.633266"], ["updated_at", "2015-02-22 15:25:18.633266"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
598
   (0.1ms) RELEASE SAVEPOINT active_record_2
514
599
   (0.1ms) SAVEPOINT active_record_2
515
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-02-09 20:44:07.152719"], ["updated_at", "2015-02-09 20:44:07.152719"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
600
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-02-22 15:25:18.636187"], ["updated_at", "2015-02-22 15:25:18.636187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
601
   (0.1ms) RELEASE SAVEPOINT active_record_2
517
602
   (0.1ms) SAVEPOINT active_record_2
518
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-02-09 20:44:07.155396"], ["updated_at", "2015-02-09 20:44:07.155396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
603
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-02-22 15:25:18.639007"], ["updated_at", "2015-02-22 15:25:18.639007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
604
   (0.1ms) RELEASE SAVEPOINT active_record_2
520
605
   (0.1ms) SAVEPOINT active_record_2
521
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-02-09 20:44:07.158180"], ["updated_at", "2015-02-09 20:44:07.158180"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
606
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-02-22 15:25:18.641544"], ["updated_at", "2015-02-22 15:25:18.641544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
607
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
608
   (0.1ms) SAVEPOINT active_record_2
524
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-02-09 20:44:07.160915"], ["updated_at", "2015-02-09 20:44:07.160915"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
609
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-02-22 15:25:18.644077"], ["updated_at", "2015-02-22 15:25:18.644077"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
525
610
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
611
   (0.1ms) SAVEPOINT active_record_2
527
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-02-09 20:44:07.163906"], ["updated_at", "2015-02-09 20:44:07.163906"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
612
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-02-22 15:25:18.646781"], ["updated_at", "2015-02-22 15:25:18.646781"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
528
613
   (0.1ms) RELEASE SAVEPOINT active_record_2
529
614
   (0.1ms) SAVEPOINT active_record_2
530
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-02-09 20:44:07.166553"], ["updated_at", "2015-02-09 20:44:07.166553"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
615
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-02-22 15:25:18.649475"], ["updated_at", "2015-02-22 15:25:18.649475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
531
616
   (0.1ms) RELEASE SAVEPOINT active_record_2
532
617
   (0.1ms) SAVEPOINT active_record_2
533
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-02-09 20:44:07.169177"], ["updated_at", "2015-02-09 20:44:07.169177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
618
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-02-22 15:25:18.652072"], ["updated_at", "2015-02-22 15:25:18.652072"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
534
619
   (0.1ms) RELEASE SAVEPOINT active_record_2
535
620
   (0.1ms) SAVEPOINT active_record_2
536
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-02-09 20:44:07.171806"], ["updated_at", "2015-02-09 20:44:07.171806"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
621
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-02-22 15:25:18.654619"], ["updated_at", "2015-02-22 15:25:18.654619"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
537
622
   (0.1ms) RELEASE SAVEPOINT active_record_2
538
623
   (0.1ms) SAVEPOINT active_record_2
539
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-02-09 20:44:07.174620"], ["updated_at", "2015-02-09 20:44:07.174620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
624
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-02-22 15:25:18.657009"], ["updated_at", "2015-02-22 15:25:18.657009"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
540
625
   (0.1ms) RELEASE SAVEPOINT active_record_2
541
626
   (0.1ms) SAVEPOINT active_record_2
542
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-02-09 20:44:07.177274"], ["updated_at", "2015-02-09 20:44:07.177274"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
627
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-02-22 15:25:18.659374"], ["updated_at", "2015-02-22 15:25:18.659374"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
543
628
   (0.1ms) RELEASE SAVEPOINT active_record_2
544
629
  Processing by PushType::WysiwygMediaController#index as JSON
545
630
  Parameters: {"filter"=>"image"}
546
631
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
547
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
548
- Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.6ms)
632
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
633
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
549
634
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
550
-  (0.1ms) ROLLBACK
635
+  (0.2ms) ROLLBACK
551
636
   (0.1ms) BEGIN
552
637
  ---------------------------------------------------------------------------------------
553
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
638
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
554
639
  ---------------------------------------------------------------------------------------
555
640
   (0.1ms) SAVEPOINT active_record_1
556
641
   (0.0ms) RELEASE SAVEPOINT active_record_1
557
642
   (0.0ms) SAVEPOINT active_record_1
558
643
   (0.1ms) SAVEPOINT active_record_2
559
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-02-09 20:44:07.202414"], ["updated_at", "2015-02-09 20:44:07.202414"], ["file_ext", "png"], ["mime_type", "image/png"]]
644
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-02-22 15:25:18.678412"], ["updated_at", "2015-02-22 15:25:18.678412"], ["file_ext", "png"], ["mime_type", "image/png"]]
560
645
   (0.1ms) RELEASE SAVEPOINT active_record_2
561
646
   (0.1ms) SAVEPOINT active_record_2
562
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "99"], ["created_at", "2015-02-09 20:44:07.205097"], ["updated_at", "2015-02-09 20:44:07.205097"], ["file_ext", "png"], ["mime_type", "image/png"]]
647
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-02-22 15:25:18.681584"], ["updated_at", "2015-02-22 15:25:18.681584"], ["file_ext", "png"], ["mime_type", "image/png"]]
563
648
   (0.1ms) RELEASE SAVEPOINT active_record_2
564
649
   (0.1ms) SAVEPOINT active_record_2
565
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2015-02-09 20:44:07.207628"], ["updated_at", "2015-02-09 20:44:07.207628"], ["file_ext", "png"], ["mime_type", "image/png"]]
650
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-02-22 15:25:18.684759"], ["updated_at", "2015-02-22 15:25:18.684759"], ["file_ext", "png"], ["mime_type", "image/png"]]
566
651
   (0.1ms) RELEASE SAVEPOINT active_record_2
567
652
   (0.1ms) SAVEPOINT active_record_2
568
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-02-09 20:44:07.210084"], ["updated_at", "2015-02-09 20:44:07.210084"], ["file_ext", "png"], ["mime_type", "image/png"]]
653
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-02-22 15:25:18.688923"], ["updated_at", "2015-02-22 15:25:18.688923"], ["file_ext", "png"], ["mime_type", "image/png"]]
569
654
   (0.1ms) RELEASE SAVEPOINT active_record_2
570
655
   (0.1ms) SAVEPOINT active_record_2
571
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-02-09 20:44:07.212657"], ["updated_at", "2015-02-09 20:44:07.212657"], ["file_ext", "png"], ["mime_type", "image/png"]]
656
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "123"], ["created_at", "2015-02-22 15:25:18.692022"], ["updated_at", "2015-02-22 15:25:18.692022"], ["file_ext", "png"], ["mime_type", "image/png"]]
572
657
   (0.1ms) RELEASE SAVEPOINT active_record_2
573
658
   (0.1ms) SAVEPOINT active_record_2
574
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-02-09 20:44:07.215317"], ["updated_at", "2015-02-09 20:44:07.215317"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
659
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-02-22 15:25:18.694762"], ["updated_at", "2015-02-22 15:25:18.694762"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
575
660
   (0.1ms) RELEASE SAVEPOINT active_record_2
576
661
   (0.1ms) SAVEPOINT active_record_2
577
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-02-09 20:44:07.217841"], ["updated_at", "2015-02-09 20:44:07.217841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
662
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-02-22 15:25:18.698017"], ["updated_at", "2015-02-22 15:25:18.698017"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
578
663
   (0.1ms) RELEASE SAVEPOINT active_record_2
579
664
   (0.1ms) SAVEPOINT active_record_2
580
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-02-09 20:44:07.220321"], ["updated_at", "2015-02-09 20:44:07.220321"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
665
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-02-22 15:25:18.700940"], ["updated_at", "2015-02-22 15:25:18.700940"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
666
   (0.1ms) RELEASE SAVEPOINT active_record_2
582
667
   (0.1ms) SAVEPOINT active_record_2
583
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-02-09 20:44:07.222768"], ["updated_at", "2015-02-09 20:44:07.222768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
668
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-02-22 15:25:18.703455"], ["updated_at", "2015-02-22 15:25:18.703455"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
669
   (0.1ms) RELEASE SAVEPOINT active_record_2
585
670
   (0.1ms) SAVEPOINT active_record_2
586
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-02-09 20:44:07.225431"], ["updated_at", "2015-02-09 20:44:07.225431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
671
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-02-22 15:25:18.705865"], ["updated_at", "2015-02-22 15:25:18.705865"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
672
   (0.1ms) RELEASE SAVEPOINT active_record_2
588
673
   (0.1ms) SAVEPOINT active_record_2
589
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-02-09 20:44:07.227984"], ["updated_at", "2015-02-09 20:44:07.227984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
674
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-02-22 15:25:18.708314"], ["updated_at", "2015-02-22 15:25:18.708314"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
675
   (0.1ms) RELEASE SAVEPOINT active_record_2
591
676
   (0.1ms) SAVEPOINT active_record_2
592
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-02-09 20:44:07.230499"], ["updated_at", "2015-02-09 20:44:07.230499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
677
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-02-22 15:25:18.711162"], ["updated_at", "2015-02-22 15:25:18.711162"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
593
678
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
679
   (0.1ms) SAVEPOINT active_record_2
595
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-02-09 20:44:07.232947"], ["updated_at", "2015-02-09 20:44:07.232947"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
680
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-02-22 15:25:18.713986"], ["updated_at", "2015-02-22 15:25:18.713986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
596
681
   (0.1ms) RELEASE SAVEPOINT active_record_2
597
682
   (0.1ms) SAVEPOINT active_record_2
598
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-02-09 20:44:07.235514"], ["updated_at", "2015-02-09 20:44:07.235514"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
683
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-02-22 15:25:18.716596"], ["updated_at", "2015-02-22 15:25:18.716596"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
599
684
   (0.1ms) RELEASE SAVEPOINT active_record_2
600
685
   (0.1ms) SAVEPOINT active_record_2
601
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-02-09 20:44:07.238214"], ["updated_at", "2015-02-09 20:44:07.238214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
686
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-02-22 15:25:18.719424"], ["updated_at", "2015-02-22 15:25:18.719424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
602
687
   (0.1ms) RELEASE SAVEPOINT active_record_2
603
688
   (0.1ms) SAVEPOINT active_record_2
604
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-02-09 20:44:07.240800"], ["updated_at", "2015-02-09 20:44:07.240800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
689
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-02-22 15:25:18.722289"], ["updated_at", "2015-02-22 15:25:18.722289"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
605
690
   (0.1ms) RELEASE SAVEPOINT active_record_2
606
691
   (0.1ms) SAVEPOINT active_record_2
607
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-02-09 20:44:07.243403"], ["updated_at", "2015-02-09 20:44:07.243403"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
692
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-02-22 15:25:18.796967"], ["updated_at", "2015-02-22 15:25:18.796967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
608
693
   (0.1ms) RELEASE SAVEPOINT active_record_2
609
694
   (0.1ms) SAVEPOINT active_record_2
610
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-02-09 20:44:07.246096"], ["updated_at", "2015-02-09 20:44:07.246096"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
695
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-02-22 15:25:18.799980"], ["updated_at", "2015-02-22 15:25:18.799980"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
611
696
   (0.1ms) RELEASE SAVEPOINT active_record_2
612
697
  Processing by PushType::WysiwygMediaController#index as JSON
613
698
  Parameters: {"filter"=>"image"}
614
699
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
615
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
616
- Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
700
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
701
+ Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 0.6ms)
617
702
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
618
703
   (0.1ms) ROLLBACK
619
704
   (0.1ms) BEGIN
620
705
  ---------------------------------------------------------------------------------------
621
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
706
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
622
707
  ---------------------------------------------------------------------------------------
623
708
   (0.1ms) SAVEPOINT active_record_1
624
-  (0.0ms) RELEASE SAVEPOINT active_record_1
709
+  (0.1ms) RELEASE SAVEPOINT active_record_1
625
710
   (0.0ms) SAVEPOINT active_record_1
626
711
   (0.1ms) SAVEPOINT active_record_2
627
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "116"], ["created_at", "2015-02-09 20:44:07.265647"], ["updated_at", "2015-02-09 20:44:07.265647"], ["file_ext", "png"], ["mime_type", "image/png"]]
712
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-02-22 15:25:18.820680"], ["updated_at", "2015-02-22 15:25:18.820680"], ["file_ext", "png"], ["mime_type", "image/png"]]
628
713
   (0.1ms) RELEASE SAVEPOINT active_record_2
629
714
   (0.1ms) SAVEPOINT active_record_2
630
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "117"], ["created_at", "2015-02-09 20:44:07.268410"], ["updated_at", "2015-02-09 20:44:07.268410"], ["file_ext", "png"], ["mime_type", "image/png"]]
715
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-02-22 15:25:18.824132"], ["updated_at", "2015-02-22 15:25:18.824132"], ["file_ext", "png"], ["mime_type", "image/png"]]
631
716
   (0.1ms) RELEASE SAVEPOINT active_record_2
632
717
   (0.1ms) SAVEPOINT active_record_2
633
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2015-02-09 20:44:07.270965"], ["updated_at", "2015-02-09 20:44:07.270965"], ["file_ext", "png"], ["mime_type", "image/png"]]
718
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "139"], ["created_at", "2015-02-22 15:25:18.827191"], ["updated_at", "2015-02-22 15:25:18.827191"], ["file_ext", "png"], ["mime_type", "image/png"]]
634
719
   (0.1ms) RELEASE SAVEPOINT active_record_2
635
720
   (0.1ms) SAVEPOINT active_record_2
636
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-02-09 20:44:07.273399"], ["updated_at", "2015-02-09 20:44:07.273399"], ["file_ext", "png"], ["mime_type", "image/png"]]
721
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "140"], ["created_at", "2015-02-22 15:25:18.830030"], ["updated_at", "2015-02-22 15:25:18.830030"], ["file_ext", "png"], ["mime_type", "image/png"]]
637
722
   (0.1ms) RELEASE SAVEPOINT active_record_2
638
723
   (0.1ms) SAVEPOINT active_record_2
639
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-02-09 20:44:07.276043"], ["updated_at", "2015-02-09 20:44:07.276043"], ["file_ext", "png"], ["mime_type", "image/png"]]
724
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "141"], ["created_at", "2015-02-22 15:25:18.832808"], ["updated_at", "2015-02-22 15:25:18.832808"], ["file_ext", "png"], ["mime_type", "image/png"]]
640
725
   (0.1ms) RELEASE SAVEPOINT active_record_2
641
726
   (0.1ms) SAVEPOINT active_record_2
642
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-02-09 20:44:07.278622"], ["updated_at", "2015-02-09 20:44:07.278622"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
727
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-02-22 15:25:18.835787"], ["updated_at", "2015-02-22 15:25:18.835787"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
643
728
   (0.1ms) RELEASE SAVEPOINT active_record_2
644
729
   (0.1ms) SAVEPOINT active_record_2
645
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-02-09 20:44:07.281214"], ["updated_at", "2015-02-09 20:44:07.281214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
730
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-02-22 15:25:18.838393"], ["updated_at", "2015-02-22 15:25:18.838393"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
646
731
   (0.1ms) RELEASE SAVEPOINT active_record_2
647
732
   (0.1ms) SAVEPOINT active_record_2
648
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-02-09 20:44:07.283737"], ["updated_at", "2015-02-09 20:44:07.283737"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
733
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-02-22 15:25:18.841031"], ["updated_at", "2015-02-22 15:25:18.841031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
649
734
   (0.1ms) RELEASE SAVEPOINT active_record_2
650
735
   (0.1ms) SAVEPOINT active_record_2
651
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-02-09 20:44:07.286481"], ["updated_at", "2015-02-09 20:44:07.286481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
736
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-02-22 15:25:18.849364"], ["updated_at", "2015-02-22 15:25:18.849364"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
652
737
   (0.1ms) RELEASE SAVEPOINT active_record_2
653
738
   (0.1ms) SAVEPOINT active_record_2
654
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-02-09 20:44:07.289001"], ["updated_at", "2015-02-09 20:44:07.289001"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
739
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-02-22 15:25:18.852320"], ["updated_at", "2015-02-22 15:25:18.852320"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
740
   (0.1ms) RELEASE SAVEPOINT active_record_2
656
741
   (0.1ms) SAVEPOINT active_record_2
657
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-02-09 20:44:07.291563"], ["updated_at", "2015-02-09 20:44:07.291563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
742
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-02-22 15:25:18.854962"], ["updated_at", "2015-02-22 15:25:18.854962"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
658
743
   (0.1ms) RELEASE SAVEPOINT active_record_2
659
744
   (0.1ms) SAVEPOINT active_record_2
660
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-02-09 20:44:07.294103"], ["updated_at", "2015-02-09 20:44:07.294103"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
745
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-02-22 15:25:18.857487"], ["updated_at", "2015-02-22 15:25:18.857487"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
661
746
   (0.1ms) RELEASE SAVEPOINT active_record_2
662
747
   (0.1ms) SAVEPOINT active_record_2
663
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-02-09 20:44:07.296604"], ["updated_at", "2015-02-09 20:44:07.296604"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
748
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-02-22 15:25:18.860019"], ["updated_at", "2015-02-22 15:25:18.860019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
664
749
   (0.1ms) RELEASE SAVEPOINT active_record_2
665
750
   (0.1ms) SAVEPOINT active_record_2
666
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-02-09 20:44:07.299513"], ["updated_at", "2015-02-09 20:44:07.299513"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
751
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-02-22 15:25:18.862823"], ["updated_at", "2015-02-22 15:25:18.862823"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
667
752
   (0.1ms) RELEASE SAVEPOINT active_record_2
668
753
   (0.1ms) SAVEPOINT active_record_2
669
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-02-09 20:44:07.302160"], ["updated_at", "2015-02-09 20:44:07.302160"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
754
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-02-22 15:25:18.865494"], ["updated_at", "2015-02-22 15:25:18.865494"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
670
755
   (0.1ms) RELEASE SAVEPOINT active_record_2
671
756
   (0.1ms) SAVEPOINT active_record_2
672
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-02-09 20:44:07.304892"], ["updated_at", "2015-02-09 20:44:07.304892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
757
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-02-22 15:25:18.868076"], ["updated_at", "2015-02-22 15:25:18.868076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
673
758
   (0.1ms) RELEASE SAVEPOINT active_record_2
674
759
   (0.1ms) SAVEPOINT active_record_2
675
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-02-09 20:44:07.307387"], ["updated_at", "2015-02-09 20:44:07.307387"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
760
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-02-22 15:25:18.870540"], ["updated_at", "2015-02-22 15:25:18.870540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
676
761
   (0.1ms) RELEASE SAVEPOINT active_record_2
677
762
   (0.1ms) SAVEPOINT active_record_2
678
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-02-09 20:44:07.309894"], ["updated_at", "2015-02-09 20:44:07.309894"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
763
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-02-22 15:25:18.873191"], ["updated_at", "2015-02-22 15:25:18.873191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
679
764
   (0.1ms) RELEASE SAVEPOINT active_record_2
680
765
  Processing by PushType::WysiwygMediaController#index as JSON
681
766
  Parameters: {"filter"=>"image"}
682
767
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
683
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
684
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
768
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
769
+ Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 0.6ms)
685
770
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
686
771
   (0.1ms) ROLLBACK
687
772
   (0.1ms) BEGIN
688
773
  ---------------------------------------------------------------------------------------
689
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
774
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
690
775
  ---------------------------------------------------------------------------------------
691
776
   (0.1ms) SAVEPOINT active_record_1
692
777
   (0.1ms) RELEASE SAVEPOINT active_record_1
693
778
   (0.1ms) SAVEPOINT active_record_1
694
779
   (0.1ms) SAVEPOINT active_record_2
695
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "134"], ["created_at", "2015-02-09 20:44:07.327918"], ["updated_at", "2015-02-09 20:44:07.327918"], ["file_ext", "png"], ["mime_type", "image/png"]]
780
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-02-22 15:25:18.894274"], ["updated_at", "2015-02-22 15:25:18.894274"], ["file_ext", "png"], ["mime_type", "image/png"]]
696
781
   (0.1ms) RELEASE SAVEPOINT active_record_2
697
782
   (0.1ms) SAVEPOINT active_record_2
698
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "135"], ["created_at", "2015-02-09 20:44:07.330632"], ["updated_at", "2015-02-09 20:44:07.330632"], ["file_ext", "png"], ["mime_type", "image/png"]]
783
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-02-22 15:25:18.896902"], ["updated_at", "2015-02-22 15:25:18.896902"], ["file_ext", "png"], ["mime_type", "image/png"]]
699
784
   (0.1ms) RELEASE SAVEPOINT active_record_2
700
785
   (0.1ms) SAVEPOINT active_record_2
701
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "136"], ["created_at", "2015-02-09 20:44:07.333139"], ["updated_at", "2015-02-09 20:44:07.333139"], ["file_ext", "png"], ["mime_type", "image/png"]]
786
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-02-22 15:25:18.899651"], ["updated_at", "2015-02-22 15:25:18.899651"], ["file_ext", "png"], ["mime_type", "image/png"]]
702
787
   (0.1ms) RELEASE SAVEPOINT active_record_2
703
788
   (0.1ms) SAVEPOINT active_record_2
704
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-02-09 20:44:07.335601"], ["updated_at", "2015-02-09 20:44:07.335601"], ["file_ext", "png"], ["mime_type", "image/png"]]
789
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-02-22 15:25:18.902487"], ["updated_at", "2015-02-22 15:25:18.902487"], ["file_ext", "png"], ["mime_type", "image/png"]]
705
790
   (0.1ms) RELEASE SAVEPOINT active_record_2
706
791
   (0.1ms) SAVEPOINT active_record_2
707
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-02-09 20:44:07.338177"], ["updated_at", "2015-02-09 20:44:07.338177"], ["file_ext", "png"], ["mime_type", "image/png"]]
792
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-02-22 15:25:18.905062"], ["updated_at", "2015-02-22 15:25:18.905062"], ["file_ext", "png"], ["mime_type", "image/png"]]
708
793
   (0.1ms) RELEASE SAVEPOINT active_record_2
709
794
   (0.1ms) SAVEPOINT active_record_2
710
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-02-09 20:44:07.340725"], ["updated_at", "2015-02-09 20:44:07.340725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
795
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-02-22 15:25:18.907566"], ["updated_at", "2015-02-22 15:25:18.907566"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
711
796
   (0.1ms) RELEASE SAVEPOINT active_record_2
712
797
   (0.1ms) SAVEPOINT active_record_2
713
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-02-09 20:44:07.343272"], ["updated_at", "2015-02-09 20:44:07.343272"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
798
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-02-22 15:25:18.910247"], ["updated_at", "2015-02-22 15:25:18.910247"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
714
799
   (0.1ms) RELEASE SAVEPOINT active_record_2
715
800
   (0.1ms) SAVEPOINT active_record_2
716
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-02-09 20:44:07.345780"], ["updated_at", "2015-02-09 20:44:07.345780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
801
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-02-22 15:25:18.912861"], ["updated_at", "2015-02-22 15:25:18.912861"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
717
802
   (0.1ms) RELEASE SAVEPOINT active_record_2
718
803
   (0.1ms) SAVEPOINT active_record_2
719
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-02-09 20:44:07.348314"], ["updated_at", "2015-02-09 20:44:07.348314"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
804
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-02-22 15:25:18.915383"], ["updated_at", "2015-02-22 15:25:18.915383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
720
805
   (0.1ms) RELEASE SAVEPOINT active_record_2
721
806
   (0.1ms) SAVEPOINT active_record_2
722
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-02-09 20:44:07.350984"], ["updated_at", "2015-02-09 20:44:07.350984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
807
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-02-22 15:25:18.917943"], ["updated_at", "2015-02-22 15:25:18.917943"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
723
808
   (0.1ms) RELEASE SAVEPOINT active_record_2
724
809
   (0.1ms) SAVEPOINT active_record_2
725
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-02-09 20:44:07.353699"], ["updated_at", "2015-02-09 20:44:07.353699"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
810
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-02-22 15:25:18.920570"], ["updated_at", "2015-02-22 15:25:18.920570"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
726
811
   (0.1ms) RELEASE SAVEPOINT active_record_2
727
812
   (0.1ms) SAVEPOINT active_record_2
728
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-02-09 20:44:07.380420"], ["updated_at", "2015-02-09 20:44:07.380420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
813
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-02-22 15:25:18.923283"], ["updated_at", "2015-02-22 15:25:18.923283"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
729
814
   (0.1ms) RELEASE SAVEPOINT active_record_2
730
815
   (0.1ms) SAVEPOINT active_record_2
731
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-02-09 20:44:07.383399"], ["updated_at", "2015-02-09 20:44:07.383399"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
816
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-02-22 15:25:18.926020"], ["updated_at", "2015-02-22 15:25:18.926020"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
732
817
   (0.1ms) RELEASE SAVEPOINT active_record_2
733
818
   (0.1ms) SAVEPOINT active_record_2
734
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-02-09 20:44:07.389519"], ["updated_at", "2015-02-09 20:44:07.389519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
819
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-02-22 15:25:18.928737"], ["updated_at", "2015-02-22 15:25:18.928737"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
735
820
   (0.1ms) RELEASE SAVEPOINT active_record_2
736
821
   (0.1ms) SAVEPOINT active_record_2
737
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-02-09 20:44:07.392049"], ["updated_at", "2015-02-09 20:44:07.392049"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
822
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-02-22 15:25:18.931305"], ["updated_at", "2015-02-22 15:25:18.931305"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
738
823
   (0.1ms) RELEASE SAVEPOINT active_record_2
739
824
   (0.1ms) SAVEPOINT active_record_2
740
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-02-09 20:44:07.394789"], ["updated_at", "2015-02-09 20:44:07.394789"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
825
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-02-22 15:25:18.934019"], ["updated_at", "2015-02-22 15:25:18.934019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
741
826
   (0.1ms) RELEASE SAVEPOINT active_record_2
742
827
   (0.1ms) SAVEPOINT active_record_2
743
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-02-09 20:44:07.397459"], ["updated_at", "2015-02-09 20:44:07.397459"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
828
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-02-22 15:25:18.936541"], ["updated_at", "2015-02-22 15:25:18.936541"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
744
829
   (0.1ms) RELEASE SAVEPOINT active_record_2
745
830
   (0.1ms) SAVEPOINT active_record_2
746
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-02-09 20:44:07.400184"], ["updated_at", "2015-02-09 20:44:07.400184"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
831
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-02-22 15:25:18.939035"], ["updated_at", "2015-02-22 15:25:18.939035"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
747
832
   (0.1ms) RELEASE SAVEPOINT active_record_2
748
833
  Processing by PushType::WysiwygMediaController#index as JSON
749
834
  Parameters: {"filter"=>"image"}
750
835
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
751
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
752
- Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
836
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
837
+ Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.5ms)
753
838
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
754
839
   (0.1ms) ROLLBACK
755
840
   (0.1ms) BEGIN
756
- -----------------------------------------------------------------------
757
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
758
- -----------------------------------------------------------------------
841
+ ----------------------------------------------------------------------------------------
842
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
843
+ ----------------------------------------------------------------------------------------
759
844
   (0.1ms) SAVEPOINT active_record_1
760
845
   (0.1ms) RELEASE SAVEPOINT active_record_1
761
-  (0.0ms) SAVEPOINT active_record_1
762
-  (0.1ms) SAVEPOINT active_record_2
763
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-02-09 20:44:07.421263"], ["updated_at", "2015-02-09 20:44:07.421263"], ["file_ext", "png"], ["mime_type", "image/png"]]
764
-  (0.1ms) RELEASE SAVEPOINT active_record_2
765
-  (0.1ms) SAVEPOINT active_record_2
766
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-02-09 20:44:07.424120"], ["updated_at", "2015-02-09 20:44:07.424120"], ["file_ext", "png"], ["mime_type", "image/png"]]
767
-  (0.1ms) RELEASE SAVEPOINT active_record_2
768
-  (0.1ms) SAVEPOINT active_record_2
769
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-02-09 20:44:07.426713"], ["updated_at", "2015-02-09 20:44:07.426713"], ["file_ext", "png"], ["mime_type", "image/png"]]
770
-  (0.1ms) RELEASE SAVEPOINT active_record_2
771
-  (0.1ms) SAVEPOINT active_record_2
772
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-02-09 20:44:07.429488"], ["updated_at", "2015-02-09 20:44:07.429488"], ["file_ext", "png"], ["mime_type", "image/png"]]
773
-  (0.1ms) RELEASE SAVEPOINT active_record_2
774
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
775
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
776
-  (0.1ms) ROLLBACK
777
-  (0.1ms) BEGIN
778
- -----------------------------------------------------------------------
779
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
780
- -----------------------------------------------------------------------
781
-  (0.0ms) SAVEPOINT active_record_1
782
-  (0.0ms) RELEASE SAVEPOINT active_record_1
783
-  (0.0ms) SAVEPOINT active_record_1
784
-  (0.1ms) SAVEPOINT active_record_2
785
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-02-09 20:44:07.434536"], ["updated_at", "2015-02-09 20:44:07.434536"], ["file_ext", "png"], ["mime_type", "image/png"]]
786
-  (0.1ms) RELEASE SAVEPOINT active_record_2
787
-  (0.1ms) SAVEPOINT active_record_2
788
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-02-09 20:44:07.437223"], ["updated_at", "2015-02-09 20:44:07.437223"], ["file_ext", "png"], ["mime_type", "image/png"]]
789
-  (0.1ms) RELEASE SAVEPOINT active_record_2
790
-  (0.1ms) SAVEPOINT active_record_2
791
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-02-09 20:44:07.439977"], ["updated_at", "2015-02-09 20:44:07.439977"], ["file_ext", "png"], ["mime_type", "image/png"]]
792
-  (0.1ms) RELEASE SAVEPOINT active_record_2
846
+  (0.1ms) SAVEPOINT active_record_1
847
+ Processing by PushType::WysiwygMediaController#create as JSON
848
+ Parameters: {"asset"=>{}}
793
849
   (0.1ms) SAVEPOINT active_record_2
794
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-02-09 20:44:07.442571"], ["updated_at", "2015-02-09 20:44:07.442571"], ["file_ext", "png"], ["mime_type", "image/png"]]
795
-  (0.1ms) RELEASE SAVEPOINT active_record_2
796
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
850
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
851
+ Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
797
852
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
798
853
   (0.1ms) ROLLBACK
799
854
   (0.1ms) BEGIN
800
- -----------------------------------------------------------------------
801
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
802
- -----------------------------------------------------------------------
855
+ ----------------------------------------------------------------------------------------
856
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
857
+ ----------------------------------------------------------------------------------------
803
858
   (0.1ms) SAVEPOINT active_record_1
804
859
   (0.0ms) RELEASE SAVEPOINT active_record_1
805
860
   (0.0ms) SAVEPOINT active_record_1
861
+ Processing by PushType::WysiwygMediaController#create as JSON
862
+ Parameters: {"asset"=>{}}
806
863
   (0.1ms) SAVEPOINT active_record_2
807
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-02-09 20:44:07.447691"], ["updated_at", "2015-02-09 20:44:07.447691"], ["file_ext", "png"], ["mime_type", "image/png"]]
808
-  (0.1ms) RELEASE SAVEPOINT active_record_2
809
-  (0.1ms) SAVEPOINT active_record_2
810
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-02-09 20:44:07.450209"], ["updated_at", "2015-02-09 20:44:07.450209"], ["file_ext", "png"], ["mime_type", "image/png"]]
811
-  (0.1ms) RELEASE SAVEPOINT active_record_2
812
-  (0.1ms) SAVEPOINT active_record_2
813
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-02-09 20:44:07.453096"], ["updated_at", "2015-02-09 20:44:07.453096"], ["file_ext", "png"], ["mime_type", "image/png"]]
814
-  (0.1ms) RELEASE SAVEPOINT active_record_2
815
-  (0.1ms) SAVEPOINT active_record_2
816
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-02-09 20:44:07.455603"], ["updated_at", "2015-02-09 20:44:07.455603"], ["file_ext", "png"], ["mime_type", "image/png"]]
817
-  (0.1ms) RELEASE SAVEPOINT active_record_2
818
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
819
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
820
-  (0.1ms) ROLLBACK
821
-  (0.1ms) BEGIN
822
- -----------------------------------------------------------------------
823
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
824
- -----------------------------------------------------------------------
825
-  (0.1ms) SAVEPOINT active_record_1
826
-  (0.1ms) RELEASE SAVEPOINT active_record_1
827
-  (0.1ms) SAVEPOINT active_record_1
828
-  (0.1ms) SAVEPOINT active_record_2
829
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-02-09 20:44:07.460949"], ["updated_at", "2015-02-09 20:44:07.460949"], ["file_ext", "png"], ["mime_type", "image/png"]]
830
-  (0.1ms) RELEASE SAVEPOINT active_record_2
831
-  (0.1ms) SAVEPOINT active_record_2
832
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-02-09 20:44:07.463923"], ["updated_at", "2015-02-09 20:44:07.463923"], ["file_ext", "png"], ["mime_type", "image/png"]]
833
-  (0.1ms) RELEASE SAVEPOINT active_record_2
834
-  (0.1ms) SAVEPOINT active_record_2
835
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-02-09 20:44:07.466596"], ["updated_at", "2015-02-09 20:44:07.466596"], ["file_ext", "png"], ["mime_type", "image/png"]]
836
-  (0.1ms) RELEASE SAVEPOINT active_record_2
837
-  (0.1ms) SAVEPOINT active_record_2
838
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-02-09 20:44:07.469173"], ["updated_at", "2015-02-09 20:44:07.469173"], ["file_ext", "png"], ["mime_type", "image/png"]]
839
-  (0.1ms) RELEASE SAVEPOINT active_record_2
840
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
864
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
865
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
841
866
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
842
867
   (0.1ms) ROLLBACK
843
868
   (0.1ms) BEGIN
844
- -----------------------------------------------------------------------
845
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
846
- -----------------------------------------------------------------------
847
-  (0.0ms) SAVEPOINT active_record_1
869
+ ----------------------------------------------------------------------------------------
870
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
871
+ ----------------------------------------------------------------------------------------
872
+  (0.1ms) SAVEPOINT active_record_1
848
873
   (0.0ms) RELEASE SAVEPOINT active_record_1
849
874
   (0.0ms) SAVEPOINT active_record_1
875
+ Processing by PushType::WysiwygMediaController#create as JSON
876
+ Parameters: {"asset"=>{}}
850
877
   (0.1ms) SAVEPOINT active_record_2
851
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-02-09 20:44:07.474311"], ["updated_at", "2015-02-09 20:44:07.474311"], ["file_ext", "png"], ["mime_type", "image/png"]]
852
-  (0.1ms) RELEASE SAVEPOINT active_record_2
853
-  (0.1ms) SAVEPOINT active_record_2
854
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-02-09 20:44:07.477052"], ["updated_at", "2015-02-09 20:44:07.477052"], ["file_ext", "png"], ["mime_type", "image/png"]]
855
-  (0.1ms) RELEASE SAVEPOINT active_record_2
878
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
879
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
880
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
881
+  (0.1ms) ROLLBACK
882
+  (0.1ms) BEGIN
883
+ -------------------------------------------------------------------------------------
884
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
885
+ -------------------------------------------------------------------------------------
886
+  (0.1ms) SAVEPOINT active_record_1
887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
888
+  (0.1ms) SAVEPOINT active_record_1
889
+ Processing by PushType::WysiwygMediaController#create as JSON
890
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc344d86d28 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150222-6309-1s69rn0>>}}
856
891
   (0.1ms) SAVEPOINT active_record_2
857
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-02-09 20:44:07.479535"], ["updated_at", "2015-02-09 20:44:07.479535"], ["file_ext", "png"], ["mime_type", "image/png"]]
892
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-02-22 15:25:18.984007"], ["updated_at", "2015-02-22 15:25:18.984007"], ["file_ext", "png"], ["mime_type", "image/png"]]
858
893
   (0.1ms) RELEASE SAVEPOINT active_record_2
859
-  (0.1ms) SAVEPOINT active_record_2
860
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-02-09 20:44:07.482236"], ["updated_at", "2015-02-09 20:44:07.482236"], ["file_ext", "png"], ["mime_type", "image/png"]]
861
-  (0.1ms) RELEASE SAVEPOINT active_record_2
862
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
894
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
863
895
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
864
896
   (0.1ms) ROLLBACK
865
897
   (0.1ms) BEGIN
@@ -870,350 +902,318 @@ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anon
870
902
   (0.1ms) RELEASE SAVEPOINT active_record_1
871
903
   (0.1ms) SAVEPOINT active_record_1
872
904
  Processing by PushType::WysiwygMediaController#create as JSON
873
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7bb3db8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-3l1xbh>>}}
905
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc344affed8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150222-6309-lnv0od>>}}
874
906
   (0.1ms) SAVEPOINT active_record_2
875
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-02-09 20:44:07.491669"], ["updated_at", "2015-02-09 20:44:07.491669"], ["file_ext", "png"], ["mime_type", "image/png"]]
907
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-02-22 15:25:18.993624"], ["updated_at", "2015-02-22 15:25:18.993624"], ["file_ext", "png"], ["mime_type", "image/png"]]
876
908
   (0.1ms) RELEASE SAVEPOINT active_record_2
877
909
  Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
878
910
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
879
911
   (0.1ms) ROLLBACK
880
-  (0.0ms) BEGIN
912
+  (0.1ms) BEGIN
881
913
  -------------------------------------------------------------------------------------
882
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
914
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
883
915
  -------------------------------------------------------------------------------------
884
-  (0.0ms) SAVEPOINT active_record_1
885
-  (0.0ms) RELEASE SAVEPOINT active_record_1
916
+  (0.1ms) SAVEPOINT active_record_1
917
+  (0.1ms) RELEASE SAVEPOINT active_record_1
886
918
   (0.1ms) SAVEPOINT active_record_1
887
919
  Processing by PushType::WysiwygMediaController#create as JSON
888
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7af0110 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-nqej9p>>}}
920
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc344951a78 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150222-6309-66566d>>}}
889
921
   (0.1ms) SAVEPOINT active_record_2
890
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-02-09 20:44:07.501455"], ["updated_at", "2015-02-09 20:44:07.501455"], ["file_ext", "png"], ["mime_type", "image/png"]]
922
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-02-22 15:25:19.003120"], ["updated_at", "2015-02-22 15:25:19.003120"], ["file_ext", "png"], ["mime_type", "image/png"]]
891
923
   (0.1ms) RELEASE SAVEPOINT active_record_2
892
- Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
924
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
893
925
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
894
926
   (0.1ms) ROLLBACK
895
927
   (0.1ms) BEGIN
896
- -------------------------------------------------------------------------------------
897
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
898
- -------------------------------------------------------------------------------------
899
-  (0.0ms) SAVEPOINT active_record_1
900
-  (0.0ms) RELEASE SAVEPOINT active_record_1
901
-  (0.0ms) SAVEPOINT active_record_1
902
- Processing by PushType::WysiwygMediaController#create as JSON
903
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7a6b8e8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-1dii99p>>}}
904
-  (0.1ms) SAVEPOINT active_record_2
905
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-02-09 20:44:07.511261"], ["updated_at", "2015-02-09 20:44:07.511261"], ["file_ext", "png"], ["mime_type", "image/png"]]
906
-  (0.1ms) RELEASE SAVEPOINT active_record_2
907
- Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.4ms)
908
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
909
-  (0.1ms) ROLLBACK
910
-  (0.1ms) BEGIN
911
928
  --------------------------------------------------------------------------------------
912
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
929
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
913
930
  --------------------------------------------------------------------------------------
914
-  (0.1ms) SAVEPOINT active_record_1
915
-  (0.1ms) RELEASE SAVEPOINT active_record_1
916
-  (0.0ms) SAVEPOINT active_record_1
917
-  (0.1ms) SAVEPOINT active_record_2
918
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-02-09 20:44:07.518351"], ["updated_at", "2015-02-09 20:44:07.518351"], ["file_ext", "png"], ["mime_type", "image/png"]]
919
-  (0.2ms) RELEASE SAVEPOINT active_record_2
931
+  (0.1ms) SAVEPOINT active_record_1
932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
933
+  (0.1ms) SAVEPOINT active_record_1
920
934
   (0.1ms) SAVEPOINT active_record_2
921
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-02-09 20:44:07.521549"], ["updated_at", "2015-02-09 20:44:07.521549"], ["file_ext", "png"], ["mime_type", "image/png"]]
935
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-02-22 15:25:19.010296"], ["updated_at", "2015-02-22 15:25:19.010296"], ["file_ext", "png"], ["mime_type", "image/png"]]
922
936
   (0.1ms) RELEASE SAVEPOINT active_record_2
923
937
   (0.1ms) SAVEPOINT active_record_2
924
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-02-09 20:44:07.524995"], ["updated_at", "2015-02-09 20:44:07.524995"], ["file_ext", "png"], ["mime_type", "image/png"]]
938
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-02-22 15:25:19.013060"], ["updated_at", "2015-02-22 15:25:19.013060"], ["file_ext", "png"], ["mime_type", "image/png"]]
925
939
   (0.1ms) RELEASE SAVEPOINT active_record_2
926
940
   (0.1ms) SAVEPOINT active_record_2
927
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-02-09 20:44:07.527794"], ["updated_at", "2015-02-09 20:44:07.527794"], ["file_ext", "png"], ["mime_type", "image/png"]]
941
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-02-22 15:25:19.015476"], ["updated_at", "2015-02-22 15:25:19.015476"], ["file_ext", "png"], ["mime_type", "image/png"]]
928
942
   (0.1ms) RELEASE SAVEPOINT active_record_2
929
943
   (0.1ms) SAVEPOINT active_record_2
930
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-02-09 20:44:07.530519"], ["updated_at", "2015-02-09 20:44:07.530519"], ["file_ext", "png"], ["mime_type", "image/png"]]
944
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-02-22 15:25:19.017960"], ["updated_at", "2015-02-22 15:25:19.017960"], ["file_ext", "png"], ["mime_type", "image/png"]]
931
945
   (0.1ms) RELEASE SAVEPOINT active_record_2
932
946
   (0.1ms) SAVEPOINT active_record_2
933
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-02-09 20:44:07.533331"], ["updated_at", "2015-02-09 20:44:07.533331"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
947
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-02-22 15:25:19.020414"], ["updated_at", "2015-02-22 15:25:19.020414"], ["file_ext", "png"], ["mime_type", "image/png"]]
934
948
   (0.1ms) RELEASE SAVEPOINT active_record_2
935
949
   (0.1ms) SAVEPOINT active_record_2
936
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-02-09 20:44:07.536064"], ["updated_at", "2015-02-09 20:44:07.536064"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
950
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-02-22 15:25:19.023005"], ["updated_at", "2015-02-22 15:25:19.023005"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
937
951
   (0.1ms) RELEASE SAVEPOINT active_record_2
938
952
   (0.1ms) SAVEPOINT active_record_2
939
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-02-09 20:44:07.538755"], ["updated_at", "2015-02-09 20:44:07.538755"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
953
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-02-22 15:25:19.050569"], ["updated_at", "2015-02-22 15:25:19.050569"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
940
954
   (0.1ms) RELEASE SAVEPOINT active_record_2
941
955
   (0.1ms) SAVEPOINT active_record_2
942
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-02-09 20:44:07.541378"], ["updated_at", "2015-02-09 20:44:07.541378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
956
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-02-22 15:25:19.053254"], ["updated_at", "2015-02-22 15:25:19.053254"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
943
957
   (0.1ms) RELEASE SAVEPOINT active_record_2
944
958
   (0.1ms) SAVEPOINT active_record_2
945
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-02-09 20:44:07.544161"], ["updated_at", "2015-02-09 20:44:07.544161"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
959
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-02-22 15:25:19.055839"], ["updated_at", "2015-02-22 15:25:19.055839"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
946
960
   (0.1ms) RELEASE SAVEPOINT active_record_2
947
961
   (0.1ms) SAVEPOINT active_record_2
948
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-02-09 20:44:07.546909"], ["updated_at", "2015-02-09 20:44:07.546909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
962
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-02-22 15:25:19.058321"], ["updated_at", "2015-02-22 15:25:19.058321"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
949
963
   (0.1ms) RELEASE SAVEPOINT active_record_2
950
964
   (0.1ms) SAVEPOINT active_record_2
951
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-02-09 20:44:07.549573"], ["updated_at", "2015-02-09 20:44:07.549573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
965
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-02-22 15:25:19.061112"], ["updated_at", "2015-02-22 15:25:19.061112"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
952
966
   (0.1ms) RELEASE SAVEPOINT active_record_2
953
967
   (0.1ms) SAVEPOINT active_record_2
954
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-02-09 20:44:07.552239"], ["updated_at", "2015-02-09 20:44:07.552239"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
968
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-02-22 15:25:19.063702"], ["updated_at", "2015-02-22 15:25:19.063702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
955
969
   (0.1ms) RELEASE SAVEPOINT active_record_2
956
970
   (0.1ms) SAVEPOINT active_record_2
957
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-02-09 20:44:07.555035"], ["updated_at", "2015-02-09 20:44:07.555035"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
971
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-02-22 15:25:19.066224"], ["updated_at", "2015-02-22 15:25:19.066224"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
958
972
   (0.1ms) RELEASE SAVEPOINT active_record_2
959
973
   (0.1ms) SAVEPOINT active_record_2
960
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-02-09 20:44:07.557652"], ["updated_at", "2015-02-09 20:44:07.557652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
961
-  (0.1ms) RELEASE SAVEPOINT active_record_2
974
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-02-22 15:25:19.068719"], ["updated_at", "2015-02-22 15:25:19.068719"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
975
+  (0.2ms) RELEASE SAVEPOINT active_record_2
962
976
   (0.1ms) SAVEPOINT active_record_2
963
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-02-09 20:44:07.560371"], ["updated_at", "2015-02-09 20:44:07.560371"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
977
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-02-22 15:25:19.071261"], ["updated_at", "2015-02-22 15:25:19.071261"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
964
978
   (0.1ms) RELEASE SAVEPOINT active_record_2
965
979
   (0.1ms) SAVEPOINT active_record_2
966
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-02-09 20:44:07.567348"], ["updated_at", "2015-02-09 20:44:07.567348"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
980
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-02-22 15:25:19.073769"], ["updated_at", "2015-02-22 15:25:19.073769"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
967
981
   (0.1ms) RELEASE SAVEPOINT active_record_2
968
982
   (0.1ms) SAVEPOINT active_record_2
969
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-02-09 20:44:07.570010"], ["updated_at", "2015-02-09 20:44:07.570010"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
983
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-02-22 15:25:19.076269"], ["updated_at", "2015-02-22 15:25:19.076269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
970
984
   (0.1ms) RELEASE SAVEPOINT active_record_2
985
+  (0.1ms) SAVEPOINT active_record_2
986
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-02-22 15:25:19.079044"], ["updated_at", "2015-02-22 15:25:19.079044"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
987
+  (0.1ms) RELEASE SAVEPOINT active_record_2
971
988
  Processing by PushType::WysiwygMediaController#index as JSON
972
989
  Parameters: {"filter"=>"file"}
973
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
974
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
975
- Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 0.5ms)
976
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
977
-  (0.1ms) ROLLBACK
978
-  (0.1ms) BEGIN
990
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
991
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
992
+ Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 0.5ms)
993
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
994
+  (0.1ms) ROLLBACK
995
+  (0.1ms) BEGIN
979
996
  --------------------------------------------------------------------------------------
980
997
  PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
981
998
  --------------------------------------------------------------------------------------
982
-  (0.1ms) SAVEPOINT active_record_1
983
-  (0.0ms) RELEASE SAVEPOINT active_record_1
984
-  (0.0ms) SAVEPOINT active_record_1
985
-  (0.1ms) SAVEPOINT active_record_2
986
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-02-09 20:44:07.592910"], ["updated_at", "2015-02-09 20:44:07.592910"], ["file_ext", "png"], ["mime_type", "image/png"]]
987
-  (0.1ms) RELEASE SAVEPOINT active_record_2
999
+  (0.1ms) SAVEPOINT active_record_1
1000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1001
+  (0.1ms) SAVEPOINT active_record_1
988
1002
   (0.1ms) SAVEPOINT active_record_2
989
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-02-09 20:44:07.595595"], ["updated_at", "2015-02-09 20:44:07.595595"], ["file_ext", "png"], ["mime_type", "image/png"]]
1003
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-02-22 15:25:19.101136"], ["updated_at", "2015-02-22 15:25:19.101136"], ["file_ext", "png"], ["mime_type", "image/png"]]
990
1004
   (0.1ms) RELEASE SAVEPOINT active_record_2
991
1005
   (0.1ms) SAVEPOINT active_record_2
992
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-02-09 20:44:07.598034"], ["updated_at", "2015-02-09 20:44:07.598034"], ["file_ext", "png"], ["mime_type", "image/png"]]
1006
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-02-22 15:25:19.103869"], ["updated_at", "2015-02-22 15:25:19.103869"], ["file_ext", "png"], ["mime_type", "image/png"]]
993
1007
   (0.1ms) RELEASE SAVEPOINT active_record_2
994
1008
   (0.1ms) SAVEPOINT active_record_2
995
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-02-09 20:44:07.600407"], ["updated_at", "2015-02-09 20:44:07.600407"], ["file_ext", "png"], ["mime_type", "image/png"]]
1009
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-02-22 15:25:19.106324"], ["updated_at", "2015-02-22 15:25:19.106324"], ["file_ext", "png"], ["mime_type", "image/png"]]
996
1010
   (0.1ms) RELEASE SAVEPOINT active_record_2
997
1011
   (0.1ms) SAVEPOINT active_record_2
998
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-02-09 20:44:07.603195"], ["updated_at", "2015-02-09 20:44:07.603195"], ["file_ext", "png"], ["mime_type", "image/png"]]
1012
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-02-22 15:25:19.108838"], ["updated_at", "2015-02-22 15:25:19.108838"], ["file_ext", "png"], ["mime_type", "image/png"]]
999
1013
   (0.1ms) RELEASE SAVEPOINT active_record_2
1000
1014
   (0.1ms) SAVEPOINT active_record_2
1001
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-02-09 20:44:07.605901"], ["updated_at", "2015-02-09 20:44:07.605901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1015
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-02-22 15:25:19.111590"], ["updated_at", "2015-02-22 15:25:19.111590"], ["file_ext", "png"], ["mime_type", "image/png"]]
1002
1016
   (0.1ms) RELEASE SAVEPOINT active_record_2
1003
1017
   (0.1ms) SAVEPOINT active_record_2
1004
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-02-09 20:44:07.608394"], ["updated_at", "2015-02-09 20:44:07.608394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1018
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-02-22 15:25:19.114180"], ["updated_at", "2015-02-22 15:25:19.114180"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1005
1019
   (0.1ms) RELEASE SAVEPOINT active_record_2
1006
1020
   (0.1ms) SAVEPOINT active_record_2
1007
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-02-09 20:44:07.610892"], ["updated_at", "2015-02-09 20:44:07.610892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1021
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-02-22 15:25:19.116731"], ["updated_at", "2015-02-22 15:25:19.116731"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1008
1022
   (0.1ms) RELEASE SAVEPOINT active_record_2
1009
1023
   (0.1ms) SAVEPOINT active_record_2
1010
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-02-09 20:44:07.613442"], ["updated_at", "2015-02-09 20:44:07.613442"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1024
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-02-22 15:25:19.119227"], ["updated_at", "2015-02-22 15:25:19.119227"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1011
1025
   (0.1ms) RELEASE SAVEPOINT active_record_2
1012
1026
   (0.1ms) SAVEPOINT active_record_2
1013
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-02-09 20:44:07.616181"], ["updated_at", "2015-02-09 20:44:07.616181"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1027
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-02-22 15:25:19.121937"], ["updated_at", "2015-02-22 15:25:19.121937"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1014
1028
   (0.1ms) RELEASE SAVEPOINT active_record_2
1015
-  (0.2ms) SAVEPOINT active_record_2
1016
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-02-09 20:44:07.618715"], ["updated_at", "2015-02-09 20:44:07.618715"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1029
+  (0.1ms) SAVEPOINT active_record_2
1030
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-02-22 15:25:19.124424"], ["updated_at", "2015-02-22 15:25:19.124424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1017
1031
   (0.1ms) RELEASE SAVEPOINT active_record_2
1018
1032
   (0.1ms) SAVEPOINT active_record_2
1019
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-02-09 20:44:07.621290"], ["updated_at", "2015-02-09 20:44:07.621290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1033
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-02-22 15:25:19.126999"], ["updated_at", "2015-02-22 15:25:19.126999"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1020
1034
   (0.1ms) RELEASE SAVEPOINT active_record_2
1021
1035
   (0.1ms) SAVEPOINT active_record_2
1022
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-02-09 20:44:07.623716"], ["updated_at", "2015-02-09 20:44:07.623716"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1036
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-02-22 15:25:19.129584"], ["updated_at", "2015-02-22 15:25:19.129584"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1023
1037
   (0.1ms) RELEASE SAVEPOINT active_record_2
1024
1038
   (0.1ms) SAVEPOINT active_record_2
1025
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-02-09 20:44:07.626706"], ["updated_at", "2015-02-09 20:44:07.626706"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1039
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-02-22 15:25:19.132409"], ["updated_at", "2015-02-22 15:25:19.132409"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1026
1040
   (0.1ms) RELEASE SAVEPOINT active_record_2
1027
1041
   (0.1ms) SAVEPOINT active_record_2
1028
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-02-09 20:44:07.629644"], ["updated_at", "2015-02-09 20:44:07.629644"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1042
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-02-22 15:25:19.135191"], ["updated_at", "2015-02-22 15:25:19.135191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1029
1043
   (0.1ms) RELEASE SAVEPOINT active_record_2
1030
1044
   (0.1ms) SAVEPOINT active_record_2
1031
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-02-09 20:44:07.632282"], ["updated_at", "2015-02-09 20:44:07.632282"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1045
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-02-22 15:25:19.137793"], ["updated_at", "2015-02-22 15:25:19.137793"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1032
1046
   (0.1ms) RELEASE SAVEPOINT active_record_2
1033
1047
   (0.1ms) SAVEPOINT active_record_2
1034
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-02-09 20:44:07.634798"], ["updated_at", "2015-02-09 20:44:07.634798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1048
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-02-22 15:25:19.140415"], ["updated_at", "2015-02-22 15:25:19.140415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1035
1049
   (0.1ms) RELEASE SAVEPOINT active_record_2
1036
1050
   (0.1ms) SAVEPOINT active_record_2
1037
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-02-09 20:44:07.637527"], ["updated_at", "2015-02-09 20:44:07.637527"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1051
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-02-22 15:25:19.143182"], ["updated_at", "2015-02-22 15:25:19.143182"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1038
1052
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
+  (0.1ms) SAVEPOINT active_record_2
1054
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-02-22 15:25:19.146047"], ["updated_at", "2015-02-22 15:25:19.146047"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1055
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1039
1056
  Processing by PushType::WysiwygMediaController#index as JSON
1040
1057
  Parameters: {"filter"=>"file"}
1041
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1042
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1043
- Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1044
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1045
-  (0.2ms) ROLLBACK
1046
-  (0.1ms) BEGIN
1058
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1059
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1060
+ Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 0.6ms)
1061
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1062
+  (0.1ms) ROLLBACK
1063
+  (0.1ms) BEGIN
1047
1064
  --------------------------------------------------------------------------------------
1048
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1065
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
1049
1066
  --------------------------------------------------------------------------------------
1050
-  (0.1ms) SAVEPOINT active_record_1
1051
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1052
-  (0.0ms) SAVEPOINT active_record_1
1053
-  (0.1ms) SAVEPOINT active_record_2
1054
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "211"], ["created_at", "2015-02-09 20:44:07.659519"], ["updated_at", "2015-02-09 20:44:07.659519"], ["file_ext", "png"], ["mime_type", "image/png"]]
1055
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1067
+  (0.0ms) SAVEPOINT active_record_1
1068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1069
+  (0.0ms) SAVEPOINT active_record_1
1056
1070
   (0.1ms) SAVEPOINT active_record_2
1057
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "212"], ["created_at", "2015-02-09 20:44:07.662357"], ["updated_at", "2015-02-09 20:44:07.662357"], ["file_ext", "png"], ["mime_type", "image/png"]]
1071
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "212"], ["created_at", "2015-02-22 15:25:19.168775"], ["updated_at", "2015-02-22 15:25:19.168775"], ["file_ext", "png"], ["mime_type", "image/png"]]
1058
1072
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
1073
   (0.1ms) SAVEPOINT active_record_2
1060
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-02-09 20:44:07.664864"], ["updated_at", "2015-02-09 20:44:07.664864"], ["file_ext", "png"], ["mime_type", "image/png"]]
1074
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-02-22 15:25:19.171434"], ["updated_at", "2015-02-22 15:25:19.171434"], ["file_ext", "png"], ["mime_type", "image/png"]]
1061
1075
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
1076
   (0.1ms) SAVEPOINT active_record_2
1063
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-02-09 20:44:07.667320"], ["updated_at", "2015-02-09 20:44:07.667320"], ["file_ext", "png"], ["mime_type", "image/png"]]
1077
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-02-22 15:25:19.173814"], ["updated_at", "2015-02-22 15:25:19.173814"], ["file_ext", "png"], ["mime_type", "image/png"]]
1064
1078
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
1079
   (0.1ms) SAVEPOINT active_record_2
1066
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-02-09 20:44:07.669760"], ["updated_at", "2015-02-09 20:44:07.669760"], ["file_ext", "png"], ["mime_type", "image/png"]]
1080
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-02-22 15:25:19.176394"], ["updated_at", "2015-02-22 15:25:19.176394"], ["file_ext", "png"], ["mime_type", "image/png"]]
1067
1081
   (0.1ms) RELEASE SAVEPOINT active_record_2
1068
1082
   (0.1ms) SAVEPOINT active_record_2
1069
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-02-09 20:44:07.672328"], ["updated_at", "2015-02-09 20:44:07.672328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1083
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-02-22 15:25:19.179291"], ["updated_at", "2015-02-22 15:25:19.179291"], ["file_ext", "png"], ["mime_type", "image/png"]]
1070
1084
   (0.1ms) RELEASE SAVEPOINT active_record_2
1071
1085
   (0.1ms) SAVEPOINT active_record_2
1072
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-02-09 20:44:07.674910"], ["updated_at", "2015-02-09 20:44:07.674910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1086
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-02-22 15:25:19.182080"], ["updated_at", "2015-02-22 15:25:19.182080"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1073
1087
   (0.1ms) RELEASE SAVEPOINT active_record_2
1074
1088
   (0.1ms) SAVEPOINT active_record_2
1075
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-02-09 20:44:07.677366"], ["updated_at", "2015-02-09 20:44:07.677366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1089
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-02-22 15:25:19.184576"], ["updated_at", "2015-02-22 15:25:19.184576"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1076
1090
   (0.1ms) RELEASE SAVEPOINT active_record_2
1077
1091
   (0.1ms) SAVEPOINT active_record_2
1078
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-02-09 20:44:07.679888"], ["updated_at", "2015-02-09 20:44:07.679888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1092
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-02-22 15:25:19.187104"], ["updated_at", "2015-02-22 15:25:19.187104"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1079
1093
   (0.1ms) RELEASE SAVEPOINT active_record_2
1080
1094
   (0.1ms) SAVEPOINT active_record_2
1081
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-02-09 20:44:07.682383"], ["updated_at", "2015-02-09 20:44:07.682383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1095
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-02-22 15:25:19.189676"], ["updated_at", "2015-02-22 15:25:19.189676"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1082
1096
   (0.1ms) RELEASE SAVEPOINT active_record_2
1083
1097
   (0.1ms) SAVEPOINT active_record_2
1084
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-02-09 20:44:07.685032"], ["updated_at", "2015-02-09 20:44:07.685032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1098
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-02-22 15:25:19.192796"], ["updated_at", "2015-02-22 15:25:19.192796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1085
1099
   (0.1ms) RELEASE SAVEPOINT active_record_2
1086
1100
   (0.1ms) SAVEPOINT active_record_2
1087
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-02-09 20:44:07.687532"], ["updated_at", "2015-02-09 20:44:07.687532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1101
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-02-22 15:25:19.195886"], ["updated_at", "2015-02-22 15:25:19.195886"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1088
1102
   (0.1ms) RELEASE SAVEPOINT active_record_2
1089
1103
   (0.1ms) SAVEPOINT active_record_2
1090
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-02-09 20:44:07.690059"], ["updated_at", "2015-02-09 20:44:07.690059"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1104
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-02-22 15:25:19.198818"], ["updated_at", "2015-02-22 15:25:19.198818"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1091
1105
   (0.1ms) RELEASE SAVEPOINT active_record_2
1092
1106
   (0.1ms) SAVEPOINT active_record_2
1093
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-02-09 20:44:07.692708"], ["updated_at", "2015-02-09 20:44:07.692708"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1107
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-02-22 15:25:19.201663"], ["updated_at", "2015-02-22 15:25:19.201663"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1094
1108
   (0.1ms) RELEASE SAVEPOINT active_record_2
1095
1109
   (0.1ms) SAVEPOINT active_record_2
1096
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-02-09 20:44:07.695573"], ["updated_at", "2015-02-09 20:44:07.695573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1110
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-02-22 15:25:19.204585"], ["updated_at", "2015-02-22 15:25:19.204585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1097
1111
   (0.1ms) RELEASE SAVEPOINT active_record_2
1098
1112
   (0.1ms) SAVEPOINT active_record_2
1099
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-02-09 20:44:07.698193"], ["updated_at", "2015-02-09 20:44:07.698193"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1113
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-02-22 15:25:19.207297"], ["updated_at", "2015-02-22 15:25:19.207297"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1100
1114
   (0.1ms) RELEASE SAVEPOINT active_record_2
1101
1115
   (0.1ms) SAVEPOINT active_record_2
1102
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-02-09 20:44:07.700707"], ["updated_at", "2015-02-09 20:44:07.700707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1116
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-02-22 15:25:19.209995"], ["updated_at", "2015-02-22 15:25:19.209995"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1103
1117
   (0.1ms) RELEASE SAVEPOINT active_record_2
1104
1118
   (0.1ms) SAVEPOINT active_record_2
1105
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-02-09 20:44:07.703213"], ["updated_at", "2015-02-09 20:44:07.703213"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1119
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-02-22 15:25:19.213054"], ["updated_at", "2015-02-22 15:25:19.213054"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1106
1120
   (0.1ms) RELEASE SAVEPOINT active_record_2
1121
+  (0.1ms) SAVEPOINT active_record_2
1122
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-02-22 15:25:19.215916"], ["updated_at", "2015-02-22 15:25:19.215916"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1123
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1107
1124
  Processing by PushType::WysiwygMediaController#index as JSON
1108
1125
  Parameters: {"filter"=>"file"}
1109
- PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1110
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1111
- Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.6ms)
1112
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1113
-  (0.1ms) ROLLBACK
1114
-  (0.1ms) BEGIN
1126
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1127
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1128
+ Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.5ms)
1129
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1130
+  (0.1ms) ROLLBACK
1131
+  (0.1ms) BEGIN
1115
1132
  --------------------------------------------------------------------------------------
1116
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1133
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1117
1134
  --------------------------------------------------------------------------------------
1118
-  (0.1ms) SAVEPOINT active_record_1
1119
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1120
-  (0.0ms) SAVEPOINT active_record_1
1121
-  (0.1ms) SAVEPOINT active_record_2
1122
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-02-09 20:44:07.724519"], ["updated_at", "2015-02-09 20:44:07.724519"], ["file_ext", "png"], ["mime_type", "image/png"]]
1123
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1135
+  (0.1ms) SAVEPOINT active_record_1
1136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1137
+  (0.1ms) SAVEPOINT active_record_1
1124
1138
   (0.1ms) SAVEPOINT active_record_2
1125
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-02-09 20:44:07.727316"], ["updated_at", "2015-02-09 20:44:07.727316"], ["file_ext", "png"], ["mime_type", "image/png"]]
1139
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-02-22 15:25:19.236387"], ["updated_at", "2015-02-22 15:25:19.236387"], ["file_ext", "png"], ["mime_type", "image/png"]]
1126
1140
   (0.1ms) RELEASE SAVEPOINT active_record_2
1127
1141
   (0.1ms) SAVEPOINT active_record_2
1128
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-02-09 20:44:07.753909"], ["updated_at", "2015-02-09 20:44:07.753909"], ["file_ext", "png"], ["mime_type", "image/png"]]
1142
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-02-22 15:25:19.238929"], ["updated_at", "2015-02-22 15:25:19.238929"], ["file_ext", "png"], ["mime_type", "image/png"]]
1129
1143
   (0.1ms) RELEASE SAVEPOINT active_record_2
1130
1144
   (0.1ms) SAVEPOINT active_record_2
1131
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-02-09 20:44:07.756754"], ["updated_at", "2015-02-09 20:44:07.756754"], ["file_ext", "png"], ["mime_type", "image/png"]]
1145
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-02-22 15:25:19.241292"], ["updated_at", "2015-02-22 15:25:19.241292"], ["file_ext", "png"], ["mime_type", "image/png"]]
1132
1146
   (0.1ms) RELEASE SAVEPOINT active_record_2
1133
1147
   (0.1ms) SAVEPOINT active_record_2
1134
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-02-09 20:44:07.759600"], ["updated_at", "2015-02-09 20:44:07.759600"], ["file_ext", "png"], ["mime_type", "image/png"]]
1148
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-02-22 15:25:19.243580"], ["updated_at", "2015-02-22 15:25:19.243580"], ["file_ext", "png"], ["mime_type", "image/png"]]
1135
1149
   (0.1ms) RELEASE SAVEPOINT active_record_2
1136
1150
   (0.1ms) SAVEPOINT active_record_2
1137
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "234"], ["created_at", "2015-02-09 20:44:07.762687"], ["updated_at", "2015-02-09 20:44:07.762687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-02-22 15:25:19.246185"], ["updated_at", "2015-02-22 15:25:19.246185"], ["file_ext", "png"], ["mime_type", "image/png"]]
1138
1152
   (0.1ms) RELEASE SAVEPOINT active_record_2
1139
1153
   (0.1ms) SAVEPOINT active_record_2
1140
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "235"], ["created_at", "2015-02-09 20:44:07.765545"], ["updated_at", "2015-02-09 20:44:07.765545"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "235"], ["created_at", "2015-02-22 15:25:19.249222"], ["updated_at", "2015-02-22 15:25:19.249222"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1141
1155
   (0.1ms) RELEASE SAVEPOINT active_record_2
1142
1156
   (0.1ms) SAVEPOINT active_record_2
1143
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-02-09 20:44:07.768236"], ["updated_at", "2015-02-09 20:44:07.768236"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1157
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-02-22 15:25:19.251659"], ["updated_at", "2015-02-22 15:25:19.251659"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1144
1158
   (0.1ms) RELEASE SAVEPOINT active_record_2
1145
1159
   (0.1ms) SAVEPOINT active_record_2
1146
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-02-09 20:44:07.771021"], ["updated_at", "2015-02-09 20:44:07.771021"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1160
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-02-22 15:25:19.253992"], ["updated_at", "2015-02-22 15:25:19.253992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1147
1161
   (0.1ms) RELEASE SAVEPOINT active_record_2
1148
1162
   (0.1ms) SAVEPOINT active_record_2
1149
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-02-09 20:44:07.773568"], ["updated_at", "2015-02-09 20:44:07.773568"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1163
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-02-22 15:25:19.256420"], ["updated_at", "2015-02-22 15:25:19.256420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1150
1164
   (0.1ms) RELEASE SAVEPOINT active_record_2
1151
1165
   (0.1ms) SAVEPOINT active_record_2
1152
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-02-09 20:44:07.776350"], ["updated_at", "2015-02-09 20:44:07.776350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1166
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-02-22 15:25:19.258901"], ["updated_at", "2015-02-22 15:25:19.258901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1153
1167
   (0.1ms) RELEASE SAVEPOINT active_record_2
1154
1168
   (0.1ms) SAVEPOINT active_record_2
1155
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-02-09 20:44:07.778927"], ["updated_at", "2015-02-09 20:44:07.778927"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-02-22 15:25:19.261458"], ["updated_at", "2015-02-22 15:25:19.261458"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1156
1170
   (0.1ms) RELEASE SAVEPOINT active_record_2
1157
1171
   (0.1ms) SAVEPOINT active_record_2
1158
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-02-09 20:44:07.781363"], ["updated_at", "2015-02-09 20:44:07.781363"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-02-22 15:25:19.263905"], ["updated_at", "2015-02-22 15:25:19.263905"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1159
1173
   (0.1ms) RELEASE SAVEPOINT active_record_2
1160
1174
   (0.1ms) SAVEPOINT active_record_2
1161
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-02-09 20:44:07.784054"], ["updated_at", "2015-02-09 20:44:07.784054"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-02-22 15:25:19.266307"], ["updated_at", "2015-02-22 15:25:19.266307"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1162
1176
   (0.1ms) RELEASE SAVEPOINT active_record_2
1163
1177
   (0.1ms) SAVEPOINT active_record_2
1164
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-02-09 20:44:07.786764"], ["updated_at", "2015-02-09 20:44:07.786764"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-02-22 15:25:19.268786"], ["updated_at", "2015-02-22 15:25:19.268786"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1165
1179
   (0.1ms) RELEASE SAVEPOINT active_record_2
1166
1180
   (0.1ms) SAVEPOINT active_record_2
1167
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-02-09 20:44:07.789326"], ["updated_at", "2015-02-09 20:44:07.789326"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1181
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-02-22 15:25:19.271552"], ["updated_at", "2015-02-22 15:25:19.271552"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1168
1182
   (0.1ms) RELEASE SAVEPOINT active_record_2
1169
-  (0.2ms) SAVEPOINT active_record_2
1170
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-02-09 20:44:07.791841"], ["updated_at", "2015-02-09 20:44:07.791841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1183
+  (0.1ms) SAVEPOINT active_record_2
1184
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-02-22 15:25:19.274041"], ["updated_at", "2015-02-22 15:25:19.274041"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1171
1185
   (0.1ms) RELEASE SAVEPOINT active_record_2
1172
1186
   (0.1ms) SAVEPOINT active_record_2
1173
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-02-09 20:44:07.794310"], ["updated_at", "2015-02-09 20:44:07.794310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1187
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-02-22 15:25:19.276467"], ["updated_at", "2015-02-22 15:25:19.276467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1174
1188
   (0.1ms) RELEASE SAVEPOINT active_record_2
1189
+  (0.1ms) SAVEPOINT active_record_2
1190
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-02-22 15:25:19.279003"], ["updated_at", "2015-02-22 15:25:19.279003"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1191
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1175
1192
  Processing by PushType::WysiwygMediaController#index as JSON
1176
1193
  Parameters: {"filter"=>"file"}
1177
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1178
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1179
- Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1180
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1181
-  (0.1ms) ROLLBACK
1182
-  (0.1ms) BEGIN
1183
- --------------------------------------------------------------------------------
1184
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1185
- --------------------------------------------------------------------------------
1186
-  (0.1ms) SAVEPOINT active_record_1
1187
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1188
-  (0.0ms) SAVEPOINT active_record_1
1189
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1190
- Processing by PushType::WysiwygMediaController#create as JSON
1191
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7eead88 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-xiqlxe>>}}
1192
-  (0.1ms) SAVEPOINT active_record_2
1193
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-02-09 20:44:07.821028"], ["updated_at", "2015-02-09 20:44:07.821028"], ["file_ext", "png"], ["mime_type", "image/png"]]
1194
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1195
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1196
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1194
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1195
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1196
+ Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.5ms)
1197
1197
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1198
1198
   (0.1ms) ROLLBACK
1199
1199
   (0.1ms) BEGIN
1200
1200
  -----------------------------------------------------------------------
1201
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1201
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1202
1202
  -----------------------------------------------------------------------
1203
1203
   (0.1ms) SAVEPOINT active_record_1
1204
1204
   (0.1ms) RELEASE SAVEPOINT active_record_1
1205
1205
   (0.1ms) SAVEPOINT active_record_1
1206
1206
   (0.1ms) SAVEPOINT active_record_2
1207
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-02-09 20:44:07.828760"], ["updated_at", "2015-02-09 20:44:07.828760"], ["file_ext", "png"], ["mime_type", "image/png"]]
1207
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-02-22 15:25:19.300570"], ["updated_at", "2015-02-22 15:25:19.300570"], ["file_ext", "png"], ["mime_type", "image/png"]]
1208
1208
   (0.1ms) RELEASE SAVEPOINT active_record_2
1209
1209
   (0.1ms) SAVEPOINT active_record_2
1210
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-02-09 20:44:07.831493"], ["updated_at", "2015-02-09 20:44:07.831493"], ["file_ext", "png"], ["mime_type", "image/png"]]
1210
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-02-22 15:25:19.303084"], ["updated_at", "2015-02-22 15:25:19.303084"], ["file_ext", "png"], ["mime_type", "image/png"]]
1211
1211
   (0.1ms) RELEASE SAVEPOINT active_record_2
1212
1212
   (0.1ms) SAVEPOINT active_record_2
1213
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-02-09 20:44:07.834123"], ["updated_at", "2015-02-09 20:44:07.834123"], ["file_ext", "png"], ["mime_type", "image/png"]]
1213
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-02-22 15:25:19.305390"], ["updated_at", "2015-02-22 15:25:19.305390"], ["file_ext", "png"], ["mime_type", "image/png"]]
1214
1214
   (0.1ms) RELEASE SAVEPOINT active_record_2
1215
1215
   (0.1ms) SAVEPOINT active_record_2
1216
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-02-09 20:44:07.836725"], ["updated_at", "2015-02-09 20:44:07.836725"], ["file_ext", "png"], ["mime_type", "image/png"]]
1216
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-02-22 15:25:19.307739"], ["updated_at", "2015-02-22 15:25:19.307739"], ["file_ext", "png"], ["mime_type", "image/png"]]
1217
1217
   (0.1ms) RELEASE SAVEPOINT active_record_2
1218
1218
  PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1219
1219
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
@@ -1223,20 +1223,20 @@ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1223
1223
  -----------------------------------------------------------------------
1224
1224
  PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1225
1225
  -----------------------------------------------------------------------
1226
-  (0.0ms) SAVEPOINT active_record_1
1227
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1226
+  (0.1ms) SAVEPOINT active_record_1
1227
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1228
1228
   (0.0ms) SAVEPOINT active_record_1
1229
1229
   (0.1ms) SAVEPOINT active_record_2
1230
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-02-09 20:44:07.846353"], ["updated_at", "2015-02-09 20:44:07.846353"], ["file_ext", "png"], ["mime_type", "image/png"]]
1230
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-02-22 15:25:19.317462"], ["updated_at", "2015-02-22 15:25:19.317462"], ["file_ext", "png"], ["mime_type", "image/png"]]
1231
1231
   (0.1ms) RELEASE SAVEPOINT active_record_2
1232
1232
   (0.1ms) SAVEPOINT active_record_2
1233
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-02-09 20:44:07.849257"], ["updated_at", "2015-02-09 20:44:07.849257"], ["file_ext", "png"], ["mime_type", "image/png"]]
1233
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-02-22 15:25:19.319971"], ["updated_at", "2015-02-22 15:25:19.319971"], ["file_ext", "png"], ["mime_type", "image/png"]]
1234
1234
   (0.1ms) RELEASE SAVEPOINT active_record_2
1235
1235
   (0.1ms) SAVEPOINT active_record_2
1236
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-02-09 20:44:07.851775"], ["updated_at", "2015-02-09 20:44:07.851775"], ["file_ext", "png"], ["mime_type", "image/png"]]
1236
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-02-22 15:25:19.322423"], ["updated_at", "2015-02-22 15:25:19.322423"], ["file_ext", "png"], ["mime_type", "image/png"]]
1237
1237
   (0.1ms) RELEASE SAVEPOINT active_record_2
1238
1238
   (0.1ms) SAVEPOINT active_record_2
1239
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-02-09 20:44:07.854391"], ["updated_at", "2015-02-09 20:44:07.854391"], ["file_ext", "png"], ["mime_type", "image/png"]]
1239
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-02-22 15:25:19.324697"], ["updated_at", "2015-02-22 15:25:19.324697"], ["file_ext", "png"], ["mime_type", "image/png"]]
1240
1240
   (0.1ms) RELEASE SAVEPOINT active_record_2
1241
1241
  PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1242
1242
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
@@ -1244,22 +1244,22 @@ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1244
1244
   (0.1ms) ROLLBACK
1245
1245
   (0.1ms) BEGIN
1246
1246
  -----------------------------------------------------------------------
1247
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1247
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1248
1248
  -----------------------------------------------------------------------
1249
-  (0.0ms) SAVEPOINT active_record_1
1249
+  (0.1ms) SAVEPOINT active_record_1
1250
1250
   (0.1ms) RELEASE SAVEPOINT active_record_1
1251
1251
   (0.0ms) SAVEPOINT active_record_1
1252
1252
   (0.1ms) SAVEPOINT active_record_2
1253
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-02-09 20:44:07.864296"], ["updated_at", "2015-02-09 20:44:07.864296"], ["file_ext", "png"], ["mime_type", "image/png"]]
1253
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-02-22 15:25:19.334591"], ["updated_at", "2015-02-22 15:25:19.334591"], ["file_ext", "png"], ["mime_type", "image/png"]]
1254
1254
   (0.1ms) RELEASE SAVEPOINT active_record_2
1255
1255
   (0.1ms) SAVEPOINT active_record_2
1256
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-02-09 20:44:07.866976"], ["updated_at", "2015-02-09 20:44:07.866976"], ["file_ext", "png"], ["mime_type", "image/png"]]
1256
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-02-22 15:25:19.337134"], ["updated_at", "2015-02-22 15:25:19.337134"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
1257
   (0.1ms) RELEASE SAVEPOINT active_record_2
1258
1258
   (0.1ms) SAVEPOINT active_record_2
1259
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-02-09 20:44:07.869450"], ["updated_at", "2015-02-09 20:44:07.869450"], ["file_ext", "png"], ["mime_type", "image/png"]]
1259
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-02-22 15:25:19.339656"], ["updated_at", "2015-02-22 15:25:19.339656"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
1260
   (0.1ms) RELEASE SAVEPOINT active_record_2
1261
1261
   (0.1ms) SAVEPOINT active_record_2
1262
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-02-09 20:44:07.872094"], ["updated_at", "2015-02-09 20:44:07.872094"], ["file_ext", "png"], ["mime_type", "image/png"]]
1262
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-02-22 15:25:19.341959"], ["updated_at", "2015-02-22 15:25:19.341959"], ["file_ext", "png"], ["mime_type", "image/png"]]
1263
1263
   (0.1ms) RELEASE SAVEPOINT active_record_2
1264
1264
  PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1265
1265
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
@@ -1267,47 +1267,47 @@ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1267
1267
   (0.1ms) ROLLBACK
1268
1268
   (0.1ms) BEGIN
1269
1269
  -----------------------------------------------------------------------
1270
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1270
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1271
1271
  -----------------------------------------------------------------------
1272
1272
   (0.0ms) SAVEPOINT active_record_1
1273
1273
   (0.0ms) RELEASE SAVEPOINT active_record_1
1274
-  (0.0ms) SAVEPOINT active_record_1
1274
+  (0.1ms) SAVEPOINT active_record_1
1275
1275
   (0.1ms) SAVEPOINT active_record_2
1276
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-02-09 20:44:07.882003"], ["updated_at", "2015-02-09 20:44:07.882003"], ["file_ext", "png"], ["mime_type", "image/png"]]
1276
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-02-22 15:25:19.351788"], ["updated_at", "2015-02-22 15:25:19.351788"], ["file_ext", "png"], ["mime_type", "image/png"]]
1277
1277
   (0.1ms) RELEASE SAVEPOINT active_record_2
1278
1278
   (0.1ms) SAVEPOINT active_record_2
1279
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-02-09 20:44:07.884951"], ["updated_at", "2015-02-09 20:44:07.884951"], ["file_ext", "png"], ["mime_type", "image/png"]]
1279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-02-22 15:25:19.354416"], ["updated_at", "2015-02-22 15:25:19.354416"], ["file_ext", "png"], ["mime_type", "image/png"]]
1280
1280
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1281
   (0.1ms) SAVEPOINT active_record_2
1282
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-02-09 20:44:07.887611"], ["updated_at", "2015-02-09 20:44:07.887611"], ["file_ext", "png"], ["mime_type", "image/png"]]
1282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-02-22 15:25:19.356806"], ["updated_at", "2015-02-22 15:25:19.356806"], ["file_ext", "png"], ["mime_type", "image/png"]]
1283
1283
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
1284
   (0.1ms) SAVEPOINT active_record_2
1285
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-02-09 20:44:07.890208"], ["updated_at", "2015-02-09 20:44:07.890208"], ["file_ext", "png"], ["mime_type", "image/png"]]
1285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-02-22 15:25:19.359240"], ["updated_at", "2015-02-22 15:25:19.359240"], ["file_ext", "png"], ["mime_type", "image/png"]]
1286
1286
   (0.1ms) RELEASE SAVEPOINT active_record_2
1287
1287
  PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1288
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
1288
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1289
1289
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1290
1290
   (0.1ms) ROLLBACK
1291
1291
   (0.1ms) BEGIN
1292
1292
  -----------------------------------------------------------------------
1293
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1293
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1294
1294
  -----------------------------------------------------------------------
1295
-  (0.1ms) SAVEPOINT active_record_1
1296
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1297
-  (0.1ms) SAVEPOINT active_record_1
1295
+  (0.0ms) SAVEPOINT active_record_1
1296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1297
+  (0.0ms) SAVEPOINT active_record_1
1298
1298
   (0.1ms) SAVEPOINT active_record_2
1299
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-02-09 20:44:07.902305"], ["updated_at", "2015-02-09 20:44:07.902305"], ["file_ext", "png"], ["mime_type", "image/png"]]
1299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-02-22 15:25:19.368615"], ["updated_at", "2015-02-22 15:25:19.368615"], ["file_ext", "png"], ["mime_type", "image/png"]]
1300
1300
   (0.1ms) RELEASE SAVEPOINT active_record_2
1301
1301
   (0.1ms) SAVEPOINT active_record_2
1302
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-02-09 20:44:07.905748"], ["updated_at", "2015-02-09 20:44:07.905748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-02-22 15:25:19.371214"], ["updated_at", "2015-02-22 15:25:19.371214"], ["file_ext", "png"], ["mime_type", "image/png"]]
1303
1303
   (0.1ms) RELEASE SAVEPOINT active_record_2
1304
1304
   (0.1ms) SAVEPOINT active_record_2
1305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-02-09 20:44:07.908592"], ["updated_at", "2015-02-09 20:44:07.908592"], ["file_ext", "png"], ["mime_type", "image/png"]]
1305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-02-22 15:25:19.373715"], ["updated_at", "2015-02-22 15:25:19.373715"], ["file_ext", "png"], ["mime_type", "image/png"]]
1306
1306
   (0.1ms) RELEASE SAVEPOINT active_record_2
1307
1307
   (0.1ms) SAVEPOINT active_record_2
1308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-02-09 20:44:07.911483"], ["updated_at", "2015-02-09 20:44:07.911483"], ["file_ext", "png"], ["mime_type", "image/png"]]
1308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-02-22 15:25:19.376085"], ["updated_at", "2015-02-22 15:25:19.376085"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
1309
   (0.1ms) RELEASE SAVEPOINT active_record_2
1310
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1310
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1311
1311
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1312
1312
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1313
1313
   (0.1ms) ROLLBACK