push_type_wysiwyg 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/push_type/wysiwyg.js.coffee +2 -0
  3. data/test/dummy/app/models/page.rb +1 -1
  4. data/test/dummy/config/initializers/push_type.rb +4 -1
  5. data/test/dummy/config/secrets.yml +2 -2
  6. data/test/dummy/db/migrate/{20150222152513_create_push_type_users.push_type.rb → 20150310192221_create_push_type_users.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150222152514_create_push_type_nodes.push_type.rb → 20150310192222_create_push_type_nodes.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150222152515_create_push_type_node_hierarchies.push_type.rb → 20150310192223_create_push_type_node_hierarchies.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20150222152516_create_push_type_assets.push_type.rb → 20150310192224_create_push_type_assets.push_type.rb} +0 -0
  10. data/test/dummy/db/schema.rb +1 -1
  11. data/test/dummy/log/test.log +597 -597
  12. data/test/dummy/tmp/cache/assets/test/sprockets/33d35be24dc460ab551a05001b7a6d0c +0 -0
  13. data/test/dummy/tmp/cache/assets/test/sprockets/4643214930041faccaf22bf42bce1a04 +0 -0
  14. metadata +18 -500
  15. data/test/dummy/log/development.log +0 -7123
  16. data/test/dummy/public/system/dragonfly/development/2015/02/22/1l58rmwrzh_unnamed.jpg +0 -0
  17. data/test/dummy/public/system/dragonfly/development/2015/02/22/1l58rmwrzh_unnamed.jpg.meta.yml +0 -4
  18. data/test/dummy/tmp/cache/assets/development/sass/0bf981301b6f8cfa0a13d38a3554eafaa08d4bc1/foundation.scssc +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin.scssc +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin_assets.scss.erbc +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/foundation_and_overrides.scssc +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/tagsinput.scssc +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_accordion.scssc +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_alert-boxes.scssc +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_block-grid.scssc +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_breadcrumbs.scssc +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_button-groups.scssc +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_buttons.scssc +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_clearing.scssc +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown-buttons.scssc +0 -0
  31. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown.scssc +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_flex-video.scssc +0 -0
  33. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_forms.scssc +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_global.scssc +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_grid.scssc +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_icon-bar.scssc +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_inline-lists.scssc +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_joyride.scssc +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_keystrokes.scssc +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_labels.scssc +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_magellan.scssc +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_offcanvas.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_orbit.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_pagination.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_panels.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_pricing-tables.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_progress-bars.scssc +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_range-slider.scssc +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_reveal.scssc +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_side-nav.scssc +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_split-buttons.scssc +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_sub-nav.scssc +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_switches.scssc +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tables.scssc +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tabs.scssc +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_thumbs.scssc +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tooltips.scssc +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_top-bar.scssc +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_type.scssc +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_visibility.scssc +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sass/9ffd013d383870261f2263c294cb3119536e8d59/_functions.scssc +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/froala_overrides.scssc +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/pt_theme.scssc +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/wysiwyg.scssc +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sass/d416499186bc6a8ba276a69cc9d9fffa030e66bc/foundation-icons.scssc +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/0002392d6db76064d178c6d9f05a0978 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/00ba3b70f9c53c57d22cf0bee1c37172 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/031df4e569e4e2012f581466d4c49650 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/03a225647e06f576b39797c97834bc24 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/03fbfd831772639fdac75dfe5fe9cf64 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/042e6dec69dbf88f86f5e8c360b52bcb +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/04df4e97dcf4fc2678946e88518d19ca +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/04e7b5cc79c9b1c549820832eb88d319 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/0805cc52792bf8c38adacc28dae3006a +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/081a74b1457ef4d22b22f3a87335b18a +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/092ab959c3e9331b83af5258e71da363 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/096eddf7a98fd625176db364d134da81 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/0aa9b91b3ecfb11e422aa5d7764e96b9 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/0ad373f2b4d9f428b6e58e76da4ec0b9 +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/0be1680e56bd474e90098c85ed3613f1 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/0c7d363f5622cc1f9d3584fdea9a45a8 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/0e01ae9de0f3914c8317853aedd9ace4 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/0e97b69ac6f777e5725c5faa99228b8b +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/0fab70c609be2aba766be828253ae925 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/106c19f564ec5217ee478cbab34720f1 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/11d0db644738c3eeb74a1b4821e17387 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/13f28eb9e74d963db85d096c41d1a0dc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/147cd256ded8a7797a230bd1f27db96a +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/1821710663a22c38d025f3600144b386 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/1956e934d0761e89293cf096aef2ad04 +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/1b8e382ffcf81030d49a8dbcf0beb553 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/1c77a98139216e228eba134f34095843 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/1e223ecb24750e08ecbc16120f1a3cfa +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/20d629f8f2d27d8418db0113f0346abc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/2196fdacd39bb9f5c4e3755b86d84888 +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/21bfe84f05ed2fba3ce99db95bb959b3 +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/226a629ec094e8ad208f2c273121699a +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/22a51e693681f3b603f26628fac44b07 +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/23c10c485dbe7ea46614928874120ecf +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/24cb56346b5c952d3e54370706a44947 +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/257233cf9d7cbb01dd74d0fefd6a9384 +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/2599cde7c63354f12928a204c42fe68b +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/25da091131e25acf0f55a6528a94f309 +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/27d0805c68db0e1ea5335f4ad7273237 +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/281682b191417684daf9036d98ef6f6a +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/2821176477eee8de7b9581f0564d0947 +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/28d688f439ef90b05d8061d8c3209a34 +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/2929961e63046a72db4e8d82548a8f31 +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/29788e10655827b0cb48737a98f416ee +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/2acc8cc9d4b7a10606e6cdf14f6c3bbd +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/30905e99aec45e80d3e9f20ed6100f7b +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/30f88df6b769522639aee569e18ab005 +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/312dcc14683b058a2ecb35f844b45deb +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/3220d70364d496c9cec094a51213d58a +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/3250647bb1e816f8ee380676051395a0 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/34180a46a1fc802cc4e37f4db0626478 +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/3508023b6222e6b0876c773e38ec700d +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/398116cdc953ef489a67c3a7e7a1aece +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/3c6444c7e7cefae32b10e67f32c0277a +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/3d35d51d6f620f3b4354d36d7959c89d +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/3d913c6890c084026be6278d4e2e8547 +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/3fa0c2e71b116e59b3f3d50fff211c23 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/463cf86d1833a97b9145f6e36ab75d53 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/4858303c37ae4b39f56910e5e374b915 +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/488d63b20534d2642d48b86b5a267a3b +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/4a0db6a94f7ee4df38bb9fc2ca66f0c7 +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/4b55a223c2dc35a5f80af7af884749f3 +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/4fc498f23125a9811434c6d5d5b43b64 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/508e9ca93a5c6a60e79e3496654497cf +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/55872208a3d530cd28d0bbad22d55079 +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/55bff739aaf7938f394017db041e742e +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/56a23304bd86f6f426dd44b6a14e0bbf +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/57531b6d66c8c471ca21a68cde85f198 +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/576b745d6338e8f7635e82939abb6e5f +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/5b03a21e24f2318345666c69b686067a +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/5c3ab7f66e6c662a3ff250afdeb61a44 +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/5c6330161fb7c48109502c40ac57d2a3 +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/5c694af01dab7474cace85e2e37233af +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/5c7a9715a4d34606731b486f1251151d +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/5e0b7b9458a23ccc5c66e2ab0398a17c +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/5eb2ada2e9af19cdbe5cb8750ce801df +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/5f22f2b7323f2d1145c5e2dbe86106ef +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/5f85da4ac11a64f005e2656b99be44ac +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/615c2789eb50bd461f700dbbe612375a +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/61a4c97ff14ea9dc6f5d8ca42c65b34f +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/6245a5f4c9368169ba2cab2de39b1316 +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/633ffb1bd470dc99106053fe08ffcef3 +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/63ea22cf580e6c90cdb3c76900705de0 +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/6450b2170b90777c94faa92d8913b5af +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/64550cb088f2a8bd25da69f8e7623a7a +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/6640df6f9fea191b039a12e530222ed4 +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/6756d566c21f4e4b087fdff4f998d932 +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/67dc8a78c942bd4604abc432cbe7353b +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/68f987c6c8cac5655b3ee24985a584fc +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/6afb6cb0462c9dab19086aa6c02e619a +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/6b75e75e7b682e7c5633d02f5441f61c +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/6c7542a3718ad8d161e94f4816f01ccb +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/6e520d29d8e0af4c5fdb3ce228619f9e +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/6ffb1f074155829dca88c57f3730a9c3 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/720b83386eaf5707c1535472e36ba7fb +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/744c7370209ddecff0f0e7cb474bc4cf +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/756b24d1d6762675f2f3d781313c59b6 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/7879ec7699a19e017377e1b57702e3e5 +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/78fa745fd2161cd5d09b0ceacd9511fc +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/7925f8f38f5165ad9d36a7d73dd00c06 +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/79f92fe028aba3a0b3cc05f29b209da3 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/7cd04ce7e67cb693aa31bd3e03199ecd +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/7ec747d2848f5b2b3c0c822c8d251f3e +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/81ebadcc1f5568d97bfe59f0929ab498 +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/88fb3b262db688175d04e44b58529fad +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/897fcee94209310a5d16db6b10c29dfa +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/8a34d99aaa243ebb4e60f483a5b5a817 +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/8b83fd34df285c871e41af1e2c3efda9 +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/8b9fc2be9ca39f6c79bfdad5364dc676 +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/8d531fdb806de0724337e0b80e253914 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/8df98e9b5189ffce4cf77a33533416a6 +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/91971e95dd0172705ab405c50732dce6 +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/91e13d81afe9041372ad8f79ee9159f4 +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/9221dd4a064b2d36adbdbce6a33a6f7e +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/9237af24b42c41f9f2d3ecc68f60a600 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/92716c1d1cdd92efe79de35a47956fc9 +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/927bf336b73c19a6d35362d3e8ec1541 +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/93f1c8b2c57b6a34ce6be7a69af2eeab +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/9525e9603e466a87e595061d4af7fec7 +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/9850ccc5ff77cfe44eef6c931be25fa2 +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/98f7a7f74c13a9f46cfbc7288fc95212 +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/99fe26a80e7e5ec06edf349306f40d5a +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/9a08c53fbaab11a94ed694fa4fc21bce +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/9a772d1dc121b28314ad4c064b170c1e +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/9aef3ae1f0c62b895d86ab60901dd450 +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/9c34afd1737e54e4eb06cc87ddf17b78 +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/a031c4e726d60fef882757c0f39eb66f +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/a09464fdd61b5bfb25f86f5c04283d1f +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/a656594778473574f77b201837cc446f +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/a93ec74f5cd7f26f8c663d4c481fe689 +0 -0
  196. data/test/dummy/tmp/cache/assets/development/sprockets/a9b8decaa2942e8913458c9f35da2693 +0 -0
  197. data/test/dummy/tmp/cache/assets/development/sprockets/aab84c1f5c24fa406a94eac09d22b2a4 +0 -0
  198. data/test/dummy/tmp/cache/assets/development/sprockets/aaf7959dea629271d23756ab876bc035 +0 -0
  199. data/test/dummy/tmp/cache/assets/development/sprockets/ab6e14fb85dc2ad554e941848018ed3f +0 -0
  200. data/test/dummy/tmp/cache/assets/development/sprockets/ac6920ecb59148769117dba39b8bb574 +0 -0
  201. data/test/dummy/tmp/cache/assets/development/sprockets/ada55ab3ebb32ffd74145d341fbbcb06 +0 -0
  202. data/test/dummy/tmp/cache/assets/development/sprockets/adb1525a6ffb2f6bde64edad42ff1843 +0 -0
  203. data/test/dummy/tmp/cache/assets/development/sprockets/ae854557f47e184d242c2d046b212fda +0 -0
  204. data/test/dummy/tmp/cache/assets/development/sprockets/b05f3b842ea70a8728bdfc77fe0c3a37 +0 -0
  205. data/test/dummy/tmp/cache/assets/development/sprockets/b22e7be4b7531ad92c824dcfd9adca27 +0 -0
  206. data/test/dummy/tmp/cache/assets/development/sprockets/b24f2d6f62512f4cb11c6a2e44bf90e4 +0 -0
  207. data/test/dummy/tmp/cache/assets/development/sprockets/b68fa55b48d70d8b978ffac2c76c5c14 +0 -0
  208. data/test/dummy/tmp/cache/assets/development/sprockets/b762effbcb1d2a5c2e967b26de0b8e2a +0 -0
  209. data/test/dummy/tmp/cache/assets/development/sprockets/b78741de2e56d8ac6629bb0dbf1d5c20 +0 -0
  210. data/test/dummy/tmp/cache/assets/development/sprockets/b98f2d58122bd73a46b39aa6c0144105 +0 -0
  211. data/test/dummy/tmp/cache/assets/development/sprockets/bb38dd1514d70d46cc209c23beacf4ae +0 -0
  212. data/test/dummy/tmp/cache/assets/development/sprockets/bc732efa6ca399217b023bd1e04f0404 +0 -0
  213. data/test/dummy/tmp/cache/assets/development/sprockets/bd13850cdb27ce3ade259ada4ca0b803 +0 -0
  214. data/test/dummy/tmp/cache/assets/development/sprockets/beae69b8f0d0fdaef95ab96db9591086 +0 -0
  215. data/test/dummy/tmp/cache/assets/development/sprockets/bee4e1605077e29abd380b05b645cbb4 +0 -0
  216. data/test/dummy/tmp/cache/assets/development/sprockets/c206fbd33f49ab785c6ddf4bcffd3b93 +0 -0
  217. data/test/dummy/tmp/cache/assets/development/sprockets/c22d9591f58891a95316c8595197a670 +0 -0
  218. data/test/dummy/tmp/cache/assets/development/sprockets/c24da6389dfcadaf699c9b4a4eea9964 +0 -0
  219. data/test/dummy/tmp/cache/assets/development/sprockets/c50682dcd8158c80ca1a676910d9482f +0 -0
  220. data/test/dummy/tmp/cache/assets/development/sprockets/c8e888c4098e2f3e7e08e7aad9233bd9 +0 -0
  221. data/test/dummy/tmp/cache/assets/development/sprockets/c9ebc72dd9509bb10caa1dbedb55de2b +0 -0
  222. data/test/dummy/tmp/cache/assets/development/sprockets/cc63d401339265551b27ac91974668cb +0 -0
  223. data/test/dummy/tmp/cache/assets/development/sprockets/cf51890ac703ed5a5d704515a4721815 +0 -0
  224. data/test/dummy/tmp/cache/assets/development/sprockets/d06cd81508d945ef6609a832dc1ca23b +0 -0
  225. data/test/dummy/tmp/cache/assets/development/sprockets/d0cf9660d4e93fdd63688388b1ee5b5f +0 -0
  226. data/test/dummy/tmp/cache/assets/development/sprockets/d1e4481ce50457c9250e4be77c3510a2 +0 -0
  227. data/test/dummy/tmp/cache/assets/development/sprockets/d30a320df486e076298c602d428f3145 +0 -0
  228. data/test/dummy/tmp/cache/assets/development/sprockets/d4e555198f64c730192a65bdbcb8e27a +0 -0
  229. data/test/dummy/tmp/cache/assets/development/sprockets/d71b8364b6c65852719d388c7d55976e +0 -0
  230. data/test/dummy/tmp/cache/assets/development/sprockets/d7d047f71994f3f1a9858c0941fc1452 +0 -0
  231. data/test/dummy/tmp/cache/assets/development/sprockets/d82779125c814758e2311f37945d172e +0 -0
  232. data/test/dummy/tmp/cache/assets/development/sprockets/d829c1f5535262183eb4dbd3717fadbe +0 -0
  233. data/test/dummy/tmp/cache/assets/development/sprockets/df90022afc0d52f16bc498be20a5967d +0 -0
  234. data/test/dummy/tmp/cache/assets/development/sprockets/e1c3eff1f3886da4c71a854d42077d10 +0 -0
  235. data/test/dummy/tmp/cache/assets/development/sprockets/e28b8ab6a5b3ff792f45d5a6b7d806bc +0 -0
  236. data/test/dummy/tmp/cache/assets/development/sprockets/e5290501d2ae519f0be938a3ad74e7e0 +0 -0
  237. data/test/dummy/tmp/cache/assets/development/sprockets/e540a9dc1aa001f8c4cba7a6b00f69d2 +0 -0
  238. data/test/dummy/tmp/cache/assets/development/sprockets/e6e78e14e8c962d31e6148ca56230af9 +0 -0
  239. data/test/dummy/tmp/cache/assets/development/sprockets/e6e9c7be83a484cbd624981e7c9ebe34 +0 -0
  240. data/test/dummy/tmp/cache/assets/development/sprockets/e9c0b89869d97e024565439b442bbe99 +0 -0
  241. data/test/dummy/tmp/cache/assets/development/sprockets/ea8966f9b9d68690ec2d1d8bdd59ffb5 +0 -0
  242. data/test/dummy/tmp/cache/assets/development/sprockets/ec01e589b2029448373e8112cfd62b6a +0 -0
  243. data/test/dummy/tmp/cache/assets/development/sprockets/ec620b3dd5b1db6aec410073ca71c6df +0 -0
  244. data/test/dummy/tmp/cache/assets/development/sprockets/edaf2543a96ee921c30a071b3a73036f +0 -0
  245. data/test/dummy/tmp/cache/assets/development/sprockets/edd24c59de6c00e4e68dbbdf2775984a +0 -0
  246. data/test/dummy/tmp/cache/assets/development/sprockets/eeb045e353d91335ea6ec8a8869c322f +0 -0
  247. data/test/dummy/tmp/cache/assets/development/sprockets/f100237ea34e5360da23f95cca21c340 +0 -0
  248. data/test/dummy/tmp/cache/assets/development/sprockets/f4bc04a453fa1e6b7454312a918fca27 +0 -0
  249. data/test/dummy/tmp/cache/assets/development/sprockets/f5016ef8a1200a0a022e1b2f8ac7edbb +0 -0
  250. data/test/dummy/tmp/cache/assets/development/sprockets/f7cf86568d1c692cb0a565614f282572 +0 -0
  251. data/test/dummy/tmp/cache/assets/development/sprockets/f96cec87308c4d1efa7993c38b770ba3 +0 -0
  252. data/test/dummy/tmp/cache/assets/development/sprockets/faa4ce8149d6e520b0a0855bfd8853e0 +0 -0
  253. data/test/dummy/tmp/cache/assets/development/sprockets/fb4793fb33ff5da9202b3b44e1997140 +0 -0
  254. data/test/dummy/tmp/cache/assets/development/sprockets/fba226eba4fa5dba560496c64a18009c +0 -0
  255. data/test/dummy/tmp/cache/assets/development/sprockets/fd06309bc284d80f9c2a30f32ed8df14 +0 -0
  256. data/test/dummy/tmp/cache/assets/test/sprockets/0a170bcd46595a69e9181ea5eb52ec6f +0 -0
  257. data/test/dummy/tmp/cache/assets/test/sprockets/853c1095ab6e7f4eba1f3406f0f3bba6 +0 -0
@@ -1,31 +1,31 @@
1
-  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.0ms) 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 (20150222152513)
4
+ Migrating to CreatePushTypeUsers (20150310192221)
5
5
   (0.1ms) BEGIN
6
6
  SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
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", "20150222152513"]]
9
-  (0.5ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150222152514)
7
+  (2.5ms) 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", "20150310192221"]]
9
+  (0.7ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20150310192222)
11
11
   (0.1ms) BEGIN
12
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
-  (0.3ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150222152515)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150310192222"]]
14
+  (0.4ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20150310192223)
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", "20150222152515"]]
21
-  (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150222152516)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150310192223"]]
21
+  (0.4ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150310192224)
23
23
   (0.1ms) BEGIN
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
-  (0.3ms) COMMIT
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
24
+  (2.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", "20150310192224"]]
26
+  (0.5ms) COMMIT
27
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
+  (1.8ms) 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.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
40
+  (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
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
@@ -49,7 +49,7 @@ WHERE c.contype = 'f'
49
49
  AND t3.nspname = ANY (current_schemas(false))
50
50
  ORDER BY c.conname
51
51
  
52
-  (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
52
+  (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
53
53
  FROM pg_constraint c
54
54
  JOIN pg_class t1 ON c.conrelid = t1.oid
55
55
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -75,306 +75,381 @@ 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
-  (0.9ms)  SELECT schemaname || '.' || tablename
78
+  (1.0ms)  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
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
-  (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
84
+  (0.3ms) 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::GET #index::with pagination: test_0004_anonymous
88
- ----------------------------------------------------------------------------------
86
+ --------------------------------------------------------------------------------------
87
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
88
+ --------------------------------------------------------------------------------------
89
89
   (0.1ms) SAVEPOINT active_record_1
90
90
   (0.1ms) RELEASE SAVEPOINT active_record_1
91
-  (0.0ms) SAVEPOINT active_record_1
91
+  (0.1ms) SAVEPOINT active_record_1
92
92
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.903316"], ["updated_at", "2015-03-10 19:22:25.903316"], ["file_ext", "png"], ["mime_type", "image/png"]]
94
94
   (0.1ms) RELEASE SAVEPOINT active_record_2
95
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"]]
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-03-10 19:22:25.908885"], ["updated_at", "2015-03-10 19:22:25.908885"], ["file_ext", "png"], ["mime_type", "image/png"]]
97
97
   (0.1ms) RELEASE SAVEPOINT active_record_2
98
98
   (0.1ms) SAVEPOINT active_record_2
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"]]
99
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:25.911569"], ["updated_at", "2015-03-10 19:22:25.911569"], ["file_ext", "png"], ["mime_type", "image/png"]]
100
100
   (0.1ms) RELEASE SAVEPOINT active_record_2
101
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"]]
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-03-10 19:22:25.914121"], ["updated_at", "2015-03-10 19:22:25.914121"], ["file_ext", "png"], ["mime_type", "image/png"]]
103
103
   (0.1ms) RELEASE SAVEPOINT active_record_2
104
104
   (0.1ms) SAVEPOINT active_record_2
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"]]
105
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:25.916602"], ["updated_at", "2015-03-10 19:22:25.916602"], ["file_ext", "png"], ["mime_type", "image/png"]]
106
106
   (0.1ms) RELEASE SAVEPOINT active_record_2
107
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"]]
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-03-10 19:22:25.919370"], ["updated_at", "2015-03-10 19:22:25.919370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
109
109
   (0.1ms) RELEASE SAVEPOINT active_record_2
110
110
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.921915"], ["updated_at", "2015-03-10 19:22:25.921915"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
112
112
   (0.1ms) RELEASE SAVEPOINT active_record_2
113
113
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.925283"], ["updated_at", "2015-03-10 19:22:25.925283"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
115
115
   (0.1ms) RELEASE SAVEPOINT active_record_2
116
116
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.928339"], ["updated_at", "2015-03-10 19:22:25.928339"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
118
118
   (0.1ms) RELEASE SAVEPOINT active_record_2
119
119
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.931065"], ["updated_at", "2015-03-10 19:22:25.931065"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
121
121
   (0.1ms) RELEASE SAVEPOINT active_record_2
122
122
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.933730"], ["updated_at", "2015-03-10 19:22:25.933730"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
124
124
   (0.1ms) RELEASE SAVEPOINT active_record_2
125
125
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.936293"], ["updated_at", "2015-03-10 19:22:25.936293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
127
127
   (0.1ms) RELEASE SAVEPOINT active_record_2
128
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"]]
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-03-10 19:22:25.938854"], ["updated_at", "2015-03-10 19:22:25.938854"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
130
130
   (0.1ms) RELEASE SAVEPOINT active_record_2
131
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"]]
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-03-10 19:22:25.941767"], ["updated_at", "2015-03-10 19:22:25.941767"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
133
133
   (0.1ms) RELEASE SAVEPOINT active_record_2
134
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"]]
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-03-10 19:22:25.944424"], ["updated_at", "2015-03-10 19:22:25.944424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
136
136
   (0.1ms) RELEASE SAVEPOINT active_record_2
137
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"]]
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-03-10 19:22:25.946963"], ["updated_at", "2015-03-10 19:22:25.946963"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
139
139
   (0.1ms) RELEASE SAVEPOINT active_record_2
140
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"]]
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-03-10 19:22:25.949544"], ["updated_at", "2015-03-10 19:22:25.949544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
142
142
   (0.1ms) RELEASE SAVEPOINT active_record_2
143
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"]]
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-03-10 19:22:25.952323"], ["updated_at", "2015-03-10 19:22:25.952323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
145
145
   (0.1ms) RELEASE SAVEPOINT active_record_2
146
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)
147
+ Parameters: {"filter"=>"file"}
148
+ PushType::Asset Load (0.7ms) 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
149
+  (0.3ms) 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 26ms (Views: 0.8ms | ActiveRecord: 0.9ms)
151
151
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
152
152
   (0.1ms) ROLLBACK
153
153
   (0.1ms) BEGIN
154
- ----------------------------------------------------------------------------------
155
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
156
- ----------------------------------------------------------------------------------
154
+ --------------------------------------------------------------------------------------
155
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
156
+ --------------------------------------------------------------------------------------
157
157
   (0.1ms) SAVEPOINT active_record_1
158
158
   (0.0ms) RELEASE SAVEPOINT active_record_1
159
159
   (0.0ms) SAVEPOINT active_record_1
160
160
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.989085"], ["updated_at", "2015-03-10 19:22:25.989085"], ["file_ext", "png"], ["mime_type", "image/png"]]
162
162
   (0.1ms) RELEASE SAVEPOINT active_record_2
163
163
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.991824"], ["updated_at", "2015-03-10 19:22:25.991824"], ["file_ext", "png"], ["mime_type", "image/png"]]
165
165
   (0.1ms) RELEASE SAVEPOINT active_record_2
166
166
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.994419"], ["updated_at", "2015-03-10 19:22:25.994419"], ["file_ext", "png"], ["mime_type", "image/png"]]
168
168
   (0.1ms) RELEASE SAVEPOINT active_record_2
169
169
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.996913"], ["updated_at", "2015-03-10 19:22:25.996913"], ["file_ext", "png"], ["mime_type", "image/png"]]
171
171
   (0.1ms) RELEASE SAVEPOINT active_record_2
172
172
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:25.999688"], ["updated_at", "2015-03-10 19:22:25.999688"], ["file_ext", "png"], ["mime_type", "image/png"]]
174
174
   (0.1ms) RELEASE SAVEPOINT active_record_2
175
175
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.002270"], ["updated_at", "2015-03-10 19:22:26.002270"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
177
177
   (0.1ms) RELEASE SAVEPOINT active_record_2
178
178
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.004759"], ["updated_at", "2015-03-10 19:22:26.004759"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
180
180
   (0.1ms) RELEASE SAVEPOINT active_record_2
181
181
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.007210"], ["updated_at", "2015-03-10 19:22:26.007210"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
183
183
   (0.1ms) RELEASE SAVEPOINT active_record_2
184
184
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.009744"], ["updated_at", "2015-03-10 19:22:26.009744"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
186
186
   (0.1ms) RELEASE SAVEPOINT active_record_2
187
187
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.012291"], ["updated_at", "2015-03-10 19:22:26.012291"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
189
189
   (0.1ms) RELEASE SAVEPOINT active_record_2
190
190
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.014785"], ["updated_at", "2015-03-10 19:22:26.014785"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
192
192
   (0.1ms) RELEASE SAVEPOINT active_record_2
193
193
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.017295"], ["updated_at", "2015-03-10 19:22:26.017295"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
195
195
   (0.1ms) RELEASE SAVEPOINT active_record_2
196
196
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.019843"], ["updated_at", "2015-03-10 19:22:26.019843"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
198
198
   (0.1ms) RELEASE SAVEPOINT active_record_2
199
199
   (0.1ms) SAVEPOINT active_record_2
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"]]
201
-  (0.1ms) RELEASE SAVEPOINT active_record_2
200
+ 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", "32"], ["created_at", "2015-03-10 19:22:26.022815"], ["updated_at", "2015-03-10 19:22:26.022815"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
201
+  (0.2ms) RELEASE SAVEPOINT active_record_2
202
202
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.031995"], ["updated_at", "2015-03-10 19:22:26.031995"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
204
204
   (0.1ms) RELEASE SAVEPOINT active_record_2
205
205
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.034562"], ["updated_at", "2015-03-10 19:22:26.034562"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
207
207
   (0.1ms) RELEASE SAVEPOINT active_record_2
208
208
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.037070"], ["updated_at", "2015-03-10 19:22:26.037070"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
210
210
   (0.1ms) RELEASE SAVEPOINT active_record_2
211
211
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.039491"], ["updated_at", "2015-03-10 19:22:26.039491"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
213
213
   (0.1ms) RELEASE SAVEPOINT active_record_2
214
214
  Processing by PushType::WysiwygMediaController#index as JSON
215
- Parameters: {"filter"=>"file", "page"=>2}
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
215
+ Parameters: {"filter"=>"file"}
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 0
217
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)
218
+ Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.5ms)
219
219
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
220
   (0.1ms) ROLLBACK
221
221
   (0.1ms) BEGIN
222
- ----------------------------------------------------------------------------------
223
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
224
- ----------------------------------------------------------------------------------
222
+ --------------------------------------------------------------------------------------
223
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
224
+ --------------------------------------------------------------------------------------
225
+  (0.1ms) SAVEPOINT active_record_1
226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
225
227
   (0.1ms) SAVEPOINT active_record_1
226
-  (0.0ms) RELEASE SAVEPOINT active_record_1
227
-  (0.0ms) SAVEPOINT active_record_1
228
228
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.060717"], ["updated_at", "2015-03-10 19:22:26.060717"], ["file_ext", "png"], ["mime_type", "image/png"]]
230
230
   (0.1ms) RELEASE SAVEPOINT active_record_2
231
231
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.063417"], ["updated_at", "2015-03-10 19:22:26.063417"], ["file_ext", "png"], ["mime_type", "image/png"]]
233
233
   (0.1ms) RELEASE SAVEPOINT active_record_2
234
234
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.066036"], ["updated_at", "2015-03-10 19:22:26.066036"], ["file_ext", "png"], ["mime_type", "image/png"]]
236
236
   (0.1ms) RELEASE SAVEPOINT active_record_2
237
237
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.068489"], ["updated_at", "2015-03-10 19:22:26.068489"], ["file_ext", "png"], ["mime_type", "image/png"]]
239
239
   (0.1ms) RELEASE SAVEPOINT active_record_2
240
240
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.071143"], ["updated_at", "2015-03-10 19:22:26.071143"], ["file_ext", "png"], ["mime_type", "image/png"]]
242
242
   (0.1ms) RELEASE SAVEPOINT active_record_2
243
243
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.073829"], ["updated_at", "2015-03-10 19:22:26.073829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
245
245
   (0.1ms) RELEASE SAVEPOINT active_record_2
246
246
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.076378"], ["updated_at", "2015-03-10 19:22:26.076378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
248
248
   (0.1ms) RELEASE SAVEPOINT active_record_2
249
249
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.078846"], ["updated_at", "2015-03-10 19:22:26.078846"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
251
251
   (0.1ms) RELEASE SAVEPOINT active_record_2
252
252
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.081440"], ["updated_at", "2015-03-10 19:22:26.081440"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
254
254
   (0.1ms) RELEASE SAVEPOINT active_record_2
255
255
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.084607"], ["updated_at", "2015-03-10 19:22:26.084607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
257
257
   (0.1ms) RELEASE SAVEPOINT active_record_2
258
258
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.087942"], ["updated_at", "2015-03-10 19:22:26.087942"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
260
260
   (0.1ms) RELEASE SAVEPOINT active_record_2
261
261
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.090819"], ["updated_at", "2015-03-10 19:22:26.090819"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
263
263
   (0.1ms) RELEASE SAVEPOINT active_record_2
264
264
   (0.1ms) SAVEPOINT active_record_2
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"]]
265
+ 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", "49"], ["created_at", "2015-03-10 19:22:26.093483"], ["updated_at", "2015-03-10 19:22:26.093483"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
266
266
   (0.1ms) RELEASE SAVEPOINT active_record_2
267
267
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.096728"], ["updated_at", "2015-03-10 19:22:26.096728"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
269
269
   (0.1ms) RELEASE SAVEPOINT active_record_2
270
270
   (0.1ms) SAVEPOINT active_record_2
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"]]
271
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.099491"], ["updated_at", "2015-03-10 19:22:26.099491"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
272
272
   (0.1ms) RELEASE SAVEPOINT active_record_2
273
273
   (0.1ms) SAVEPOINT active_record_2
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"]]
274
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.102067"], ["updated_at", "2015-03-10 19:22:26.102067"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
275
275
   (0.1ms) RELEASE SAVEPOINT active_record_2
276
276
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.104624"], ["updated_at", "2015-03-10 19:22:26.104624"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
278
278
   (0.1ms) RELEASE SAVEPOINT active_record_2
279
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"]]
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-03-10 19:22:26.107435"], ["updated_at", "2015-03-10 19:22:26.107435"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
281
281
   (0.1ms) RELEASE SAVEPOINT active_record_2
282
282
  Processing by PushType::WysiwygMediaController#index as JSON
283
- Parameters: {"filter"=>"file", "page"=>2}
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)
283
+ Parameters: {"filter"=>"file"}
284
+ 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
285
+  (0.3ms) 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 15ms (Views: 0.8ms | ActiveRecord: 0.6ms)
287
287
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
288
288
   (0.1ms) ROLLBACK
289
289
   (0.1ms) BEGIN
290
- ----------------------------------------------------------------------------------
291
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
292
- ----------------------------------------------------------------------------------
290
+ --------------------------------------------------------------------------------------
291
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
292
+ --------------------------------------------------------------------------------------
293
293
   (0.1ms) SAVEPOINT active_record_1
294
-  (0.1ms) RELEASE SAVEPOINT active_record_1
294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
295
295
   (0.1ms) SAVEPOINT active_record_1
296
296
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.131092"], ["updated_at", "2015-03-10 19:22:26.131092"], ["file_ext", "png"], ["mime_type", "image/png"]]
298
298
   (0.1ms) RELEASE SAVEPOINT active_record_2
299
299
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.133794"], ["updated_at", "2015-03-10 19:22:26.133794"], ["file_ext", "png"], ["mime_type", "image/png"]]
301
301
   (0.1ms) RELEASE SAVEPOINT active_record_2
302
302
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.136265"], ["updated_at", "2015-03-10 19:22:26.136265"], ["file_ext", "png"], ["mime_type", "image/png"]]
304
304
   (0.1ms) RELEASE SAVEPOINT active_record_2
305
305
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.138646"], ["updated_at", "2015-03-10 19:22:26.138646"], ["file_ext", "png"], ["mime_type", "image/png"]]
307
307
   (0.1ms) RELEASE SAVEPOINT active_record_2
308
308
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.141312"], ["updated_at", "2015-03-10 19:22:26.141312"], ["file_ext", "png"], ["mime_type", "image/png"]]
310
310
   (0.1ms) RELEASE SAVEPOINT active_record_2
311
311
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.143978"], ["updated_at", "2015-03-10 19:22:26.143978"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
313
313
   (0.1ms) RELEASE SAVEPOINT active_record_2
314
314
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.146511"], ["updated_at", "2015-03-10 19:22:26.146511"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
316
316
   (0.1ms) RELEASE SAVEPOINT active_record_2
317
317
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.149083"], ["updated_at", "2015-03-10 19:22:26.149083"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
319
319
   (0.1ms) RELEASE SAVEPOINT active_record_2
320
320
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.151536"], ["updated_at", "2015-03-10 19:22:26.151536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
322
322
   (0.1ms) RELEASE SAVEPOINT active_record_2
323
323
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.154161"], ["updated_at", "2015-03-10 19:22:26.154161"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
325
325
   (0.1ms) RELEASE SAVEPOINT active_record_2
326
326
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.156796"], ["updated_at", "2015-03-10 19:22:26.156796"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
328
328
   (0.1ms) RELEASE SAVEPOINT active_record_2
329
329
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.159367"], ["updated_at", "2015-03-10 19:22:26.159367"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
331
331
   (0.1ms) RELEASE SAVEPOINT active_record_2
332
332
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.161840"], ["updated_at", "2015-03-10 19:22:26.161840"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
334
334
   (0.1ms) RELEASE SAVEPOINT active_record_2
335
335
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.164478"], ["updated_at", "2015-03-10 19:22:26.164478"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
337
337
   (0.1ms) RELEASE SAVEPOINT active_record_2
338
338
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.167176"], ["updated_at", "2015-03-10 19:22:26.167176"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
340
340
   (0.1ms) RELEASE SAVEPOINT active_record_2
341
341
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.169722"], ["updated_at", "2015-03-10 19:22:26.169722"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
343
343
   (0.1ms) RELEASE SAVEPOINT active_record_2
344
344
   (0.1ms) SAVEPOINT active_record_2
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"]]
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-03-10 19:22:26.172288"], ["updated_at", "2015-03-10 19:22:26.172288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
346
346
   (0.1ms) RELEASE SAVEPOINT active_record_2
347
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"]]
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-03-10 19:22:26.174880"], ["updated_at", "2015-03-10 19:22:26.174880"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
349
349
   (0.1ms) RELEASE SAVEPOINT active_record_2
350
350
  Processing by PushType::WysiwygMediaController#index as JSON
351
- Parameters: {"filter"=>"file", "page"=>2}
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)
351
+ Parameters: {"filter"=>"file"}
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 0
353
+  (0.3ms) 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 39ms (Views: 0.8ms | ActiveRecord: 0.5ms)
355
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
356
+  (0.2ms) ROLLBACK
357
+  (0.1ms) BEGIN
358
+ -------------------------------------------------------------------------------------
359
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
360
+ -------------------------------------------------------------------------------------
361
+  (0.1ms) SAVEPOINT active_record_1
362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363
+  (0.0ms) SAVEPOINT active_record_1
364
+ Processing by PushType::WysiwygMediaController#create as JSON
365
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fec03b44a50 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-s2ssbv>>}}
366
+  (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", "73"], ["created_at", "2015-03-10 19:22:26.231718"], ["updated_at", "2015-03-10 19:22:26.231718"], ["file_ext", "png"], ["mime_type", "image/png"]]
368
+  (0.1ms) RELEASE SAVEPOINT active_record_2
369
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.3ms)
370
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
371
+  (0.1ms) ROLLBACK
372
+  (0.1ms) BEGIN
373
+ -------------------------------------------------------------------------------------
374
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
375
+ -------------------------------------------------------------------------------------
376
+  (0.1ms) SAVEPOINT active_record_1
377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
378
+  (0.1ms) SAVEPOINT active_record_1
379
+ Processing by PushType::WysiwygMediaController#create as JSON
380
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fec03965130 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-pvl1v2>>}}
381
+  (0.2ms) 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", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-03-10 19:22:26.240925"], ["updated_at", "2015-03-10 19:22:26.240925"], ["file_ext", "png"], ["mime_type", "image/png"]]
383
+  (0.1ms) RELEASE SAVEPOINT active_record_2
384
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
355
385
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
356
386
   (0.1ms) ROLLBACK
357
387
   (0.1ms) BEGIN
358
- ----------------------------------------------------------------------
359
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
360
- ----------------------------------------------------------------------
388
+ -------------------------------------------------------------------------------------
389
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
390
+ -------------------------------------------------------------------------------------
361
391
   (0.1ms) SAVEPOINT active_record_1
362
392
   (0.1ms) RELEASE SAVEPOINT active_record_1
363
393
   (0.1ms) SAVEPOINT active_record_1
394
+ Processing by PushType::WysiwygMediaController#create as JSON
395
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007febfdf2f5d0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-sezb2e>>}}
364
396
   (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"]]
397
+ 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", "75"], ["created_at", "2015-03-10 19:22:26.249228"], ["updated_at", "2015-03-10 19:22:26.249228"], ["file_ext", "png"], ["mime_type", "image/png"]]
366
398
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
400
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
401
+  (0.1ms) ROLLBACK
402
+  (0.1ms) BEGIN
403
+ ----------------------------------------------------------------------------------------
404
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
405
+ ----------------------------------------------------------------------------------------
406
+  (0.1ms) SAVEPOINT active_record_1
407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
408
+  (0.1ms) SAVEPOINT active_record_1
409
+ Processing by PushType::WysiwygMediaController#create as JSON
410
+ Parameters: {"asset"=>{}}
411
+  (0.1ms) SAVEPOINT active_record_2
412
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
413
+ Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
414
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
415
+  (0.1ms) ROLLBACK
416
+  (0.1ms) BEGIN
417
+ ----------------------------------------------------------------------------------------
418
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
419
+ ----------------------------------------------------------------------------------------
420
+  (0.1ms) SAVEPOINT active_record_1
421
+  (0.1ms) RELEASE SAVEPOINT active_record_1
422
+  (0.1ms) SAVEPOINT active_record_1
423
+ Processing by PushType::WysiwygMediaController#create as JSON
424
+ Parameters: {"asset"=>{}}
425
+  (0.1ms) SAVEPOINT active_record_2
426
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
427
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
428
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
429
+  (0.1ms) ROLLBACK
430
+  (0.1ms) BEGIN
431
+ ----------------------------------------------------------------------------------------
432
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
433
+ ----------------------------------------------------------------------------------------
434
+  (0.1ms) SAVEPOINT active_record_1
435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
436
+  (0.0ms) SAVEPOINT active_record_1
437
+ Processing by PushType::WysiwygMediaController#create as JSON
438
+ Parameters: {"asset"=>{}}
439
+  (0.1ms) SAVEPOINT active_record_2
440
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
441
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
367
442
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
368
443
   (0.1ms) ROLLBACK
369
444
   (0.1ms) BEGIN
370
445
  ----------------------------------------------------------------------
371
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
446
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
372
447
  ----------------------------------------------------------------------
373
448
   (0.1ms) SAVEPOINT active_record_1
374
449
   (0.1ms) RELEASE SAVEPOINT active_record_1
375
-  (0.1ms) SAVEPOINT active_record_1
450
+  (0.0ms) SAVEPOINT active_record_1
376
451
   (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"]]
452
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.278016"], ["updated_at", "2015-03-10 19:22:26.278016"], ["file_ext", "png"], ["mime_type", "image/png"]]
378
453
   (0.1ms) RELEASE SAVEPOINT active_record_2
379
454
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
380
455
   (0.1ms) ROLLBACK
@@ -383,46 +458,46 @@ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
383
458
  PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
384
459
  ----------------------------------------------------------------------
385
460
   (0.1ms) SAVEPOINT active_record_1
386
-  (0.0ms) RELEASE SAVEPOINT active_record_1
387
-  (0.0ms) SAVEPOINT active_record_1
461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
462
+  (0.1ms) SAVEPOINT active_record_1
388
463
   (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"]]
464
+ 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-03-10 19:22:26.286876"], ["updated_at", "2015-03-10 19:22:26.286876"], ["file_ext", "png"], ["mime_type", "image/png"]]
390
465
   (0.1ms) RELEASE SAVEPOINT active_record_2
391
466
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
392
467
   (0.1ms) ROLLBACK
393
468
   (0.1ms) BEGIN
394
469
  ----------------------------------------------------------------------
395
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
470
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
396
471
  ----------------------------------------------------------------------
397
-  (0.0ms) SAVEPOINT active_record_1
398
-  (0.0ms) RELEASE SAVEPOINT active_record_1
399
472
   (0.1ms) SAVEPOINT active_record_1
473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
474
+  (0.0ms) SAVEPOINT active_record_1
400
475
   (0.1ms) SAVEPOINT active_record_2
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"]]
476
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.294209"], ["updated_at", "2015-03-10 19:22:26.294209"], ["file_ext", "png"], ["mime_type", "image/png"]]
402
477
   (0.1ms) RELEASE SAVEPOINT active_record_2
403
478
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
404
479
   (0.1ms) ROLLBACK
405
480
   (0.1ms) BEGIN
406
481
  ----------------------------------------------------------------------
407
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
482
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
408
483
  ----------------------------------------------------------------------
409
-  (0.1ms) SAVEPOINT active_record_1
410
-  (0.1ms) RELEASE SAVEPOINT active_record_1
484
+  (0.0ms) SAVEPOINT active_record_1
485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
411
486
   (0.0ms) SAVEPOINT active_record_1
412
487
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "79"], ["created_at", "2015-03-10 19:22:26.301306"], ["updated_at", "2015-03-10 19:22:26.301306"], ["file_ext", "png"], ["mime_type", "image/png"]]
414
489
   (0.1ms) RELEASE SAVEPOINT active_record_2
415
490
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
416
491
   (0.1ms) ROLLBACK
417
492
   (0.1ms) BEGIN
418
493
  ----------------------------------------------------------------------
419
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
494
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
420
495
  ----------------------------------------------------------------------
421
-  (0.0ms) SAVEPOINT active_record_1
496
+  (0.1ms) SAVEPOINT active_record_1
422
497
   (0.0ms) RELEASE SAVEPOINT active_record_1
423
-  (0.0ms) SAVEPOINT active_record_1
498
+  (0.1ms) SAVEPOINT active_record_1
424
499
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "80"], ["created_at", "2015-03-10 19:22:26.308542"], ["updated_at", "2015-03-10 19:22:26.308542"], ["file_ext", "png"], ["mime_type", "image/png"]]
426
501
   (0.1ms) RELEASE SAVEPOINT active_record_2
427
502
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
428
503
   (0.1ms) ROLLBACK
@@ -432,788 +507,678 @@ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
432
507
  ----------------------------------------------------------------------
433
508
   (0.1ms) SAVEPOINT active_record_1
434
509
   (0.0ms) RELEASE SAVEPOINT active_record_1
435
-  (0.1ms) SAVEPOINT active_record_1
510
+  (0.0ms) SAVEPOINT active_record_1
436
511
   (0.1ms) SAVEPOINT active_record_2
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"]]
512
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.315762"], ["updated_at", "2015-03-10 19:22:26.315762"], ["file_ext", "png"], ["mime_type", "image/png"]]
438
513
   (0.1ms) RELEASE SAVEPOINT active_record_2
439
514
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
440
-  (0.2ms) ROLLBACK
515
+  (0.1ms) ROLLBACK
441
516
   (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"
517
+ ----------------------------------------------------------------------
518
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
519
+ ----------------------------------------------------------------------
520
+  (0.0ms) SAVEPOINT active_record_1
521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
522
+  (0.0ms) SAVEPOINT active_record_1
523
+  (0.1ms) SAVEPOINT active_record_2
524
+ 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", "82"], ["created_at", "2015-03-10 19:22:26.322540"], ["updated_at", "2015-03-10 19:22:26.322540"], ["file_ext", "png"], ["mime_type", "image/png"]]
525
+  (0.1ms) RELEASE SAVEPOINT active_record_2
456
526
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
457
527
   (0.1ms) ROLLBACK
458
528
   (0.1ms) BEGIN
459
- -----------------------------------------------------------------------
460
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
461
- -----------------------------------------------------------------------
529
+ ---------------------------------------------------------------------------------------
530
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
531
+ ---------------------------------------------------------------------------------------
462
532
   (0.1ms) SAVEPOINT active_record_1
463
533
   (0.1ms) RELEASE SAVEPOINT active_record_1
464
534
   (0.1ms) SAVEPOINT active_record_1
465
535
   (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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-03-10 19:22:26.331116"], ["updated_at", "2015-03-10 19:22:26.331116"], ["file_ext", "png"], ["mime_type", "image/png"]]
467
537
   (0.1ms) RELEASE SAVEPOINT active_record_2
468
538
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-03-10 19:22:26.333963"], ["updated_at", "2015-03-10 19:22:26.333963"], ["file_ext", "png"], ["mime_type", "image/png"]]
470
540
   (0.1ms) RELEASE SAVEPOINT active_record_2
471
541
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-03-10 19:22:26.336624"], ["updated_at", "2015-03-10 19:22:26.336624"], ["file_ext", "png"], ["mime_type", "image/png"]]
473
543
   (0.1ms) RELEASE SAVEPOINT active_record_2
474
544
   (0.1ms) SAVEPOINT active_record_2
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"]]
545
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.339252"], ["updated_at", "2015-03-10 19:22:26.339252"], ["file_ext", "png"], ["mime_type", "image/png"]]
489
546
   (0.1ms) RELEASE SAVEPOINT active_record_2
490
547
   (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", "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"]]
548
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.342303"], ["updated_at", "2015-03-10 19:22:26.342303"], ["file_ext", "png"], ["mime_type", "image/png"]]
492
549
   (0.1ms) RELEASE SAVEPOINT active_record_2
493
550
   (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", "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"]]
551
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.345017"], ["updated_at", "2015-03-10 19:22:26.345017"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
495
552
   (0.1ms) RELEASE SAVEPOINT active_record_2
496
553
   (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", "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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-03-10 19:22:26.347665"], ["updated_at", "2015-03-10 19:22:26.347665"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
498
555
   (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
556
+  (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-03-10 19:22:26.350183"], ["updated_at", "2015-03-10 19:22:26.350183"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
558
+  (0.1ms) RELEASE SAVEPOINT active_record_2
509
559
   (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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-03-10 19:22:26.352857"], ["updated_at", "2015-03-10 19:22:26.352857"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
511
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
512
562
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-03-10 19:22:26.355385"], ["updated_at", "2015-03-10 19:22:26.355385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
514
564
   (0.1ms) RELEASE SAVEPOINT active_record_2
515
565
   (0.1ms) SAVEPOINT active_record_2
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"]]
566
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.358160"], ["updated_at", "2015-03-10 19:22:26.358160"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
517
567
   (0.1ms) RELEASE SAVEPOINT active_record_2
518
568
   (0.1ms) SAVEPOINT active_record_2
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"]]
569
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.360831"], ["updated_at", "2015-03-10 19:22:26.360831"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
520
570
   (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
571
+  (0.1ms) SAVEPOINT active_record_2
572
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.363629"], ["updated_at", "2015-03-10 19:22:26.363629"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
573
+  (0.1ms) RELEASE SAVEPOINT active_record_2
531
574
   (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"]]
575
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.366253"], ["updated_at", "2015-03-10 19:22:26.366253"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
533
576
   (0.1ms) RELEASE SAVEPOINT active_record_2
534
577
   (0.1ms) SAVEPOINT active_record_2
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"]]
578
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.369046"], ["updated_at", "2015-03-10 19:22:26.369046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
536
579
   (0.1ms) RELEASE SAVEPOINT active_record_2
537
580
   (0.1ms) SAVEPOINT active_record_2
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"]]
581
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-03-10 19:22:26.371632"], ["updated_at", "2015-03-10 19:22:26.371632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
539
582
   (0.1ms) RELEASE SAVEPOINT active_record_2
540
583
   (0.1ms) SAVEPOINT active_record_2
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"]]
584
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-03-10 19:22:26.374535"], ["updated_at", "2015-03-10 19:22:26.374535"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
542
585
   (0.1ms) RELEASE SAVEPOINT active_record_2
543
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
586
+  (0.1ms) SAVEPOINT active_record_2
587
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-03-10 19:22:26.377260"], ["updated_at", "2015-03-10 19:22:26.377260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
588
+  (0.1ms) RELEASE SAVEPOINT active_record_2
589
+ Processing by PushType::WysiwygMediaController#index as JSON
590
+ Parameters: {"filter"=>"image"}
591
+ 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
592
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
593
+ Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.5ms)
544
594
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
545
595
   (0.1ms) ROLLBACK
546
596
   (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
597
+ ---------------------------------------------------------------------------------------
598
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
599
+ ---------------------------------------------------------------------------------------
552
600
   (0.0ms) SAVEPOINT active_record_1
601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
602
+  (0.1ms) SAVEPOINT active_record_1
553
603
   (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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-03-10 19:22:26.400311"], ["updated_at", "2015-03-10 19:22:26.400311"], ["file_ext", "png"], ["mime_type", "image/png"]]
555
605
   (0.1ms) RELEASE SAVEPOINT active_record_2
556
606
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-03-10 19:22:26.403317"], ["updated_at", "2015-03-10 19:22:26.403317"], ["file_ext", "png"], ["mime_type", "image/png"]]
558
608
   (0.1ms) RELEASE SAVEPOINT active_record_2
559
609
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-03-10 19:22:26.406131"], ["updated_at", "2015-03-10 19:22:26.406131"], ["file_ext", "png"], ["mime_type", "image/png"]]
561
611
   (0.1ms) RELEASE SAVEPOINT active_record_2
562
612
   (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"]]
613
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.408659"], ["updated_at", "2015-03-10 19:22:26.408659"], ["file_ext", "png"], ["mime_type", "image/png"]]
564
614
   (0.1ms) RELEASE SAVEPOINT active_record_2
565
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
566
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
567
-  (0.1ms) ROLLBACK
568
-  (0.0ms) BEGIN
569
- ---------------------------------------------------------------------------------------
570
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
571
- ---------------------------------------------------------------------------------------
572
-  (0.0ms) SAVEPOINT active_record_1
573
-  (0.0ms) RELEASE SAVEPOINT active_record_1
574
-  (0.0ms) SAVEPOINT active_record_1
615
+  (0.1ms) SAVEPOINT active_record_2
616
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.411179"], ["updated_at", "2015-03-10 19:22:26.411179"], ["file_ext", "png"], ["mime_type", "image/png"]]
617
+  (0.1ms) RELEASE SAVEPOINT active_record_2
575
618
   (0.1ms) SAVEPOINT active_record_2
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"]]
619
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.413656"], ["updated_at", "2015-03-10 19:22:26.413656"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
577
620
   (0.1ms) RELEASE SAVEPOINT active_record_2
578
621
   (0.1ms) SAVEPOINT active_record_2
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"]]
622
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.416037"], ["updated_at", "2015-03-10 19:22:26.416037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
580
623
   (0.1ms) RELEASE SAVEPOINT active_record_2
581
624
   (0.1ms) SAVEPOINT active_record_2
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"]]
625
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.418392"], ["updated_at", "2015-03-10 19:22:26.418392"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
583
626
   (0.1ms) RELEASE SAVEPOINT active_record_2
584
627
   (0.1ms) SAVEPOINT active_record_2
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"]]
628
+ 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", "109"], ["created_at", "2015-03-10 19:22:26.420709"], ["updated_at", "2015-03-10 19:22:26.420709"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
586
629
   (0.1ms) RELEASE SAVEPOINT active_record_2
587
630
   (0.1ms) SAVEPOINT active_record_2
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"]]
631
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.423310"], ["updated_at", "2015-03-10 19:22:26.423310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
589
632
   (0.1ms) RELEASE SAVEPOINT active_record_2
590
633
   (0.1ms) SAVEPOINT active_record_2
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"]]
634
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.425776"], ["updated_at", "2015-03-10 19:22:26.425776"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
592
635
   (0.1ms) RELEASE SAVEPOINT active_record_2
593
636
   (0.1ms) SAVEPOINT active_record_2
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"]]
637
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.428082"], ["updated_at", "2015-03-10 19:22:26.428082"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
595
638
   (0.1ms) RELEASE SAVEPOINT active_record_2
596
639
   (0.1ms) SAVEPOINT active_record_2
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"]]
640
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.430519"], ["updated_at", "2015-03-10 19:22:26.430519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
598
641
   (0.1ms) RELEASE SAVEPOINT active_record_2
599
642
   (0.1ms) SAVEPOINT active_record_2
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"]]
643
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.433223"], ["updated_at", "2015-03-10 19:22:26.433223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
601
644
   (0.1ms) RELEASE SAVEPOINT active_record_2
602
645
   (0.1ms) SAVEPOINT active_record_2
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"]]
646
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.435807"], ["updated_at", "2015-03-10 19:22:26.435807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
604
647
   (0.1ms) RELEASE SAVEPOINT active_record_2
605
648
   (0.1ms) SAVEPOINT active_record_2
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"]]
649
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.438312"], ["updated_at", "2015-03-10 19:22:26.438312"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
607
650
   (0.1ms) RELEASE SAVEPOINT active_record_2
608
651
   (0.1ms) SAVEPOINT active_record_2
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"]]
652
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.440849"], ["updated_at", "2015-03-10 19:22:26.440849"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
610
653
   (0.1ms) RELEASE SAVEPOINT active_record_2
611
654
   (0.1ms) SAVEPOINT active_record_2
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"]]
655
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.443358"], ["updated_at", "2015-03-10 19:22:26.443358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
613
656
   (0.1ms) RELEASE SAVEPOINT active_record_2
657
+ Processing by PushType::WysiwygMediaController#index as JSON
658
+ Parameters: {"filter"=>"image"}
659
+ 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
660
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
661
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
662
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
663
+  (0.1ms) ROLLBACK
664
+  (0.1ms) BEGIN
665
+ ---------------------------------------------------------------------------------------
666
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
667
+ ---------------------------------------------------------------------------------------
668
+  (0.1ms) SAVEPOINT active_record_1
669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
670
+  (0.1ms) SAVEPOINT active_record_1
614
671
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-03-10 19:22:26.461703"], ["updated_at", "2015-03-10 19:22:26.461703"], ["file_ext", "png"], ["mime_type", "image/png"]]
616
673
   (0.1ms) RELEASE SAVEPOINT active_record_2
617
674
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-03-10 19:22:26.464313"], ["updated_at", "2015-03-10 19:22:26.464313"], ["file_ext", "png"], ["mime_type", "image/png"]]
619
676
   (0.1ms) RELEASE SAVEPOINT active_record_2
620
677
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-03-10 19:22:26.466731"], ["updated_at", "2015-03-10 19:22:26.466731"], ["file_ext", "png"], ["mime_type", "image/png"]]
622
679
   (0.1ms) RELEASE SAVEPOINT active_record_2
623
680
   (0.1ms) SAVEPOINT active_record_2
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"]]
681
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.469100"], ["updated_at", "2015-03-10 19:22:26.469100"], ["file_ext", "png"], ["mime_type", "image/png"]]
625
682
   (0.1ms) RELEASE SAVEPOINT active_record_2
626
683
   (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", "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"]]
628
-  (0.1ms) RELEASE SAVEPOINT active_record_2
629
- Processing by PushType::WysiwygMediaController#index as JSON
630
- Parameters: {"filter"=>"image"}
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
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)
634
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
635
-  (0.2ms) ROLLBACK
636
-  (0.1ms) BEGIN
637
- ---------------------------------------------------------------------------------------
638
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
639
- ---------------------------------------------------------------------------------------
640
-  (0.1ms) SAVEPOINT active_record_1
641
-  (0.0ms) RELEASE SAVEPOINT active_record_1
642
-  (0.0ms) SAVEPOINT active_record_1
643
-  (0.1ms) SAVEPOINT active_record_2
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"]]
645
-  (0.1ms) RELEASE SAVEPOINT active_record_2
646
-  (0.1ms) SAVEPOINT active_record_2
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"]]
648
-  (0.1ms) RELEASE SAVEPOINT active_record_2
649
-  (0.1ms) SAVEPOINT active_record_2
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"]]
651
-  (0.1ms) RELEASE SAVEPOINT active_record_2
652
-  (0.1ms) SAVEPOINT active_record_2
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"]]
684
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.471791"], ["updated_at", "2015-03-10 19:22:26.471791"], ["file_ext", "png"], ["mime_type", "image/png"]]
654
685
   (0.1ms) RELEASE SAVEPOINT active_record_2
655
686
   (0.1ms) SAVEPOINT active_record_2
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"]]
687
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.474237"], ["updated_at", "2015-03-10 19:22:26.474237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
657
688
   (0.1ms) RELEASE SAVEPOINT active_record_2
658
689
   (0.1ms) SAVEPOINT active_record_2
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"]]
690
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.476812"], ["updated_at", "2015-03-10 19:22:26.476812"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
660
691
   (0.1ms) RELEASE SAVEPOINT active_record_2
661
692
   (0.1ms) SAVEPOINT active_record_2
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"]]
693
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.479249"], ["updated_at", "2015-03-10 19:22:26.479249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
663
694
   (0.1ms) RELEASE SAVEPOINT active_record_2
664
695
   (0.1ms) SAVEPOINT active_record_2
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"]]
696
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.481801"], ["updated_at", "2015-03-10 19:22:26.481801"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
666
697
   (0.1ms) RELEASE SAVEPOINT active_record_2
667
698
   (0.1ms) SAVEPOINT active_record_2
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"]]
699
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.484348"], ["updated_at", "2015-03-10 19:22:26.484348"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
669
700
   (0.1ms) RELEASE SAVEPOINT active_record_2
670
701
   (0.1ms) SAVEPOINT active_record_2
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"]]
702
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.486880"], ["updated_at", "2015-03-10 19:22:26.486880"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
672
703
   (0.1ms) RELEASE SAVEPOINT active_record_2
673
704
   (0.1ms) SAVEPOINT active_record_2
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"]]
705
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.489209"], ["updated_at", "2015-03-10 19:22:26.489209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
675
706
   (0.1ms) RELEASE SAVEPOINT active_record_2
676
707
   (0.1ms) SAVEPOINT active_record_2
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"]]
708
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.491663"], ["updated_at", "2015-03-10 19:22:26.491663"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
678
709
   (0.1ms) RELEASE SAVEPOINT active_record_2
679
710
   (0.1ms) SAVEPOINT active_record_2
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"]]
711
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.494292"], ["updated_at", "2015-03-10 19:22:26.494292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
681
712
   (0.1ms) RELEASE SAVEPOINT active_record_2
682
713
   (0.1ms) SAVEPOINT active_record_2
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"]]
714
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.497019"], ["updated_at", "2015-03-10 19:22:26.497019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
684
715
   (0.1ms) RELEASE SAVEPOINT active_record_2
685
716
   (0.1ms) SAVEPOINT active_record_2
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"]]
717
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.499467"], ["updated_at", "2015-03-10 19:22:26.499467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
687
718
   (0.1ms) RELEASE SAVEPOINT active_record_2
688
719
   (0.1ms) SAVEPOINT active_record_2
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"]]
720
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.501887"], ["updated_at", "2015-03-10 19:22:26.501887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
690
721
   (0.1ms) RELEASE SAVEPOINT active_record_2
691
722
   (0.1ms) SAVEPOINT active_record_2
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"]]
723
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.504451"], ["updated_at", "2015-03-10 19:22:26.504451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
693
724
   (0.1ms) RELEASE SAVEPOINT active_record_2
694
-  (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", "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"]]
696
-  (0.1ms) RELEASE SAVEPOINT active_record_2
697
725
  Processing by PushType::WysiwygMediaController#index as JSON
698
726
  Parameters: {"filter"=>"image"}
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
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)
702
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
703
-  (0.1ms) ROLLBACK
704
-  (0.1ms) BEGIN
727
+ 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
728
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
729
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
730
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
731
+  (0.1ms) ROLLBACK
732
+  (0.1ms) BEGIN
705
733
  ---------------------------------------------------------------------------------------
706
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
734
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
707
735
  ---------------------------------------------------------------------------------------
708
-  (0.1ms) SAVEPOINT active_record_1
709
-  (0.1ms) RELEASE SAVEPOINT active_record_1
710
-  (0.0ms) SAVEPOINT active_record_1
711
-  (0.1ms) SAVEPOINT active_record_2
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"]]
713
-  (0.1ms) RELEASE SAVEPOINT active_record_2
736
+  (0.1ms) SAVEPOINT active_record_1
737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
738
+  (0.0ms) SAVEPOINT active_record_1
714
739
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-03-10 19:22:26.522794"], ["updated_at", "2015-03-10 19:22:26.522794"], ["file_ext", "png"], ["mime_type", "image/png"]]
716
741
   (0.1ms) RELEASE SAVEPOINT active_record_2
717
742
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-03-10 19:22:26.525424"], ["updated_at", "2015-03-10 19:22:26.525424"], ["file_ext", "png"], ["mime_type", "image/png"]]
719
744
   (0.1ms) RELEASE SAVEPOINT active_record_2
720
745
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "139"], ["created_at", "2015-03-10 19:22:26.528132"], ["updated_at", "2015-03-10 19:22:26.528132"], ["file_ext", "png"], ["mime_type", "image/png"]]
722
747
   (0.1ms) RELEASE SAVEPOINT active_record_2
723
748
   (0.1ms) SAVEPOINT active_record_2
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"]]
749
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.530547"], ["updated_at", "2015-03-10 19:22:26.530547"], ["file_ext", "png"], ["mime_type", "image/png"]]
725
750
   (0.1ms) RELEASE SAVEPOINT active_record_2
726
751
   (0.1ms) SAVEPOINT active_record_2
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"]]
752
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.533125"], ["updated_at", "2015-03-10 19:22:26.533125"], ["file_ext", "png"], ["mime_type", "image/png"]]
728
753
   (0.1ms) RELEASE SAVEPOINT active_record_2
729
754
   (0.1ms) SAVEPOINT active_record_2
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"]]
755
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.535577"], ["updated_at", "2015-03-10 19:22:26.535577"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
731
756
   (0.1ms) RELEASE SAVEPOINT active_record_2
732
757
   (0.1ms) SAVEPOINT active_record_2
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"]]
758
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.538109"], ["updated_at", "2015-03-10 19:22:26.538109"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
734
759
   (0.1ms) RELEASE SAVEPOINT active_record_2
735
760
   (0.1ms) SAVEPOINT active_record_2
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"]]
761
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.540620"], ["updated_at", "2015-03-10 19:22:26.540620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
737
762
   (0.1ms) RELEASE SAVEPOINT active_record_2
738
763
   (0.1ms) SAVEPOINT active_record_2
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"]]
764
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.543093"], ["updated_at", "2015-03-10 19:22:26.543093"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
740
765
   (0.1ms) RELEASE SAVEPOINT active_record_2
741
766
   (0.1ms) SAVEPOINT active_record_2
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"]]
767
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.545601"], ["updated_at", "2015-03-10 19:22:26.545601"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
743
768
   (0.1ms) RELEASE SAVEPOINT active_record_2
744
769
   (0.1ms) SAVEPOINT active_record_2
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"]]
770
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.547988"], ["updated_at", "2015-03-10 19:22:26.547988"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
746
771
   (0.1ms) RELEASE SAVEPOINT active_record_2
747
772
   (0.1ms) SAVEPOINT active_record_2
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"]]
773
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.550409"], ["updated_at", "2015-03-10 19:22:26.550409"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
749
774
   (0.1ms) RELEASE SAVEPOINT active_record_2
750
775
   (0.1ms) SAVEPOINT active_record_2
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"]]
776
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.552793"], ["updated_at", "2015-03-10 19:22:26.552793"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
752
777
   (0.1ms) RELEASE SAVEPOINT active_record_2
753
778
   (0.1ms) SAVEPOINT active_record_2
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"]]
779
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.555322"], ["updated_at", "2015-03-10 19:22:26.555322"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
755
780
   (0.1ms) RELEASE SAVEPOINT active_record_2
756
781
   (0.1ms) SAVEPOINT active_record_2
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"]]
782
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.558068"], ["updated_at", "2015-03-10 19:22:26.558068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
758
783
   (0.1ms) RELEASE SAVEPOINT active_record_2
759
784
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-03-10 19:22:26.560772"], ["updated_at", "2015-03-10 19:22:26.560772"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
761
786
   (0.1ms) RELEASE SAVEPOINT active_record_2
762
787
   (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", "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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-03-10 19:22:26.563174"], ["updated_at", "2015-03-10 19:22:26.563174"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
764
789
   (0.1ms) RELEASE SAVEPOINT active_record_2
765
- Processing by PushType::WysiwygMediaController#index as JSON
766
- Parameters: {"filter"=>"image"}
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
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)
770
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
771
-  (0.1ms) ROLLBACK
772
-  (0.1ms) BEGIN
773
- ---------------------------------------------------------------------------------------
774
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
775
- ---------------------------------------------------------------------------------------
776
-  (0.1ms) SAVEPOINT active_record_1
777
-  (0.1ms) RELEASE SAVEPOINT active_record_1
778
-  (0.1ms) SAVEPOINT active_record_1
779
790
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-03-10 19:22:26.565573"], ["updated_at", "2015-03-10 19:22:26.565573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
781
792
   (0.1ms) RELEASE SAVEPOINT active_record_2
793
+ Processing by PushType::WysiwygMediaController#index as JSON
794
+ Parameters: {"filter"=>"image"}
795
+ 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
796
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
797
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
798
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
799
+  (0.1ms) ROLLBACK
800
+  (0.1ms) BEGIN
801
+ ----------------------------------------------------------------------------------
802
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
803
+ ----------------------------------------------------------------------------------
804
+  (0.1ms) SAVEPOINT active_record_1
805
+  (0.1ms) RELEASE SAVEPOINT active_record_1
806
+  (0.1ms) SAVEPOINT active_record_1
782
807
   (0.1ms) SAVEPOINT active_record_2
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"]]
808
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.584732"], ["updated_at", "2015-03-10 19:22:26.584732"], ["file_ext", "png"], ["mime_type", "image/png"]]
784
809
   (0.1ms) RELEASE SAVEPOINT active_record_2
785
810
   (0.1ms) SAVEPOINT active_record_2
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"]]
811
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.587317"], ["updated_at", "2015-03-10 19:22:26.587317"], ["file_ext", "png"], ["mime_type", "image/png"]]
787
812
   (0.1ms) RELEASE SAVEPOINT active_record_2
788
813
   (0.1ms) SAVEPOINT active_record_2
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"]]
814
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.589729"], ["updated_at", "2015-03-10 19:22:26.589729"], ["file_ext", "png"], ["mime_type", "image/png"]]
790
815
   (0.1ms) RELEASE SAVEPOINT active_record_2
791
816
   (0.1ms) SAVEPOINT active_record_2
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"]]
817
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.592127"], ["updated_at", "2015-03-10 19:22:26.592127"], ["file_ext", "png"], ["mime_type", "image/png"]]
793
818
   (0.1ms) RELEASE SAVEPOINT active_record_2
794
819
   (0.1ms) SAVEPOINT active_record_2
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"]]
820
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.594741"], ["updated_at", "2015-03-10 19:22:26.594741"], ["file_ext", "png"], ["mime_type", "image/png"]]
796
821
   (0.1ms) RELEASE SAVEPOINT active_record_2
797
822
   (0.1ms) SAVEPOINT active_record_2
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"]]
823
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.597934"], ["updated_at", "2015-03-10 19:22:26.597934"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
799
824
   (0.1ms) RELEASE SAVEPOINT active_record_2
800
825
   (0.1ms) SAVEPOINT active_record_2
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"]]
826
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.600427"], ["updated_at", "2015-03-10 19:22:26.600427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
802
827
   (0.1ms) RELEASE SAVEPOINT active_record_2
803
828
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-03-10 19:22:26.602829"], ["updated_at", "2015-03-10 19:22:26.602829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
805
830
   (0.1ms) RELEASE SAVEPOINT active_record_2
806
831
   (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", "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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-03-10 19:22:26.605298"], ["updated_at", "2015-03-10 19:22:26.605298"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
808
833
   (0.1ms) RELEASE SAVEPOINT active_record_2
809
834
   (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", "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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-03-10 19:22:26.607775"], ["updated_at", "2015-03-10 19:22:26.607775"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
811
836
   (0.1ms) RELEASE SAVEPOINT active_record_2
812
837
   (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", "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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-03-10 19:22:26.610278"], ["updated_at", "2015-03-10 19:22:26.610278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
814
839
   (0.1ms) RELEASE SAVEPOINT active_record_2
815
840
   (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", "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"]]
841
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.612715"], ["updated_at", "2015-03-10 19:22:26.612715"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
817
842
   (0.1ms) RELEASE SAVEPOINT active_record_2
818
843
   (0.1ms) SAVEPOINT active_record_2
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"]]
844
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.615282"], ["updated_at", "2015-03-10 19:22:26.615282"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
820
845
   (0.1ms) RELEASE SAVEPOINT active_record_2
821
846
   (0.1ms) SAVEPOINT active_record_2
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"]]
847
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.617905"], ["updated_at", "2015-03-10 19:22:26.617905"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
823
848
   (0.1ms) RELEASE SAVEPOINT active_record_2
824
849
   (0.1ms) SAVEPOINT active_record_2
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"]]
850
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.620497"], ["updated_at", "2015-03-10 19:22:26.620497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
826
851
   (0.1ms) RELEASE SAVEPOINT active_record_2
827
852
   (0.1ms) SAVEPOINT active_record_2
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"]]
853
+ 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", "170"], ["created_at", "2015-03-10 19:22:26.622987"], ["updated_at", "2015-03-10 19:22:26.622987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
829
854
   (0.1ms) RELEASE SAVEPOINT active_record_2
830
855
   (0.1ms) SAVEPOINT active_record_2
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"]]
856
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.625621"], ["updated_at", "2015-03-10 19:22:26.625621"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
832
857
   (0.1ms) RELEASE SAVEPOINT active_record_2
833
- Processing by PushType::WysiwygMediaController#index as JSON
834
- Parameters: {"filter"=>"image"}
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
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)
838
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
839
-  (0.1ms) ROLLBACK
840
-  (0.1ms) BEGIN
841
- ----------------------------------------------------------------------------------------
842
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
843
- ----------------------------------------------------------------------------------------
844
-  (0.1ms) SAVEPOINT active_record_1
845
-  (0.1ms) RELEASE SAVEPOINT active_record_1
846
-  (0.1ms) SAVEPOINT active_record_1
847
- Processing by PushType::WysiwygMediaController#create as JSON
848
- Parameters: {"asset"=>{}}
849
858
   (0.1ms) SAVEPOINT active_record_2
850
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
851
- Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
852
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
853
-  (0.1ms) ROLLBACK
854
-  (0.1ms) BEGIN
855
- ----------------------------------------------------------------------------------------
856
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
857
- ----------------------------------------------------------------------------------------
858
-  (0.1ms) SAVEPOINT active_record_1
859
-  (0.0ms) RELEASE SAVEPOINT active_record_1
860
-  (0.0ms) SAVEPOINT active_record_1
861
- Processing by PushType::WysiwygMediaController#create as JSON
862
- Parameters: {"asset"=>{}}
863
-  (0.1ms) SAVEPOINT active_record_2
864
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
865
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
866
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
867
-  (0.1ms) ROLLBACK
868
-  (0.1ms) BEGIN
869
- ----------------------------------------------------------------------------------------
870
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
871
- ----------------------------------------------------------------------------------------
872
-  (0.1ms) SAVEPOINT active_record_1
873
-  (0.0ms) RELEASE SAVEPOINT active_record_1
874
-  (0.0ms) SAVEPOINT active_record_1
875
- Processing by PushType::WysiwygMediaController#create as JSON
876
- Parameters: {"asset"=>{}}
877
-  (0.1ms) 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>>}}
891
-  (0.1ms) SAVEPOINT active_record_2
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"]]
859
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.628218"], ["updated_at", "2015-03-10 19:22:26.628218"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
893
860
   (0.1ms) RELEASE SAVEPOINT active_record_2
894
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
861
+ Processing by PushType::WysiwygMediaController#index as JSON
862
+ Parameters: {"filter"=>"file", "page"=>2}
863
+ 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
864
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
865
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
895
866
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
896
867
   (0.1ms) ROLLBACK
897
868
   (0.1ms) BEGIN
898
- -------------------------------------------------------------------------------------
899
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
900
- -------------------------------------------------------------------------------------
869
+ ----------------------------------------------------------------------------------
870
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
871
+ ----------------------------------------------------------------------------------
901
872
   (0.1ms) SAVEPOINT active_record_1
902
873
   (0.1ms) RELEASE SAVEPOINT active_record_1
903
874
   (0.1ms) SAVEPOINT active_record_1
904
- Processing by PushType::WysiwygMediaController#create as JSON
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>>}}
906
875
   (0.1ms) SAVEPOINT active_record_2
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
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.639439"], ["updated_at", "2015-03-10 19:22:26.639439"], ["file_ext", "png"], ["mime_type", "image/png"]]
908
877
   (0.1ms) RELEASE SAVEPOINT active_record_2
909
- Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
910
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
911
-  (0.1ms) ROLLBACK
912
-  (0.1ms) BEGIN
913
- -------------------------------------------------------------------------------------
914
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
915
- -------------------------------------------------------------------------------------
916
-  (0.1ms) SAVEPOINT active_record_1
917
-  (0.1ms) RELEASE SAVEPOINT active_record_1
918
-  (0.1ms) SAVEPOINT active_record_1
919
- Processing by PushType::WysiwygMediaController#create as JSON
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>>}}
921
878
   (0.1ms) SAVEPOINT active_record_2
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"]]
879
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.642048"], ["updated_at", "2015-03-10 19:22:26.642048"], ["file_ext", "png"], ["mime_type", "image/png"]]
923
880
   (0.1ms) RELEASE SAVEPOINT active_record_2
924
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
925
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
926
-  (0.1ms) ROLLBACK
927
-  (0.1ms) BEGIN
928
- --------------------------------------------------------------------------------------
929
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
930
- --------------------------------------------------------------------------------------
931
-  (0.1ms) SAVEPOINT active_record_1
932
-  (0.1ms) RELEASE SAVEPOINT active_record_1
933
-  (0.1ms) SAVEPOINT active_record_1
934
881
   (0.1ms) SAVEPOINT active_record_2
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"]]
882
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.644568"], ["updated_at", "2015-03-10 19:22:26.644568"], ["file_ext", "png"], ["mime_type", "image/png"]]
936
883
   (0.1ms) RELEASE SAVEPOINT active_record_2
937
884
   (0.1ms) SAVEPOINT active_record_2
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"]]
885
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.647019"], ["updated_at", "2015-03-10 19:22:26.647019"], ["file_ext", "png"], ["mime_type", "image/png"]]
939
886
   (0.1ms) RELEASE SAVEPOINT active_record_2
940
887
   (0.1ms) SAVEPOINT active_record_2
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"]]
888
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.649517"], ["updated_at", "2015-03-10 19:22:26.649517"], ["file_ext", "png"], ["mime_type", "image/png"]]
942
889
   (0.1ms) RELEASE SAVEPOINT active_record_2
943
890
   (0.1ms) SAVEPOINT active_record_2
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"]]
891
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2015-03-10 19:22:26.652216"], ["updated_at", "2015-03-10 19:22:26.652216"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
945
892
   (0.1ms) RELEASE SAVEPOINT active_record_2
946
893
   (0.1ms) SAVEPOINT active_record_2
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"]]
894
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2015-03-10 19:22:26.654707"], ["updated_at", "2015-03-10 19:22:26.654707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
948
895
   (0.1ms) RELEASE SAVEPOINT active_record_2
949
896
   (0.1ms) SAVEPOINT active_record_2
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"]]
897
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.657239"], ["updated_at", "2015-03-10 19:22:26.657239"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
951
898
   (0.1ms) RELEASE SAVEPOINT active_record_2
952
899
   (0.1ms) SAVEPOINT active_record_2
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"]]
900
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.659640"], ["updated_at", "2015-03-10 19:22:26.659640"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
954
901
   (0.1ms) RELEASE SAVEPOINT active_record_2
955
902
   (0.1ms) SAVEPOINT active_record_2
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"]]
903
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.662259"], ["updated_at", "2015-03-10 19:22:26.662259"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
957
904
   (0.1ms) RELEASE SAVEPOINT active_record_2
958
905
   (0.1ms) SAVEPOINT active_record_2
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"]]
906
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.664759"], ["updated_at", "2015-03-10 19:22:26.664759"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
960
907
   (0.1ms) RELEASE SAVEPOINT active_record_2
961
908
   (0.1ms) SAVEPOINT active_record_2
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"]]
909
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.667209"], ["updated_at", "2015-03-10 19:22:26.667209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
963
910
   (0.1ms) RELEASE SAVEPOINT active_record_2
964
911
   (0.1ms) SAVEPOINT active_record_2
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"]]
912
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.669589"], ["updated_at", "2015-03-10 19:22:26.669589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
913
   (0.1ms) RELEASE SAVEPOINT active_record_2
967
914
   (0.1ms) SAVEPOINT active_record_2
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"]]
915
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-03-10 19:22:26.672192"], ["updated_at", "2015-03-10 19:22:26.672192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
969
916
   (0.1ms) RELEASE SAVEPOINT active_record_2
970
917
   (0.1ms) SAVEPOINT active_record_2
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"]]
972
-  (0.1ms) RELEASE SAVEPOINT active_record_2
973
-  (0.1ms) 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
976
-  (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-03-10 19:22:26.674956"], ["updated_at", "2015-03-10 19:22:26.674956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
978
919
   (0.1ms) RELEASE SAVEPOINT active_record_2
979
920
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-03-10 19:22:26.677598"], ["updated_at", "2015-03-10 19:22:26.677598"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
981
922
   (0.1ms) RELEASE SAVEPOINT active_record_2
982
923
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-03-10 19:22:26.680414"], ["updated_at", "2015-03-10 19:22:26.680414"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
984
925
   (0.1ms) RELEASE SAVEPOINT active_record_2
985
926
   (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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-03-10 19:22:26.683070"], ["updated_at", "2015-03-10 19:22:26.683070"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
987
928
   (0.1ms) RELEASE SAVEPOINT active_record_2
988
929
  Processing by PushType::WysiwygMediaController#index as JSON
989
- Parameters: {"filter"=>"file"}
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
930
+ Parameters: {"filter"=>"file", "page"=>2}
931
+ 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
991
932
   (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)
933
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
993
934
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
994
935
   (0.1ms) ROLLBACK
995
936
   (0.1ms) BEGIN
996
- --------------------------------------------------------------------------------------
997
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
998
- --------------------------------------------------------------------------------------
937
+ ----------------------------------------------------------------------------------
938
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
939
+ ----------------------------------------------------------------------------------
999
940
   (0.1ms) SAVEPOINT active_record_1
1000
941
   (0.1ms) RELEASE SAVEPOINT active_record_1
1001
942
   (0.1ms) SAVEPOINT active_record_1
1002
943
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "191"], ["created_at", "2015-03-10 19:22:26.694617"], ["updated_at", "2015-03-10 19:22:26.694617"], ["file_ext", "png"], ["mime_type", "image/png"]]
1004
945
   (0.1ms) RELEASE SAVEPOINT active_record_2
1005
946
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "192"], ["created_at", "2015-03-10 19:22:26.697310"], ["updated_at", "2015-03-10 19:22:26.697310"], ["file_ext", "png"], ["mime_type", "image/png"]]
1007
948
   (0.1ms) RELEASE SAVEPOINT active_record_2
1008
949
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-03-10 19:22:26.699743"], ["updated_at", "2015-03-10 19:22:26.699743"], ["file_ext", "png"], ["mime_type", "image/png"]]
1010
951
   (0.1ms) RELEASE SAVEPOINT active_record_2
1011
952
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-03-10 19:22:26.702251"], ["updated_at", "2015-03-10 19:22:26.702251"], ["file_ext", "png"], ["mime_type", "image/png"]]
1013
954
   (0.1ms) RELEASE SAVEPOINT active_record_2
1014
955
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-03-10 19:22:26.704773"], ["updated_at", "2015-03-10 19:22:26.704773"], ["file_ext", "png"], ["mime_type", "image/png"]]
1016
957
   (0.1ms) RELEASE SAVEPOINT active_record_2
1017
958
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "196"], ["created_at", "2015-03-10 19:22:26.707285"], ["updated_at", "2015-03-10 19:22:26.707285"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1019
960
   (0.1ms) RELEASE SAVEPOINT active_record_2
1020
961
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "197"], ["created_at", "2015-03-10 19:22:26.709741"], ["updated_at", "2015-03-10 19:22:26.709741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1022
963
   (0.1ms) RELEASE SAVEPOINT active_record_2
1023
964
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "198"], ["created_at", "2015-03-10 19:22:26.712280"], ["updated_at", "2015-03-10 19:22:26.712280"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1025
966
   (0.1ms) RELEASE SAVEPOINT active_record_2
1026
967
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "199"], ["created_at", "2015-03-10 19:22:26.714876"], ["updated_at", "2015-03-10 19:22:26.714876"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1028
969
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
970
   (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"]]
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", "200"], ["created_at", "2015-03-10 19:22:26.717548"], ["updated_at", "2015-03-10 19:22:26.717548"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1031
972
   (0.1ms) RELEASE SAVEPOINT active_record_2
1032
973
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "201"], ["created_at", "2015-03-10 19:22:26.720026"], ["updated_at", "2015-03-10 19:22:26.720026"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
975
   (0.1ms) RELEASE SAVEPOINT active_record_2
1035
976
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "202"], ["created_at", "2015-03-10 19:22:26.722443"], ["updated_at", "2015-03-10 19:22:26.722443"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
978
   (0.1ms) RELEASE SAVEPOINT active_record_2
1038
979
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "203"], ["created_at", "2015-03-10 19:22:26.724836"], ["updated_at", "2015-03-10 19:22:26.724836"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
981
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
982
   (0.1ms) SAVEPOINT active_record_2
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"]]
983
+ 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", "204"], ["created_at", "2015-03-10 19:22:26.791397"], ["updated_at", "2015-03-10 19:22:26.791397"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1043
984
   (0.1ms) RELEASE SAVEPOINT active_record_2
1044
985
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "205"], ["created_at", "2015-03-10 19:22:26.794400"], ["updated_at", "2015-03-10 19:22:26.794400"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1046
987
   (0.1ms) RELEASE SAVEPOINT active_record_2
1047
988
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-03-10 19:22:26.796873"], ["updated_at", "2015-03-10 19:22:26.796873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1049
990
   (0.1ms) RELEASE SAVEPOINT active_record_2
1050
991
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-03-10 19:22:26.799359"], ["updated_at", "2015-03-10 19:22:26.799359"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1052
993
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
994
   (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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-03-10 19:22:26.801859"], ["updated_at", "2015-03-10 19:22:26.801859"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1055
996
   (0.1ms) RELEASE SAVEPOINT active_record_2
1056
997
  Processing by PushType::WysiwygMediaController#index as JSON
1057
- Parameters: {"filter"=>"file"}
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)
998
+ Parameters: {"filter"=>"file", "page"=>2}
999
+ 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
1000
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1001
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
1061
1002
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1062
1003
   (0.1ms) ROLLBACK
1063
1004
   (0.1ms) BEGIN
1064
- --------------------------------------------------------------------------------------
1065
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
1066
- --------------------------------------------------------------------------------------
1067
-  (0.0ms) SAVEPOINT active_record_1
1068
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1005
+ ----------------------------------------------------------------------------------
1006
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
1007
+ ----------------------------------------------------------------------------------
1008
+  (0.1ms) SAVEPOINT active_record_1
1009
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1069
1010
   (0.0ms) SAVEPOINT active_record_1
1070
1011
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "209"], ["created_at", "2015-03-10 19:22:26.813496"], ["updated_at", "2015-03-10 19:22:26.813496"], ["file_ext", "png"], ["mime_type", "image/png"]]
1072
1013
   (0.1ms) RELEASE SAVEPOINT active_record_2
1073
1014
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "210"], ["created_at", "2015-03-10 19:22:26.816222"], ["updated_at", "2015-03-10 19:22:26.816222"], ["file_ext", "png"], ["mime_type", "image/png"]]
1075
1016
   (0.1ms) RELEASE SAVEPOINT active_record_2
1076
1017
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "211"], ["created_at", "2015-03-10 19:22:26.818634"], ["updated_at", "2015-03-10 19:22:26.818634"], ["file_ext", "png"], ["mime_type", "image/png"]]
1078
1019
   (0.1ms) RELEASE SAVEPOINT active_record_2
1079
1020
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "212"], ["created_at", "2015-03-10 19:22:26.820989"], ["updated_at", "2015-03-10 19:22:26.820989"], ["file_ext", "png"], ["mime_type", "image/png"]]
1081
1022
   (0.1ms) RELEASE SAVEPOINT active_record_2
1082
1023
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-03-10 19:22:26.823560"], ["updated_at", "2015-03-10 19:22:26.823560"], ["file_ext", "png"], ["mime_type", "image/png"]]
1084
1025
   (0.1ms) RELEASE SAVEPOINT active_record_2
1085
1026
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "214"], ["created_at", "2015-03-10 19:22:26.826008"], ["updated_at", "2015-03-10 19:22:26.826008"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1087
1028
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
1029
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "215"], ["created_at", "2015-03-10 19:22:26.828407"], ["updated_at", "2015-03-10 19:22:26.828407"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1090
1031
   (0.1ms) RELEASE SAVEPOINT active_record_2
1091
1032
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "216"], ["created_at", "2015-03-10 19:22:26.830981"], ["updated_at", "2015-03-10 19:22:26.830981"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1093
1034
   (0.1ms) RELEASE SAVEPOINT active_record_2
1094
1035
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "217"], ["created_at", "2015-03-10 19:22:26.833528"], ["updated_at", "2015-03-10 19:22:26.833528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1096
1037
   (0.1ms) RELEASE SAVEPOINT active_record_2
1097
1038
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "218"], ["created_at", "2015-03-10 19:22:26.836184"], ["updated_at", "2015-03-10 19:22:26.836184"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1099
1040
   (0.1ms) RELEASE SAVEPOINT active_record_2
1100
1041
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "219"], ["created_at", "2015-03-10 19:22:26.838725"], ["updated_at", "2015-03-10 19:22:26.838725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1102
1043
   (0.1ms) RELEASE SAVEPOINT active_record_2
1103
1044
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "220"], ["created_at", "2015-03-10 19:22:26.841165"], ["updated_at", "2015-03-10 19:22:26.841165"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1105
1046
   (0.1ms) RELEASE SAVEPOINT active_record_2
1106
1047
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "221"], ["created_at", "2015-03-10 19:22:26.843633"], ["updated_at", "2015-03-10 19:22:26.843633"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1108
1049
   (0.1ms) RELEASE SAVEPOINT active_record_2
1109
1050
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "222"], ["created_at", "2015-03-10 19:22:26.846136"], ["updated_at", "2015-03-10 19:22:26.846136"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1111
1052
   (0.1ms) RELEASE SAVEPOINT active_record_2
1112
1053
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "223"], ["created_at", "2015-03-10 19:22:26.848832"], ["updated_at", "2015-03-10 19:22:26.848832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1114
1055
   (0.1ms) RELEASE SAVEPOINT active_record_2
1115
1056
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-03-10 19:22:26.851422"], ["updated_at", "2015-03-10 19:22:26.851422"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1117
1058
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
1059
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-03-10 19:22:26.854241"], ["updated_at", "2015-03-10 19:22:26.854241"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1120
1061
   (0.1ms) RELEASE SAVEPOINT active_record_2
1121
1062
   (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"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-03-10 19:22:26.856751"], ["updated_at", "2015-03-10 19:22:26.856751"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1123
1064
   (0.1ms) RELEASE SAVEPOINT active_record_2
1124
1065
  Processing by PushType::WysiwygMediaController#index as JSON
1125
- Parameters: {"filter"=>"file"}
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
1066
+ Parameters: {"filter"=>"file", "page"=>2}
1067
+ 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
1127
1068
   (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)
1069
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1129
1070
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1130
1071
   (0.1ms) ROLLBACK
1131
1072
   (0.1ms) BEGIN
1132
- --------------------------------------------------------------------------------------
1133
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1134
- --------------------------------------------------------------------------------------
1073
+ -----------------------------------------------------------------------
1074
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1075
+ -----------------------------------------------------------------------
1135
1076
   (0.1ms) SAVEPOINT active_record_1
1136
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1077
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1137
1078
   (0.1ms) SAVEPOINT active_record_1
1138
1079
   (0.1ms) SAVEPOINT active_record_2
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"]]
1140
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1141
-  (0.1ms) SAVEPOINT active_record_2
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"]]
1143
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1144
-  (0.1ms) SAVEPOINT active_record_2
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"]]
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", "227"], ["created_at", "2015-03-10 19:22:26.869469"], ["updated_at", "2015-03-10 19:22:26.869469"], ["file_ext", "png"], ["mime_type", "image/png"]]
1146
1081
   (0.1ms) RELEASE SAVEPOINT active_record_2
1147
1082
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "228"], ["created_at", "2015-03-10 19:22:26.872086"], ["updated_at", "2015-03-10 19:22:26.872086"], ["file_ext", "png"], ["mime_type", "image/png"]]
1149
1084
   (0.1ms) RELEASE SAVEPOINT active_record_2
1150
1085
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-03-10 19:22:26.874455"], ["updated_at", "2015-03-10 19:22:26.874455"], ["file_ext", "png"], ["mime_type", "image/png"]]
1152
1087
   (0.1ms) RELEASE SAVEPOINT active_record_2
1153
1088
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-03-10 19:22:26.876957"], ["updated_at", "2015-03-10 19:22:26.876957"], ["file_ext", "png"], ["mime_type", "image/png"]]
1155
1090
   (0.1ms) RELEASE SAVEPOINT active_record_2
1091
+ 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
1092
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1093
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1094
+  (0.1ms) ROLLBACK
1095
+  (0.1ms) BEGIN
1096
+ -----------------------------------------------------------------------
1097
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1098
+ -----------------------------------------------------------------------
1099
+  (0.0ms) SAVEPOINT active_record_1
1100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
+  (0.0ms) SAVEPOINT active_record_1
1156
1102
   (0.1ms) SAVEPOINT active_record_2
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"]]
1103
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.886729"], ["updated_at", "2015-03-10 19:22:26.886729"], ["file_ext", "png"], ["mime_type", "image/png"]]
1158
1104
   (0.1ms) RELEASE SAVEPOINT active_record_2
1159
1105
   (0.1ms) SAVEPOINT active_record_2
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"]]
1106
+ 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", "232"], ["created_at", "2015-03-10 19:22:26.889647"], ["updated_at", "2015-03-10 19:22:26.889647"], ["file_ext", "png"], ["mime_type", "image/png"]]
1161
1107
   (0.1ms) RELEASE SAVEPOINT active_record_2
1162
1108
   (0.1ms) SAVEPOINT active_record_2
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"]]
1109
+ 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", "233"], ["created_at", "2015-03-10 19:22:26.893171"], ["updated_at", "2015-03-10 19:22:26.893171"], ["file_ext", "png"], ["mime_type", "image/png"]]
1164
1110
   (0.1ms) RELEASE SAVEPOINT active_record_2
1165
1111
   (0.1ms) SAVEPOINT active_record_2
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"]]
1112
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.896663"], ["updated_at", "2015-03-10 19:22:26.896663"], ["file_ext", "png"], ["mime_type", "image/png"]]
1167
1113
   (0.1ms) RELEASE SAVEPOINT active_record_2
1114
+ 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
1115
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1116
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1117
+  (0.1ms) ROLLBACK
1118
+  (0.1ms) BEGIN
1119
+ -----------------------------------------------------------------------
1120
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1121
+ -----------------------------------------------------------------------
1122
+  (0.0ms) SAVEPOINT active_record_1
1123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1124
+  (0.0ms) SAVEPOINT active_record_1
1168
1125
   (0.1ms) SAVEPOINT active_record_2
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"]]
1126
+ 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", "235"], ["created_at", "2015-03-10 19:22:26.907225"], ["updated_at", "2015-03-10 19:22:26.907225"], ["file_ext", "png"], ["mime_type", "image/png"]]
1170
1127
   (0.1ms) RELEASE SAVEPOINT active_record_2
1171
1128
   (0.1ms) SAVEPOINT active_record_2
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"]]
1129
+ 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", "236"], ["created_at", "2015-03-10 19:22:26.910161"], ["updated_at", "2015-03-10 19:22:26.910161"], ["file_ext", "png"], ["mime_type", "image/png"]]
1173
1130
   (0.1ms) RELEASE SAVEPOINT active_record_2
1174
1131
   (0.1ms) SAVEPOINT active_record_2
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"]]
1132
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "237"], ["created_at", "2015-03-10 19:22:26.919007"], ["updated_at", "2015-03-10 19:22:26.919007"], ["file_ext", "png"], ["mime_type", "image/png"]]
1176
1133
   (0.1ms) RELEASE SAVEPOINT active_record_2
1177
1134
   (0.1ms) SAVEPOINT active_record_2
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"]]
1135
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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", "238"], ["created_at", "2015-03-10 19:22:26.921677"], ["updated_at", "2015-03-10 19:22:26.921677"], ["file_ext", "png"], ["mime_type", "image/png"]]
1179
1136
   (0.1ms) RELEASE SAVEPOINT active_record_2
1137
+ 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
1138
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1139
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1140
+  (0.1ms) ROLLBACK
1141
+  (0.1ms) BEGIN
1142
+ -----------------------------------------------------------------------
1143
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1144
+ -----------------------------------------------------------------------
1145
+  (0.0ms) SAVEPOINT active_record_1
1146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.0ms) SAVEPOINT active_record_1
1180
1148
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-03-10 19:22:26.932208"], ["updated_at", "2015-03-10 19:22:26.932208"], ["file_ext", "png"], ["mime_type", "image/png"]]
1182
1150
   (0.1ms) RELEASE SAVEPOINT active_record_2
1183
1151
   (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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "240"], ["created_at", "2015-03-10 19:22:26.934897"], ["updated_at", "2015-03-10 19:22:26.934897"], ["file_ext", "png"], ["mime_type", "image/png"]]
1185
1153
   (0.1ms) RELEASE SAVEPOINT active_record_2
1186
1154
   (0.1ms) SAVEPOINT active_record_2
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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-03-10 19:22:26.937439"], ["updated_at", "2015-03-10 19:22:26.937439"], ["file_ext", "png"], ["mime_type", "image/png"]]
1188
1156
   (0.1ms) RELEASE SAVEPOINT active_record_2
1189
1157
   (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"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-03-10 19:22:26.940175"], ["updated_at", "2015-03-10 19:22:26.940175"], ["file_ext", "png"], ["mime_type", "image/png"]]
1191
1159
   (0.1ms) RELEASE SAVEPOINT active_record_2
1192
- Processing by PushType::WysiwygMediaController#index as JSON
1193
- Parameters: {"filter"=>"file"}
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)
1160
+ 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
1161
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1197
1162
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1198
1163
   (0.1ms) ROLLBACK
1199
1164
   (0.1ms) BEGIN
1200
1165
  -----------------------------------------------------------------------
1201
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1166
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1202
1167
  -----------------------------------------------------------------------
1203
1168
   (0.1ms) SAVEPOINT active_record_1
1204
1169
   (0.1ms) RELEASE SAVEPOINT active_record_1
1205
-  (0.1ms) SAVEPOINT active_record_1
1170
+  (0.0ms) SAVEPOINT active_record_1
1206
1171
   (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-22 15:25:19.300570"], ["updated_at", "2015-02-22 15:25:19.300570"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-03-10 19:22:26.951276"], ["updated_at", "2015-03-10 19:22:26.951276"], ["file_ext", "png"], ["mime_type", "image/png"]]
1208
1173
   (0.1ms) RELEASE SAVEPOINT active_record_2
1209
1174
   (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-22 15:25:19.303084"], ["updated_at", "2015-02-22 15:25:19.303084"], ["file_ext", "png"], ["mime_type", "image/png"]]
1175
+ 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", "244"], ["created_at", "2015-03-10 19:22:26.954231"], ["updated_at", "2015-03-10 19:22:26.954231"], ["file_ext", "png"], ["mime_type", "image/png"]]
1211
1176
   (0.1ms) RELEASE SAVEPOINT active_record_2
1212
1177
   (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-22 15:25:19.305390"], ["updated_at", "2015-02-22 15:25:19.305390"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-03-10 19:22:26.957304"], ["updated_at", "2015-03-10 19:22:26.957304"], ["file_ext", "png"], ["mime_type", "image/png"]]
1214
1179
   (0.1ms) RELEASE SAVEPOINT active_record_2
1215
1180
   (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-22 15:25:19.307739"], ["updated_at", "2015-02-22 15:25:19.307739"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-03-10 19:22:26.960311"], ["updated_at", "2015-03-10 19:22:26.960311"], ["file_ext", "png"], ["mime_type", "image/png"]]
1217
1182
   (0.1ms) RELEASE SAVEPOINT active_record_2
1218
1183
  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
1184
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
@@ -1221,93 +1186,128 @@ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1221
1186
   (0.1ms) ROLLBACK
1222
1187
   (0.1ms) BEGIN
1223
1188
  -----------------------------------------------------------------------
1224
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1189
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
1225
1190
  -----------------------------------------------------------------------
1226
1191
   (0.1ms) SAVEPOINT active_record_1
1227
1192
   (0.1ms) RELEASE SAVEPOINT active_record_1
1228
-  (0.0ms) SAVEPOINT active_record_1
1193
+  (0.1ms) SAVEPOINT active_record_1
1229
1194
   (0.1ms) SAVEPOINT active_record_2
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"]]
1195
+ 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", "247"], ["created_at", "2015-03-10 19:22:26.971801"], ["updated_at", "2015-03-10 19:22:26.971801"], ["file_ext", "png"], ["mime_type", "image/png"]]
1231
1196
   (0.1ms) RELEASE SAVEPOINT active_record_2
1232
1197
   (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-22 15:25:19.319971"], ["updated_at", "2015-02-22 15:25:19.319971"], ["file_ext", "png"], ["mime_type", "image/png"]]
1198
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.975088"], ["updated_at", "2015-03-10 19:22:26.975088"], ["file_ext", "png"], ["mime_type", "image/png"]]
1234
1199
   (0.1ms) RELEASE SAVEPOINT active_record_2
1235
1200
   (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-22 15:25:19.322423"], ["updated_at", "2015-02-22 15:25:19.322423"], ["file_ext", "png"], ["mime_type", "image/png"]]
1201
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.977900"], ["updated_at", "2015-03-10 19:22:26.977900"], ["file_ext", "png"], ["mime_type", "image/png"]]
1237
1202
   (0.1ms) RELEASE SAVEPOINT active_record_2
1238
1203
   (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-22 15:25:19.324697"], ["updated_at", "2015-02-22 15:25:19.324697"], ["file_ext", "png"], ["mime_type", "image/png"]]
1204
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.980513"], ["updated_at", "2015-03-10 19:22:26.980513"], ["file_ext", "png"], ["mime_type", "image/png"]]
1240
1205
   (0.1ms) RELEASE SAVEPOINT active_record_2
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
1206
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1207
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1208
+  (0.1ms) ROLLBACK
1209
+  (0.1ms) BEGIN
1210
+ -----------------------------------------------------------------------
1211
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
1212
+ -----------------------------------------------------------------------
1213
+  (0.0ms) SAVEPOINT active_record_1
1214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1215
+  (0.1ms) SAVEPOINT active_record_1
1216
+  (0.1ms) SAVEPOINT active_record_2
1217
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.986056"], ["updated_at", "2015-03-10 19:22:26.986056"], ["file_ext", "png"], ["mime_type", "image/png"]]
1218
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1219
+  (0.1ms) SAVEPOINT active_record_2
1220
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.988748"], ["updated_at", "2015-03-10 19:22:26.988748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1221
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1222
+  (0.1ms) SAVEPOINT active_record_2
1223
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.991620"], ["updated_at", "2015-03-10 19:22:26.991620"], ["file_ext", "png"], ["mime_type", "image/png"]]
1224
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1225
+  (0.1ms) SAVEPOINT active_record_2
1226
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:26.994426"], ["updated_at", "2015-03-10 19:22:26.994426"], ["file_ext", "png"], ["mime_type", "image/png"]]
1227
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1242
1228
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1243
1229
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1244
1230
   (0.1ms) ROLLBACK
1245
1231
   (0.1ms) BEGIN
1246
1232
  -----------------------------------------------------------------------
1247
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1233
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
1248
1234
  -----------------------------------------------------------------------
1249
1235
   (0.1ms) SAVEPOINT active_record_1
1250
1236
   (0.1ms) RELEASE SAVEPOINT active_record_1
1251
1237
   (0.0ms) SAVEPOINT active_record_1
1252
1238
   (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-22 15:25:19.334591"], ["updated_at", "2015-02-22 15:25:19.334591"], ["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-03-10 19:22:26.999897"], ["updated_at", "2015-03-10 19:22:26.999897"], ["file_ext", "png"], ["mime_type", "image/png"]]
1254
1240
   (0.1ms) RELEASE SAVEPOINT active_record_2
1255
1241
   (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-22 15:25:19.337134"], ["updated_at", "2015-02-22 15:25:19.337134"], ["file_ext", "png"], ["mime_type", "image/png"]]
1242
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.002905"], ["updated_at", "2015-03-10 19:22:27.002905"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
1243
   (0.1ms) RELEASE SAVEPOINT active_record_2
1258
1244
   (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-22 15:25:19.339656"], ["updated_at", "2015-02-22 15:25:19.339656"], ["file_ext", "png"], ["mime_type", "image/png"]]
1245
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.005440"], ["updated_at", "2015-03-10 19:22:27.005440"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
1246
   (0.1ms) RELEASE SAVEPOINT active_record_2
1261
1247
   (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-22 15:25:19.341959"], ["updated_at", "2015-02-22 15:25:19.341959"], ["file_ext", "png"], ["mime_type", "image/png"]]
1248
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.008387"], ["updated_at", "2015-03-10 19:22:27.008387"], ["file_ext", "png"], ["mime_type", "image/png"]]
1263
1249
   (0.1ms) RELEASE SAVEPOINT active_record_2
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
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1266
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1267
-  (0.1ms) ROLLBACK
1268
-  (0.1ms) BEGIN
1250
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1251
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1252
+  (0.1ms) ROLLBACK
1253
+  (0.1ms) BEGIN
1269
1254
  -----------------------------------------------------------------------
1270
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1255
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
1271
1256
  -----------------------------------------------------------------------
1272
-  (0.0ms) SAVEPOINT active_record_1
1273
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1274
-  (0.1ms) SAVEPOINT active_record_1
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-22 15:25:19.351788"], ["updated_at", "2015-02-22 15:25:19.351788"], ["file_ext", "png"], ["mime_type", "image/png"]]
1277
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1257
+  (0.1ms) SAVEPOINT active_record_1
1258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1259
+  (0.0ms) SAVEPOINT active_record_1
1278
1260
   (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-22 15:25:19.354416"], ["updated_at", "2015-02-22 15:25:19.354416"], ["file_ext", "png"], ["mime_type", "image/png"]]
1261
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.013802"], ["updated_at", "2015-03-10 19:22:27.013802"], ["file_ext", "png"], ["mime_type", "image/png"]]
1280
1262
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1263
   (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-22 15:25:19.356806"], ["updated_at", "2015-02-22 15:25:19.356806"], ["file_ext", "png"], ["mime_type", "image/png"]]
1264
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.016572"], ["updated_at", "2015-03-10 19:22:27.016572"], ["file_ext", "png"], ["mime_type", "image/png"]]
1283
1265
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
1266
   (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-22 15:25:19.359240"], ["updated_at", "2015-02-22 15:25:19.359240"], ["file_ext", "png"], ["mime_type", "image/png"]]
1267
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.019313"], ["updated_at", "2015-03-10 19:22:27.019313"], ["file_ext", "png"], ["mime_type", "image/png"]]
1286
1268
   (0.1ms) RELEASE SAVEPOINT active_record_2
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
1269
+  (0.1ms) SAVEPOINT active_record_2
1270
+ 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", "262"], ["created_at", "2015-03-10 19:22:27.022080"], ["updated_at", "2015-03-10 19:22:27.022080"], ["file_ext", "png"], ["mime_type", "image/png"]]
1271
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1288
1272
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1289
1273
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1290
1274
   (0.1ms) ROLLBACK
1291
1275
   (0.1ms) BEGIN
1292
1276
  -----------------------------------------------------------------------
1293
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1277
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
1294
1278
  -----------------------------------------------------------------------
1295
-  (0.0ms) SAVEPOINT active_record_1
1296
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1297
-  (0.0ms) SAVEPOINT active_record_1
1279
+  (0.1ms) SAVEPOINT active_record_1
1280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1281
+  (0.1ms) SAVEPOINT active_record_1
1298
1282
   (0.1ms) SAVEPOINT active_record_2
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"]]
1283
+ 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", "263"], ["created_at", "2015-03-10 19:22:27.027660"], ["updated_at", "2015-03-10 19:22:27.027660"], ["file_ext", "png"], ["mime_type", "image/png"]]
1300
1284
   (0.1ms) RELEASE SAVEPOINT active_record_2
1301
1285
   (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-22 15:25:19.371214"], ["updated_at", "2015-02-22 15:25:19.371214"], ["file_ext", "png"], ["mime_type", "image/png"]]
1286
+ 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-03-10 19:22:27.031211"], ["updated_at", "2015-03-10 19:22:27.031211"], ["file_ext", "png"], ["mime_type", "image/png"]]
1303
1287
   (0.1ms) RELEASE SAVEPOINT active_record_2
1304
1288
   (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-22 15:25:19.373715"], ["updated_at", "2015-02-22 15:25:19.373715"], ["file_ext", "png"], ["mime_type", "image/png"]]
1289
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.034072"], ["updated_at", "2015-03-10 19:22:27.034072"], ["file_ext", "png"], ["mime_type", "image/png"]]
1306
1290
   (0.1ms) RELEASE SAVEPOINT active_record_2
1307
1291
   (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-22 15:25:19.376085"], ["updated_at", "2015-02-22 15:25:19.376085"], ["file_ext", "png"], ["mime_type", "image/png"]]
1292
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "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-03-10 19:22:27.036776"], ["updated_at", "2015-03-10 19:22:27.036776"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
1293
   (0.1ms) RELEASE SAVEPOINT active_record_2
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
1294
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1295
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1296
+  (0.1ms) ROLLBACK
1297
+  (0.1ms) BEGIN
1298
+ --------------------------------------------------------------------------------
1299
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1300
+ --------------------------------------------------------------------------------
1301
+  (0.1ms) SAVEPOINT active_record_1
1302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1303
+  (0.0ms) SAVEPOINT active_record_1
1304
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1305
+ Processing by PushType::WysiwygMediaController#create as JSON
1306
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fec0583bcf8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-1c9ikdt>>}}
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-03-10 19:22:27.049556"], ["updated_at", "2015-03-10 19:22:27.049556"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1310
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
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