push_type_wysiwyg 0.2.0.beta2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (240) hide show
  1. checksums.yaml +4 -4
  2. data/lib/push_type/wysiwyg/engine.rb +4 -2
  3. data/test/dummy/config/initializers/push_type.rb +26 -8
  4. data/test/dummy/config/secrets.yml +2 -2
  5. data/test/dummy/db/migrate/{20150208150336_create_push_type_users.push_type.rb → 20150209204402_create_push_type_users.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20150208150337_create_push_type_nodes.push_type.rb → 20150209204403_create_push_type_nodes.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150208150338_create_push_type_node_hierarchies.push_type.rb → 20150209204404_create_push_type_node_hierarchies.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150208150339_create_push_type_assets.push_type.rb → 20150209204405_create_push_type_assets.push_type.rb} +0 -0
  9. data/test/dummy/db/schema.rb +1 -1
  10. data/test/dummy/log/development.log +461 -0
  11. data/test/dummy/log/test.log +628 -624
  12. data/test/dummy/tmp/cache/assets/development/sass/0bf981301b6f8cfa0a13d38a3554eafaa08d4bc1/foundation.scssc +0 -0
  13. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin.scssc +0 -0
  14. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/admin_assets.scss.erbc +0 -0
  15. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/foundation_and_overrides.scssc +0 -0
  16. data/test/dummy/tmp/cache/assets/development/sass/2df752541ff0a319141a1cb83ca971d2ffd2d050/tagsinput.scssc +0 -0
  17. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_accordion.scssc +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_alert-boxes.scssc +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_block-grid.scssc +0 -0
  20. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_breadcrumbs.scssc +0 -0
  21. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_button-groups.scssc +0 -0
  22. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_buttons.scssc +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_clearing.scssc +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown-buttons.scssc +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_dropdown.scssc +0 -0
  26. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_flex-video.scssc +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_forms.scssc +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_global.scssc +0 -0
  29. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_grid.scssc +0 -0
  30. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_icon-bar.scssc +0 -0
  31. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_inline-lists.scssc +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_joyride.scssc +0 -0
  33. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_keystrokes.scssc +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_labels.scssc +0 -0
  35. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_magellan.scssc +0 -0
  36. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_offcanvas.scssc +0 -0
  37. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_orbit.scssc +0 -0
  38. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_pagination.scssc +0 -0
  39. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_panels.scssc +0 -0
  40. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_pricing-tables.scssc +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_progress-bars.scssc +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_range-slider.scssc +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_reveal.scssc +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_side-nav.scssc +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_split-buttons.scssc +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_sub-nav.scssc +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_switches.scssc +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tables.scssc +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tabs.scssc +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_thumbs.scssc +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_tooltips.scssc +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_top-bar.scssc +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_type.scssc +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sass/9df51eb4a9ff930ccfaadb724cc88e9267641d13/_visibility.scssc +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sass/9ffd013d383870261f2263c294cb3119536e8d59/_functions.scssc +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/froala_overrides.scssc +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/pt_theme.scssc +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sass/b6b9d28ca2724256eca65bb09714d576b729c931/wysiwyg.scssc +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sass/d416499186bc6a8ba276a69cc9d9fffa030e66bc/foundation-icons.scssc +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/0002392d6db76064d178c6d9f05a0978 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/031df4e569e4e2012f581466d4c49650 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/03a225647e06f576b39797c97834bc24 +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/03fbfd831772639fdac75dfe5fe9cf64 +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/042e6dec69dbf88f86f5e8c360b52bcb +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/0448802b256c25a379824969bf01241e +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/04df4e97dcf4fc2678946e88518d19ca +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/0805cc52792bf8c38adacc28dae3006a +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/081a74b1457ef4d22b22f3a87335b18a +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/096eddf7a98fd625176db364d134da81 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/0aa9b91b3ecfb11e422aa5d7764e96b9 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/0ac59c93a84a52aba800cb33372b8f96 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/0ad373f2b4d9f428b6e58e76da4ec0b9 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/0be1680e56bd474e90098c85ed3613f1 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/0c7d363f5622cc1f9d3584fdea9a45a8 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/0e01ae9de0f3914c8317853aedd9ace4 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/0e97b69ac6f777e5725c5faa99228b8b +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/0fab70c609be2aba766be828253ae925 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/11d0db644738c3eeb74a1b4821e17387 +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/147cd256ded8a7797a230bd1f27db96a +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/1821710663a22c38d025f3600144b386 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/1956e934d0761e89293cf096aef2ad04 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/1b8e382ffcf81030d49a8dbcf0beb553 +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/1c63cb75109171c505bf1b6b3f26513b +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/1e223ecb24750e08ecbc16120f1a3cfa +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/2196fdacd39bb9f5c4e3755b86d84888 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/21bfe84f05ed2fba3ce99db95bb959b3 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/226a629ec094e8ad208f2c273121699a +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/22a51e693681f3b603f26628fac44b07 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/23c10c485dbe7ea46614928874120ecf +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/2479bd5cbccdeac3ab4df62c2c12e8d3 +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/257233cf9d7cbb01dd74d0fefd6a9384 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/2599cde7c63354f12928a204c42fe68b +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/25b238c2ec907a80d53955a0bb81073c +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/25da091131e25acf0f55a6528a94f309 +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sprockets/27d0805c68db0e1ea5335f4ad7273237 +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sprockets/2821176477eee8de7b9581f0564d0947 +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sprockets/2929961e63046a72db4e8d82548a8f31 +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sprockets/29788e10655827b0cb48737a98f416ee +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sprockets/2d1bc2b9dc5ee0ed5635abc31fb1bc88 +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sprockets/312dcc14683b058a2ecb35f844b45deb +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sprockets/31c57ad31a65f9a951c6d7268cdedae5 +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sprockets/3250647bb1e816f8ee380676051395a0 +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sprockets/34180a46a1fc802cc4e37f4db0626478 +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sprockets/3508023b6222e6b0876c773e38ec700d +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sprockets/36b405be9a5b7a40ad906728c9aeb94f +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/3d4f40cd6363f1841fa7c17dcbd281ce +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/3d913c6890c084026be6278d4e2e8547 +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/3fa0c2e71b116e59b3f3d50fff211c23 +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/463cf86d1833a97b9145f6e36ab75d53 +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/47dcfb84d9a092ad939f512e1d3db43c +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/4858303c37ae4b39f56910e5e374b915 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/488d63b20534d2642d48b86b5a267a3b +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/4b8d83b7ae1317cf918d180b938ff565 +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/4f422267ef34574e3b4422b4137c7dd8 +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/4fc498f23125a9811434c6d5d5b43b64 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/508e9ca93a5c6a60e79e3496654497cf +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/55872208a3d530cd28d0bbad22d55079 +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/55d58e1add1ca367e262464e83ad82cf +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/57531b6d66c8c471ca21a68cde85f198 +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/59992ed1702654aa166f8572af80a301 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/5b03a21e24f2318345666c69b686067a +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/5c6330161fb7c48109502c40ac57d2a3 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/5c694af01dab7474cace85e2e37233af +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/5c7a9715a4d34606731b486f1251151d +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/5eb2ada2e9af19cdbe5cb8750ce801df +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/5f22f2b7323f2d1145c5e2dbe86106ef +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/600202d00479f08d2e69019e34d12e65 +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/6245a5f4c9368169ba2cab2de39b1316 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/633ffb1bd470dc99106053fe08ffcef3 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/6366afb9c2ba5987d78c050fbce75acc +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/63ea22cf580e6c90cdb3c76900705de0 +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/6450b2170b90777c94faa92d8913b5af +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/64550cb088f2a8bd25da69f8e7623a7a +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/6640df6f9fea191b039a12e530222ed4 +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/67dc8a78c942bd4604abc432cbe7353b +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/6afb6cb0462c9dab19086aa6c02e619a +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/6b75e75e7b682e7c5633d02f5441f61c +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/6c7542a3718ad8d161e94f4816f01ccb +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/6ffb1f074155829dca88c57f3730a9c3 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/720b83386eaf5707c1535472e36ba7fb +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/74d0a68ec9399e1929715edba40caff4 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/756b24d1d6762675f2f3d781313c59b6 +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/75c5663a92b2003b794d5f5d184fde44 +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/7879ec7699a19e017377e1b57702e3e5 +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/78fa745fd2161cd5d09b0ceacd9511fc +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/7925f8f38f5165ad9d36a7d73dd00c06 +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/7a6cc81125937d35e5b984a3c7098c1a +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/7b63c613f1053bde6004342003178a0e +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/7cd04ce7e67cb693aa31bd3e03199ecd +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/7d07558d12b9bd9b9dfa778344bab4ac +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/7ec747d2848f5b2b3c0c822c8d251f3e +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/805c63977d339feb2ea7b61e1141a32f +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/81ebadcc1f5568d97bfe59f0929ab498 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/88fb3b262db688175d04e44b58529fad +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/897fcee94209310a5d16db6b10c29dfa +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/8a34d99aaa243ebb4e60f483a5b5a817 +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/8b83fd34df285c871e41af1e2c3efda9 +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/8d531fdb806de0724337e0b80e253914 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/8da458b8df4bfbd9fb0eed86c36442d4 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/8df98e9b5189ffce4cf77a33533416a6 +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/8feb3d758b7824f15b301f9dc024c3f6 +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/91e13d81afe9041372ad8f79ee9159f4 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/9221dd4a064b2d36adbdbce6a33a6f7e +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/9237af24b42c41f9f2d3ecc68f60a600 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/92716c1d1cdd92efe79de35a47956fc9 +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/932f699ead87a4b9910d47334ed14d60 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/93f1c8b2c57b6a34ce6be7a69af2eeab +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/9850ccc5ff77cfe44eef6c931be25fa2 +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/99fe26a80e7e5ec06edf349306f40d5a +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/9a772d1dc121b28314ad4c064b170c1e +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/9aef3ae1f0c62b895d86ab60901dd450 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/a010781c05d478892856f75c751d6ab4 +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/a656594778473574f77b201837cc446f +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/a96494099d559bfd8cb5257e21cb196c +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/a9b8decaa2942e8913458c9f35da2693 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/aaa6dc2bd59e21dd14b0c86a308a1d1f +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/aab84c1f5c24fa406a94eac09d22b2a4 +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/aaf7959dea629271d23756ab876bc035 +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/ab6e14fb85dc2ad554e941848018ed3f +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/ac6920ecb59148769117dba39b8bb574 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/ada55ab3ebb32ffd74145d341fbbcb06 +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/ae854557f47e184d242c2d046b212fda +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/b05f3b842ea70a8728bdfc77fe0c3a37 +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/b22e7be4b7531ad92c824dcfd9adca27 +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/b24f2d6f62512f4cb11c6a2e44bf90e4 +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/b68fa55b48d70d8b978ffac2c76c5c14 +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/b762effbcb1d2a5c2e967b26de0b8e2a +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/b78741de2e56d8ac6629bb0dbf1d5c20 +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/b98f2d58122bd73a46b39aa6c0144105 +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/badf6e6ab7c3d1cc2b180e5883005a40 +0 -0
  191. data/test/dummy/tmp/cache/assets/development/sprockets/bb38dd1514d70d46cc209c23beacf4ae +0 -0
  192. data/test/dummy/tmp/cache/assets/development/sprockets/bc732efa6ca399217b023bd1e04f0404 +0 -0
  193. data/test/dummy/tmp/cache/assets/development/sprockets/bd13850cdb27ce3ade259ada4ca0b803 +0 -0
  194. data/test/dummy/tmp/cache/assets/development/sprockets/beae69b8f0d0fdaef95ab96db9591086 +0 -0
  195. data/test/dummy/tmp/cache/assets/development/sprockets/bee4e1605077e29abd380b05b645cbb4 +0 -0
  196. data/test/dummy/tmp/cache/assets/development/sprockets/c190d0bdd188c43629f35b9f463b86af +0 -0
  197. data/test/dummy/tmp/cache/assets/development/sprockets/c206fbd33f49ab785c6ddf4bcffd3b93 +0 -0
  198. data/test/dummy/tmp/cache/assets/development/sprockets/c22d9591f58891a95316c8595197a670 +0 -0
  199. data/test/dummy/tmp/cache/assets/development/sprockets/c42a7aac68d827f88bcc25a41cdb5591 +0 -0
  200. data/test/dummy/tmp/cache/assets/development/sprockets/c50682dcd8158c80ca1a676910d9482f +0 -0
  201. data/test/dummy/tmp/cache/assets/development/sprockets/c5ef052e357af6829f6c522a38916fc7 +0 -0
  202. data/test/dummy/tmp/cache/assets/development/sprockets/c8e888c4098e2f3e7e08e7aad9233bd9 +0 -0
  203. data/test/dummy/tmp/cache/assets/development/sprockets/c988fd2c5c9497ccef54f79a9e444ac6 +0 -0
  204. data/test/dummy/tmp/cache/assets/development/sprockets/c9ebc72dd9509bb10caa1dbedb55de2b +0 -0
  205. data/test/dummy/tmp/cache/assets/development/sprockets/cc63d401339265551b27ac91974668cb +0 -0
  206. data/test/dummy/tmp/cache/assets/development/sprockets/cf51890ac703ed5a5d704515a4721815 +0 -0
  207. data/test/dummy/tmp/cache/assets/development/sprockets/d06cd81508d945ef6609a832dc1ca23b +0 -0
  208. data/test/dummy/tmp/cache/assets/development/sprockets/d0cf9660d4e93fdd63688388b1ee5b5f +0 -0
  209. data/test/dummy/tmp/cache/assets/development/sprockets/d30a320df486e076298c602d428f3145 +0 -0
  210. data/test/dummy/tmp/cache/assets/development/sprockets/d7d047f71994f3f1a9858c0941fc1452 +0 -0
  211. data/test/dummy/tmp/cache/assets/development/sprockets/d7f4e0230ca18ec1ef6cfa1460b096f6 +0 -0
  212. data/test/dummy/tmp/cache/assets/development/sprockets/d82779125c814758e2311f37945d172e +0 -0
  213. data/test/dummy/tmp/cache/assets/development/sprockets/d829c1f5535262183eb4dbd3717fadbe +0 -0
  214. data/test/dummy/tmp/cache/assets/development/sprockets/df90022afc0d52f16bc498be20a5967d +0 -0
  215. data/test/dummy/tmp/cache/assets/development/sprockets/e1c3eff1f3886da4c71a854d42077d10 +0 -0
  216. data/test/dummy/tmp/cache/assets/development/sprockets/e28b8ab6a5b3ff792f45d5a6b7d806bc +0 -0
  217. data/test/dummy/tmp/cache/assets/development/sprockets/e540a9dc1aa001f8c4cba7a6b00f69d2 +0 -0
  218. data/test/dummy/tmp/cache/assets/development/sprockets/e568172da8ab8581f83f98dad0a73d29 +0 -0
  219. data/test/dummy/tmp/cache/assets/development/sprockets/e6e78e14e8c962d31e6148ca56230af9 +0 -0
  220. data/test/dummy/tmp/cache/assets/development/sprockets/e6e9c7be83a484cbd624981e7c9ebe34 +0 -0
  221. data/test/dummy/tmp/cache/assets/development/sprockets/e9c0b89869d97e024565439b442bbe99 +0 -0
  222. data/test/dummy/tmp/cache/assets/development/sprockets/ec01e589b2029448373e8112cfd62b6a +0 -0
  223. data/test/dummy/tmp/cache/assets/development/sprockets/ec620b3dd5b1db6aec410073ca71c6df +0 -0
  224. data/test/dummy/tmp/cache/assets/development/sprockets/edaf2543a96ee921c30a071b3a73036f +0 -0
  225. data/test/dummy/tmp/cache/assets/development/sprockets/edd24c59de6c00e4e68dbbdf2775984a +0 -0
  226. data/test/dummy/tmp/cache/assets/development/sprockets/eeb045e353d91335ea6ec8a8869c322f +0 -0
  227. data/test/dummy/tmp/cache/assets/development/sprockets/ef166197fe2d31e69653c512a685ed9d +0 -0
  228. data/test/dummy/tmp/cache/assets/development/sprockets/f02093872b151ddb0fd1074fe83ff846 +0 -0
  229. data/test/dummy/tmp/cache/assets/development/sprockets/f100237ea34e5360da23f95cca21c340 +0 -0
  230. data/test/dummy/tmp/cache/assets/development/sprockets/f4bc04a453fa1e6b7454312a918fca27 +0 -0
  231. data/test/dummy/tmp/cache/assets/development/sprockets/f5016ef8a1200a0a022e1b2f8ac7edbb +0 -0
  232. data/test/dummy/tmp/cache/assets/development/sprockets/f7cf86568d1c692cb0a565614f282572 +0 -0
  233. data/test/dummy/tmp/cache/assets/development/sprockets/f96cec87308c4d1efa7993c38b770ba3 +0 -0
  234. data/test/dummy/tmp/cache/assets/development/sprockets/faa4ce8149d6e520b0a0855bfd8853e0 +0 -0
  235. data/test/dummy/tmp/cache/assets/development/sprockets/faf1bbb7beb1e6ddcf804de02c7b5c36 +0 -0
  236. data/test/dummy/tmp/cache/assets/development/sprockets/fb4793fb33ff5da9202b3b44e1997140 +0 -0
  237. data/test/dummy/tmp/cache/assets/development/sprockets/fba226eba4fa5dba560496c64a18009c +0 -0
  238. data/test/dummy/tmp/cache/assets/development/sprockets/fd06309bc284d80f9c2a30f32ed8df14 +0 -0
  239. data/test/dummy/tmp/pids/server.pid +1 -0
  240. metadata +476 -18
@@ -1,31 +1,31 @@
1
-  (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150208150336)
4
+ Migrating to CreatePushTypeUsers (20150209204402)
5
5
   (0.1ms) BEGIN
6
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.4ms) 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", "20150208150336"]]
6
+ SQL (1.9ms) 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", "20150209204402"]]
9
9
   (0.5ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150208150337)
10
+ Migrating to CreatePushTypeNodes (20150209204403)
11
11
   (0.1ms) BEGIN
12
-  (2.1ms) 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", "20150208150337"]]
12
+  (1.8ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204403"]]
14
14
   (0.3ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150208150338)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150209204404)
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
-  (0.7ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
-  (0.6ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150208150338"]]
18
+  (0.6ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (0.5ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204404"]]
21
21
   (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150208150339)
22
+ Migrating to CreatePushTypeAssets (20150209204405)
23
23
   (0.1ms) BEGIN
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", "20150208150339"]]
24
+  (1.7ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150209204405"]]
26
26
   (0.3ms) COMMIT
27
27
  ActiveRecord::SchemaMigration Load (0.1ms) 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
28
+  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
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
@@ -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.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
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
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
@@ -61,7 +61,7 @@ WHERE c.contype = 'f'
61
61
  AND t3.nspname = ANY (current_schemas(false))
62
62
  ORDER BY c.conname
63
63
 
64
-  (1.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
64
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
65
65
  FROM pg_constraint c
66
66
  JOIN pg_class t1 ON c.conrelid = t1.oid
67
67
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -74,552 +74,682 @@ WHERE c.contype = 'f'
74
74
  ORDER BY c.conname
75
75
  
76
76
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
77
-  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
78
-  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
79
-  (5.1ms) TRUNCATE TABLE "push_type_users", "push_type_nodes", "push_type_node_hierarchies", "push_type_assets" RESTART IDENTITY CASCADE;
80
-  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
77
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
78
+  (1.0ms)  SELECT schemaname || '.' || tablename
79
+ FROM pg_tables
80
+ WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
81
+ 
82
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
83
+  (8.2ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;
84
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
85
+  (0.1ms) BEGIN
86
+ ----------------------------------------------------------------------------------------
87
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
88
+ ----------------------------------------------------------------------------------------
89
+  (0.1ms) SAVEPOINT active_record_1
90
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91
+  (0.1ms) SAVEPOINT active_record_1
92
+ Processing by PushType::WysiwygMediaController#create as JSON
93
+ Parameters: {"asset"=>{}}
94
+  (0.1ms) SAVEPOINT active_record_2
95
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
96
+ Completed 200 OK in 20ms (Views: 0.2ms | ActiveRecord: 1.1ms)
97
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
98
+  (0.1ms) ROLLBACK
99
+  (0.1ms) BEGIN
100
+ ----------------------------------------------------------------------------------------
101
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
102
+ ----------------------------------------------------------------------------------------
103
+  (0.1ms) SAVEPOINT active_record_1
104
+  (0.1ms) RELEASE SAVEPOINT active_record_1
105
+  (0.1ms) SAVEPOINT active_record_1
106
+ Processing by PushType::WysiwygMediaController#create as JSON
107
+ Parameters: {"asset"=>{}}
108
+  (0.1ms) SAVEPOINT active_record_2
109
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
110
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
111
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
112
+  (0.1ms) ROLLBACK
113
+  (0.1ms) BEGIN
114
+ ----------------------------------------------------------------------------------------
115
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
116
+ ----------------------------------------------------------------------------------------
117
+  (0.1ms) SAVEPOINT active_record_1
118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
119
+  (0.1ms) SAVEPOINT active_record_1
120
+ Processing by PushType::WysiwygMediaController#create as JSON
121
+ Parameters: {"asset"=>{}}
122
+  (0.1ms) SAVEPOINT active_record_2
123
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
124
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
125
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
126
+  (0.1ms) ROLLBACK
127
+  (0.1ms) BEGIN
128
+ ----------------------------------------------------------------------
129
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
130
+ ----------------------------------------------------------------------
131
+  (0.1ms) SAVEPOINT active_record_1
132
+  (0.1ms) RELEASE SAVEPOINT active_record_1
133
+  (0.1ms) SAVEPOINT active_record_1
134
+  (0.1ms) SAVEPOINT active_record_2
135
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-02-09 20:44:06.830959"], ["updated_at", "2015-02-09 20:44:06.830959"], ["file_ext", "png"], ["mime_type", "image/png"]]
136
+  (0.1ms) RELEASE SAVEPOINT active_record_2
137
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
138
+  (0.1ms) ROLLBACK
81
139
   (0.1ms) BEGIN
82
- --------------------------------------------------------------------------------------
83
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
84
- --------------------------------------------------------------------------------------
140
+ ----------------------------------------------------------------------
141
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
142
+ ----------------------------------------------------------------------
143
+  (0.1ms) SAVEPOINT active_record_1
144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
145
+  (0.0ms) SAVEPOINT active_record_1
146
+  (0.1ms) SAVEPOINT active_record_2
147
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-02-09 20:44:06.845276"], ["updated_at", "2015-02-09 20:44:06.845276"], ["file_ext", "png"], ["mime_type", "image/png"]]
148
+  (0.1ms) RELEASE SAVEPOINT active_record_2
149
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
150
+  (0.1ms) ROLLBACK
151
+  (0.1ms) BEGIN
152
+ ----------------------------------------------------------------------
153
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
154
+ ----------------------------------------------------------------------
155
+  (0.0ms) SAVEPOINT active_record_1
156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
157
+  (0.0ms) SAVEPOINT active_record_1
158
+  (0.1ms) SAVEPOINT active_record_2
159
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-02-09 20:44:06.851234"], ["updated_at", "2015-02-09 20:44:06.851234"], ["file_ext", "png"], ["mime_type", "image/png"]]
160
+  (0.1ms) RELEASE SAVEPOINT active_record_2
161
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
162
+  (0.1ms) ROLLBACK
163
+  (0.1ms) BEGIN
164
+ ----------------------------------------------------------------------
165
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
166
+ ----------------------------------------------------------------------
85
167
   (0.1ms) SAVEPOINT active_record_1
168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
169
+  (0.0ms) SAVEPOINT active_record_1
170
+  (0.1ms) SAVEPOINT active_record_2
171
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-02-09 20:44:06.857414"], ["updated_at", "2015-02-09 20:44:06.857414"], ["file_ext", "png"], ["mime_type", "image/png"]]
172
+  (0.1ms) RELEASE SAVEPOINT active_record_2
173
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
174
+  (0.1ms) ROLLBACK
175
+  (0.0ms) BEGIN
176
+ ----------------------------------------------------------------------
177
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
178
+ ----------------------------------------------------------------------
179
+  (0.0ms) SAVEPOINT active_record_1
180
+  (0.0ms) RELEASE SAVEPOINT active_record_1
181
+  (0.0ms) SAVEPOINT active_record_1
182
+  (0.1ms) SAVEPOINT active_record_2
183
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-02-09 20:44:06.863785"], ["updated_at", "2015-02-09 20:44:06.863785"], ["file_ext", "png"], ["mime_type", "image/png"]]
184
+  (0.1ms) RELEASE SAVEPOINT active_record_2
185
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
186
+  (0.1ms) ROLLBACK
187
+  (0.1ms) BEGIN
188
+ ----------------------------------------------------------------------
189
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
190
+ ----------------------------------------------------------------------
191
+  (0.0ms) SAVEPOINT active_record_1
86
192
   (0.1ms) RELEASE SAVEPOINT active_record_1
87
193
   (0.1ms) SAVEPOINT active_record_1
88
194
   (0.1ms) SAVEPOINT active_record_2
89
- 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-08 15:03:41.292486"], ["updated_at", "2015-02-08 15:03:41.292486"], ["file_ext", "png"], ["mime_type", "image/png"]]
195
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-02-09 20:44:06.869985"], ["updated_at", "2015-02-09 20:44:06.869985"], ["file_ext", "png"], ["mime_type", "image/png"]]
196
+  (0.1ms) RELEASE SAVEPOINT active_record_2
197
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
198
+  (0.1ms) ROLLBACK
199
+  (0.1ms) BEGIN
200
+ ----------------------------------------------------------------------
201
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
202
+ ----------------------------------------------------------------------
203
+  (0.1ms) SAVEPOINT active_record_1
204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
205
+  (0.0ms) SAVEPOINT active_record_1
206
+  (0.1ms) SAVEPOINT active_record_2
207
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-02-09 20:44:06.876200"], ["updated_at", "2015-02-09 20:44:06.876200"], ["file_ext", "png"], ["mime_type", "image/png"]]
208
+  (0.1ms) RELEASE SAVEPOINT active_record_2
209
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
210
+  (0.1ms) ROLLBACK
211
+  (0.1ms) BEGIN
212
+ ----------------------------------------------------------------------------------
213
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
214
+ ----------------------------------------------------------------------------------
215
+  (0.1ms) SAVEPOINT active_record_1
216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
217
+  (0.0ms) SAVEPOINT active_record_1
218
+  (0.1ms) SAVEPOINT active_record_2
219
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-02-09 20:44:06.883584"], ["updated_at", "2015-02-09 20:44:06.883584"], ["file_ext", "png"], ["mime_type", "image/png"]]
90
220
   (0.1ms) RELEASE SAVEPOINT active_record_2
91
221
   (0.1ms) SAVEPOINT active_record_2
92
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.298005"], ["updated_at", "2015-02-08 15:03:41.298005"], ["file_ext", "png"], ["mime_type", "image/png"]]
222
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-02-09 20:44:06.886522"], ["updated_at", "2015-02-09 20:44:06.886522"], ["file_ext", "png"], ["mime_type", "image/png"]]
93
223
   (0.1ms) RELEASE SAVEPOINT active_record_2
94
224
   (0.1ms) SAVEPOINT active_record_2
95
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.300643"], ["updated_at", "2015-02-08 15:03:41.300643"], ["file_ext", "png"], ["mime_type", "image/png"]]
225
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-02-09 20:44:06.889343"], ["updated_at", "2015-02-09 20:44:06.889343"], ["file_ext", "png"], ["mime_type", "image/png"]]
96
226
   (0.1ms) RELEASE SAVEPOINT active_record_2
97
227
   (0.1ms) SAVEPOINT active_record_2
98
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.303161"], ["updated_at", "2015-02-08 15:03:41.303161"], ["file_ext", "png"], ["mime_type", "image/png"]]
228
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-02-09 20:44:06.891978"], ["updated_at", "2015-02-09 20:44:06.891978"], ["file_ext", "png"], ["mime_type", "image/png"]]
99
229
   (0.1ms) RELEASE SAVEPOINT active_record_2
100
230
   (0.1ms) SAVEPOINT active_record_2
101
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.305782"], ["updated_at", "2015-02-08 15:03:41.305782"], ["file_ext", "png"], ["mime_type", "image/png"]]
231
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-02-09 20:44:06.894722"], ["updated_at", "2015-02-09 20:44:06.894722"], ["file_ext", "png"], ["mime_type", "image/png"]]
102
232
   (0.1ms) RELEASE SAVEPOINT active_record_2
103
233
   (0.1ms) SAVEPOINT active_record_2
104
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.308478"], ["updated_at", "2015-02-08 15:03:41.308478"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
234
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-02-09 20:44:06.897678"], ["updated_at", "2015-02-09 20:44:06.897678"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
105
235
   (0.1ms) RELEASE SAVEPOINT active_record_2
106
236
   (0.1ms) SAVEPOINT active_record_2
107
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.311196"], ["updated_at", "2015-02-08 15:03:41.311196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-02-09 20:44:06.900323"], ["updated_at", "2015-02-09 20:44:06.900323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
108
238
   (0.1ms) RELEASE SAVEPOINT active_record_2
109
239
   (0.1ms) SAVEPOINT active_record_2
110
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.313916"], ["updated_at", "2015-02-08 15:03:41.313916"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
240
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-02-09 20:44:06.903143"], ["updated_at", "2015-02-09 20:44:06.903143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
111
241
   (0.1ms) RELEASE SAVEPOINT active_record_2
112
242
   (0.1ms) SAVEPOINT active_record_2
113
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.316620"], ["updated_at", "2015-02-08 15:03:41.316620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
243
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-02-09 20:44:06.905957"], ["updated_at", "2015-02-09 20:44:06.905957"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
114
244
   (0.1ms) RELEASE SAVEPOINT active_record_2
115
245
   (0.1ms) SAVEPOINT active_record_2
116
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.319123"], ["updated_at", "2015-02-08 15:03:41.319123"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
246
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-02-09 20:44:06.908662"], ["updated_at", "2015-02-09 20:44:06.908662"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
117
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
118
248
   (0.1ms) SAVEPOINT active_record_2
119
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.321543"], ["updated_at", "2015-02-08 15:03:41.321543"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
249
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-02-09 20:44:06.911496"], ["updated_at", "2015-02-09 20:44:06.911496"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
120
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
121
251
   (0.1ms) SAVEPOINT active_record_2
122
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.324230"], ["updated_at", "2015-02-08 15:03:41.324230"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
252
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "19"], ["created_at", "2015-02-09 20:44:06.914232"], ["updated_at", "2015-02-09 20:44:06.914232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
123
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
124
254
   (0.1ms) SAVEPOINT active_record_2
125
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.326738"], ["updated_at", "2015-02-08 15:03:41.326738"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
255
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "20"], ["created_at", "2015-02-09 20:44:06.916997"], ["updated_at", "2015-02-09 20:44:06.916997"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
126
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
127
257
   (0.1ms) SAVEPOINT active_record_2
128
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.329366"], ["updated_at", "2015-02-08 15:03:41.329366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
258
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "21"], ["created_at", "2015-02-09 20:44:06.919650"], ["updated_at", "2015-02-09 20:44:06.919650"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
129
259
   (0.1ms) RELEASE SAVEPOINT active_record_2
130
260
   (0.1ms) SAVEPOINT active_record_2
131
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.331966"], ["updated_at", "2015-02-08 15:03:41.331966"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
261
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "22"], ["created_at", "2015-02-09 20:44:06.922247"], ["updated_at", "2015-02-09 20:44:06.922247"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
132
262
   (0.1ms) RELEASE SAVEPOINT active_record_2
133
263
   (0.1ms) SAVEPOINT active_record_2
134
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.334485"], ["updated_at", "2015-02-08 15:03:41.334485"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
264
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "23"], ["created_at", "2015-02-09 20:44:06.924957"], ["updated_at", "2015-02-09 20:44:06.924957"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
135
265
   (0.1ms) RELEASE SAVEPOINT active_record_2
136
266
   (0.1ms) SAVEPOINT active_record_2
137
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.337054"], ["updated_at", "2015-02-08 15:03:41.337054"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
267
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-02-09 20:44:06.927684"], ["updated_at", "2015-02-09 20:44:06.927684"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
138
268
   (0.1ms) RELEASE SAVEPOINT active_record_2
139
269
   (0.1ms) SAVEPOINT active_record_2
140
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.339741"], ["updated_at", "2015-02-08 15:03:41.339741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
270
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-02-09 20:44:06.930353"], ["updated_at", "2015-02-09 20:44:06.930353"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
141
271
   (0.1ms) RELEASE SAVEPOINT active_record_2
142
272
  Processing by PushType::WysiwygMediaController#index as JSON
143
- Parameters: {"filter"=>"file"}
144
- 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
145
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
146
- Completed 200 OK in 49ms (Views: 0.8ms | ActiveRecord: 1.0ms)
273
+ Parameters: {"filter"=>"file", "page"=>2}
274
+ PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
275
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
276
+ Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 0.8ms)
147
277
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
148
278
   (0.1ms) ROLLBACK
149
279
   (0.1ms) BEGIN
150
- --------------------------------------------------------------------------------------
151
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
152
- --------------------------------------------------------------------------------------
153
-  (0.0ms) SAVEPOINT active_record_1
154
-  (0.0ms) RELEASE SAVEPOINT active_record_1
155
-  (0.0ms) SAVEPOINT active_record_1
280
+ ----------------------------------------------------------------------------------
281
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
282
+ ----------------------------------------------------------------------------------
283
+  (0.1ms) SAVEPOINT active_record_1
284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
285
+  (0.1ms) SAVEPOINT active_record_1
156
286
   (0.1ms) SAVEPOINT active_record_2
157
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.398897"], ["updated_at", "2015-02-08 15:03:41.398897"], ["file_ext", "png"], ["mime_type", "image/png"]]
287
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "26"], ["created_at", "2015-02-09 20:44:06.952078"], ["updated_at", "2015-02-09 20:44:06.952078"], ["file_ext", "png"], ["mime_type", "image/png"]]
158
288
   (0.1ms) RELEASE SAVEPOINT active_record_2
159
289
   (0.1ms) SAVEPOINT active_record_2
160
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.401552"], ["updated_at", "2015-02-08 15:03:41.401552"], ["file_ext", "png"], ["mime_type", "image/png"]]
290
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "27"], ["created_at", "2015-02-09 20:44:06.954916"], ["updated_at", "2015-02-09 20:44:06.954916"], ["file_ext", "png"], ["mime_type", "image/png"]]
161
291
   (0.1ms) RELEASE SAVEPOINT active_record_2
162
292
   (0.1ms) SAVEPOINT active_record_2
163
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.403979"], ["updated_at", "2015-02-08 15:03:41.403979"], ["file_ext", "png"], ["mime_type", "image/png"]]
293
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "28"], ["created_at", "2015-02-09 20:44:06.957803"], ["updated_at", "2015-02-09 20:44:06.957803"], ["file_ext", "png"], ["mime_type", "image/png"]]
164
294
   (0.1ms) RELEASE SAVEPOINT active_record_2
165
295
   (0.1ms) SAVEPOINT active_record_2
166
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.406413"], ["updated_at", "2015-02-08 15:03:41.406413"], ["file_ext", "png"], ["mime_type", "image/png"]]
296
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "29"], ["created_at", "2015-02-09 20:44:06.960322"], ["updated_at", "2015-02-09 20:44:06.960322"], ["file_ext", "png"], ["mime_type", "image/png"]]
167
297
   (0.1ms) RELEASE SAVEPOINT active_record_2
168
298
   (0.1ms) SAVEPOINT active_record_2
169
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.408981"], ["updated_at", "2015-02-08 15:03:41.408981"], ["file_ext", "png"], ["mime_type", "image/png"]]
299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "30"], ["created_at", "2015-02-09 20:44:06.962752"], ["updated_at", "2015-02-09 20:44:06.962752"], ["file_ext", "png"], ["mime_type", "image/png"]]
170
300
   (0.1ms) RELEASE SAVEPOINT active_record_2
171
301
   (0.1ms) SAVEPOINT active_record_2
172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.411544"], ["updated_at", "2015-02-08 15:03:41.411544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-02-09 20:44:06.965205"], ["updated_at", "2015-02-09 20:44:06.965205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
173
303
   (0.1ms) RELEASE SAVEPOINT active_record_2
174
304
   (0.1ms) SAVEPOINT active_record_2
175
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.414018"], ["updated_at", "2015-02-08 15:03:41.414018"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-02-09 20:44:06.967651"], ["updated_at", "2015-02-09 20:44:06.967651"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
176
306
   (0.1ms) RELEASE SAVEPOINT active_record_2
177
307
   (0.1ms) SAVEPOINT active_record_2
178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.416483"], ["updated_at", "2015-02-08 15:03:41.416483"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-02-09 20:44:06.970192"], ["updated_at", "2015-02-09 20:44:06.970192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
179
309
   (0.1ms) RELEASE SAVEPOINT active_record_2
180
310
   (0.1ms) SAVEPOINT active_record_2
181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.419104"], ["updated_at", "2015-02-08 15:03:41.419104"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-02-09 20:44:06.972681"], ["updated_at", "2015-02-09 20:44:06.972681"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
182
312
   (0.1ms) RELEASE SAVEPOINT active_record_2
183
313
   (0.1ms) SAVEPOINT active_record_2
184
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.421655"], ["updated_at", "2015-02-08 15:03:41.421655"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-02-09 20:44:06.975196"], ["updated_at", "2015-02-09 20:44:06.975196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
185
315
   (0.1ms) RELEASE SAVEPOINT active_record_2
186
316
   (0.1ms) SAVEPOINT active_record_2
187
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.424248"], ["updated_at", "2015-02-08 15:03:41.424248"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
317
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-02-09 20:44:06.977692"], ["updated_at", "2015-02-09 20:44:06.977692"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
188
318
   (0.1ms) RELEASE SAVEPOINT active_record_2
189
319
   (0.1ms) SAVEPOINT active_record_2
190
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.426679"], ["updated_at", "2015-02-08 15:03:41.426679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
320
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2015-02-09 20:44:06.980371"], ["updated_at", "2015-02-09 20:44:06.980371"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
191
321
   (0.1ms) RELEASE SAVEPOINT active_record_2
192
322
   (0.1ms) SAVEPOINT active_record_2
193
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.429099"], ["updated_at", "2015-02-08 15:03:41.429099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
323
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2015-02-09 20:44:06.982925"], ["updated_at", "2015-02-09 20:44:06.982925"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
194
324
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
325
   (0.1ms) SAVEPOINT active_record_2
196
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.431858"], ["updated_at", "2015-02-08 15:03:41.431858"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
326
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "39"], ["created_at", "2015-02-09 20:44:06.985637"], ["updated_at", "2015-02-09 20:44:06.985637"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
197
327
   (0.1ms) RELEASE SAVEPOINT active_record_2
198
328
   (0.1ms) SAVEPOINT active_record_2
199
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.434513"], ["updated_at", "2015-02-08 15:03:41.434513"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
329
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "40"], ["created_at", "2015-02-09 20:44:06.988194"], ["updated_at", "2015-02-09 20:44:06.988194"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
200
330
   (0.1ms) RELEASE SAVEPOINT active_record_2
201
331
   (0.1ms) SAVEPOINT active_record_2
202
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.436952"], ["updated_at", "2015-02-08 15:03:41.436952"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
332
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "41"], ["created_at", "2015-02-09 20:44:06.990740"], ["updated_at", "2015-02-09 20:44:06.990740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
203
333
   (0.1ms) RELEASE SAVEPOINT active_record_2
204
334
   (0.1ms) SAVEPOINT active_record_2
205
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.439508"], ["updated_at", "2015-02-08 15:03:41.439508"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
335
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-02-09 20:44:06.993408"], ["updated_at", "2015-02-09 20:44:06.993408"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
206
336
   (0.1ms) RELEASE SAVEPOINT active_record_2
207
337
   (0.1ms) SAVEPOINT active_record_2
208
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.442061"], ["updated_at", "2015-02-08 15:03:41.442061"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
338
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-02-09 20:44:06.996146"], ["updated_at", "2015-02-09 20:44:06.996146"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
209
339
   (0.1ms) RELEASE SAVEPOINT active_record_2
210
340
  Processing by PushType::WysiwygMediaController#index as JSON
211
- Parameters: {"filter"=>"file"}
212
- 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
341
+ Parameters: {"filter"=>"file", "page"=>2}
342
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
213
343
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
214
- Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 0.5ms)
344
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
215
345
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
216
346
   (0.1ms) ROLLBACK
217
-  (0.1ms) BEGIN
218
- --------------------------------------------------------------------------------------
219
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
220
- --------------------------------------------------------------------------------------
347
+  (0.2ms) BEGIN
348
+ ----------------------------------------------------------------------------------
349
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
350
+ ----------------------------------------------------------------------------------
221
351
   (0.1ms) SAVEPOINT active_record_1
222
-  (0.1ms) RELEASE SAVEPOINT active_record_1
352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
223
353
   (0.0ms) SAVEPOINT active_record_1
224
354
   (0.1ms) SAVEPOINT active_record_2
225
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-02-08 15:03:41.463998"], ["updated_at", "2015-02-08 15:03:41.463998"], ["file_ext", "png"], ["mime_type", "image/png"]]
355
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "44"], ["created_at", "2015-02-09 20:44:07.007890"], ["updated_at", "2015-02-09 20:44:07.007890"], ["file_ext", "png"], ["mime_type", "image/png"]]
226
356
   (0.1ms) RELEASE SAVEPOINT active_record_2
227
357
   (0.1ms) SAVEPOINT active_record_2
228
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-02-08 15:03:41.466705"], ["updated_at", "2015-02-08 15:03:41.466705"], ["file_ext", "png"], ["mime_type", "image/png"]]
358
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "45"], ["created_at", "2015-02-09 20:44:07.016153"], ["updated_at", "2015-02-09 20:44:07.016153"], ["file_ext", "png"], ["mime_type", "image/png"]]
229
359
   (0.1ms) RELEASE SAVEPOINT active_record_2
230
360
   (0.1ms) SAVEPOINT active_record_2
231
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-02-08 15:03:41.469195"], ["updated_at", "2015-02-08 15:03:41.469195"], ["file_ext", "png"], ["mime_type", "image/png"]]
361
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "46"], ["created_at", "2015-02-09 20:44:07.019056"], ["updated_at", "2015-02-09 20:44:07.019056"], ["file_ext", "png"], ["mime_type", "image/png"]]
232
362
   (0.1ms) RELEASE SAVEPOINT active_record_2
233
363
   (0.1ms) SAVEPOINT active_record_2
234
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-02-08 15:03:41.471708"], ["updated_at", "2015-02-08 15:03:41.471708"], ["file_ext", "png"], ["mime_type", "image/png"]]
364
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "47"], ["created_at", "2015-02-09 20:44:07.021631"], ["updated_at", "2015-02-09 20:44:07.021631"], ["file_ext", "png"], ["mime_type", "image/png"]]
235
365
   (0.1ms) RELEASE SAVEPOINT active_record_2
236
366
   (0.1ms) SAVEPOINT active_record_2
237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-02-08 15:03:41.474245"], ["updated_at", "2015-02-08 15:03:41.474245"], ["file_ext", "png"], ["mime_type", "image/png"]]
367
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "48"], ["created_at", "2015-02-09 20:44:07.024101"], ["updated_at", "2015-02-09 20:44:07.024101"], ["file_ext", "png"], ["mime_type", "image/png"]]
238
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
239
369
   (0.1ms) SAVEPOINT active_record_2
240
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-02-08 15:03:41.476832"], ["updated_at", "2015-02-08 15:03:41.476832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
370
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-02-09 20:44:07.026589"], ["updated_at", "2015-02-09 20:44:07.026589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
371
   (0.1ms) RELEASE SAVEPOINT active_record_2
242
372
   (0.1ms) SAVEPOINT active_record_2
243
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-02-08 15:03:41.479366"], ["updated_at", "2015-02-08 15:03:41.479366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
373
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-02-09 20:44:07.029249"], ["updated_at", "2015-02-09 20:44:07.029249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
374
   (0.1ms) RELEASE SAVEPOINT active_record_2
245
375
   (0.1ms) SAVEPOINT active_record_2
246
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-02-08 15:03:41.481920"], ["updated_at", "2015-02-08 15:03:41.481920"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
376
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-02-09 20:44:07.031928"], ["updated_at", "2015-02-09 20:44:07.031928"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
377
   (0.1ms) RELEASE SAVEPOINT active_record_2
248
378
   (0.1ms) SAVEPOINT active_record_2
249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-02-08 15:03:41.484385"], ["updated_at", "2015-02-08 15:03:41.484385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
379
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-02-09 20:44:07.034415"], ["updated_at", "2015-02-09 20:44:07.034415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
380
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
381
   (0.1ms) SAVEPOINT active_record_2
252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-02-08 15:03:41.486909"], ["updated_at", "2015-02-08 15:03:41.486909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-02-09 20:44:07.036985"], ["updated_at", "2015-02-09 20:44:07.036985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
384
   (0.1ms) SAVEPOINT active_record_2
255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-02-08 15:03:41.489389"], ["updated_at", "2015-02-08 15:03:41.489389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
385
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-02-09 20:44:07.039585"], ["updated_at", "2015-02-09 20:44:07.039585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
386
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
387
   (0.1ms) SAVEPOINT active_record_2
258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-02-08 15:03:41.491859"], ["updated_at", "2015-02-08 15:03:41.491859"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-02-09 20:44:07.042412"], ["updated_at", "2015-02-09 20:44:07.042412"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
389
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
390
   (0.1ms) SAVEPOINT active_record_2
261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-02-08 15:03:41.494303"], ["updated_at", "2015-02-08 15:03:41.494303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
391
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-02-09 20:44:07.045228"], ["updated_at", "2015-02-09 20:44:07.045228"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
392
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
393
   (0.1ms) SAVEPOINT active_record_2
264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-02-08 15:03:41.496892"], ["updated_at", "2015-02-08 15:03:41.496892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
394
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "57"], ["created_at", "2015-02-09 20:44:07.047861"], ["updated_at", "2015-02-09 20:44:07.047861"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
265
395
   (0.1ms) RELEASE SAVEPOINT active_record_2
266
396
   (0.1ms) SAVEPOINT active_record_2
267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-02-08 15:03:41.499638"], ["updated_at", "2015-02-08 15:03:41.499638"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
397
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "58"], ["created_at", "2015-02-09 20:44:07.050396"], ["updated_at", "2015-02-09 20:44:07.050396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
268
398
   (0.1ms) RELEASE SAVEPOINT active_record_2
269
399
   (0.1ms) SAVEPOINT active_record_2
270
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-02-08 15:03:41.502236"], ["updated_at", "2015-02-08 15:03:41.502236"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
400
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "59"], ["created_at", "2015-02-09 20:44:07.053221"], ["updated_at", "2015-02-09 20:44:07.053221"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
271
401
   (0.1ms) RELEASE SAVEPOINT active_record_2
272
402
   (0.1ms) SAVEPOINT active_record_2
273
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.504785"], ["updated_at", "2015-02-08 15:03:41.504785"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
403
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-02-09 20:44:07.055761"], ["updated_at", "2015-02-09 20:44:07.055761"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
274
404
   (0.1ms) RELEASE SAVEPOINT active_record_2
275
405
   (0.1ms) SAVEPOINT active_record_2
276
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.507250"], ["updated_at", "2015-02-08 15:03:41.507250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
406
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-02-09 20:44:07.058415"], ["updated_at", "2015-02-09 20:44:07.058415"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
277
407
   (0.1ms) RELEASE SAVEPOINT active_record_2
278
408
  Processing by PushType::WysiwygMediaController#index as JSON
279
- Parameters: {"filter"=>"file"}
280
- PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
409
+ Parameters: {"filter"=>"file", "page"=>2}
410
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
281
411
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
282
- Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.6ms)
412
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
283
413
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
284
414
   (0.1ms) ROLLBACK
285
415
   (0.1ms) BEGIN
286
- --------------------------------------------------------------------------------------
287
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
288
- --------------------------------------------------------------------------------------
416
+ ----------------------------------------------------------------------------------
417
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
418
+ ----------------------------------------------------------------------------------
289
419
   (0.1ms) SAVEPOINT active_record_1
290
420
   (0.0ms) RELEASE SAVEPOINT active_record_1
291
421
   (0.0ms) SAVEPOINT active_record_1
292
422
   (0.1ms) SAVEPOINT active_record_2
293
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-02-08 15:03:41.528984"], ["updated_at", "2015-02-08 15:03:41.528984"], ["file_ext", "png"], ["mime_type", "image/png"]]
423
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "62"], ["created_at", "2015-02-09 20:44:07.070966"], ["updated_at", "2015-02-09 20:44:07.070966"], ["file_ext", "png"], ["mime_type", "image/png"]]
294
424
   (0.1ms) RELEASE SAVEPOINT active_record_2
295
425
   (0.1ms) SAVEPOINT active_record_2
296
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-02-08 15:03:41.531691"], ["updated_at", "2015-02-08 15:03:41.531691"], ["file_ext", "png"], ["mime_type", "image/png"]]
426
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "63"], ["created_at", "2015-02-09 20:44:07.073670"], ["updated_at", "2015-02-09 20:44:07.073670"], ["file_ext", "png"], ["mime_type", "image/png"]]
297
427
   (0.1ms) RELEASE SAVEPOINT active_record_2
298
428
   (0.1ms) SAVEPOINT active_record_2
299
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-02-08 15:03:41.534144"], ["updated_at", "2015-02-08 15:03:41.534144"], ["file_ext", "png"], ["mime_type", "image/png"]]
429
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "64"], ["created_at", "2015-02-09 20:44:07.076475"], ["updated_at", "2015-02-09 20:44:07.076475"], ["file_ext", "png"], ["mime_type", "image/png"]]
300
430
   (0.1ms) RELEASE SAVEPOINT active_record_2
301
431
   (0.1ms) SAVEPOINT active_record_2
302
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-02-08 15:03:41.536650"], ["updated_at", "2015-02-08 15:03:41.536650"], ["file_ext", "png"], ["mime_type", "image/png"]]
432
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "65"], ["created_at", "2015-02-09 20:44:07.079139"], ["updated_at", "2015-02-09 20:44:07.079139"], ["file_ext", "png"], ["mime_type", "image/png"]]
303
433
   (0.1ms) RELEASE SAVEPOINT active_record_2
304
434
   (0.1ms) SAVEPOINT active_record_2
305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-02-08 15:03:41.539308"], ["updated_at", "2015-02-08 15:03:41.539308"], ["file_ext", "png"], ["mime_type", "image/png"]]
435
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "66"], ["created_at", "2015-02-09 20:44:07.081742"], ["updated_at", "2015-02-09 20:44:07.081742"], ["file_ext", "png"], ["mime_type", "image/png"]]
306
436
   (0.1ms) RELEASE SAVEPOINT active_record_2
307
437
   (0.1ms) SAVEPOINT active_record_2
308
- 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", "60"], ["created_at", "2015-02-08 15:03:41.541827"], ["updated_at", "2015-02-08 15:03:41.541827"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
438
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-02-09 20:44:07.084281"], ["updated_at", "2015-02-09 20:44:07.084281"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
439
   (0.1ms) RELEASE SAVEPOINT active_record_2
310
440
   (0.1ms) SAVEPOINT active_record_2
311
- 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", "61"], ["created_at", "2015-02-08 15:03:41.549749"], ["updated_at", "2015-02-08 15:03:41.549749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
441
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-02-09 20:44:07.086822"], ["updated_at", "2015-02-09 20:44:07.086822"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
442
   (0.1ms) RELEASE SAVEPOINT active_record_2
313
443
   (0.1ms) SAVEPOINT active_record_2
314
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-02-08 15:03:41.553046"], ["updated_at", "2015-02-08 15:03:41.553046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
444
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-02-09 20:44:07.089501"], ["updated_at", "2015-02-09 20:44:07.089501"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
445
   (0.1ms) RELEASE SAVEPOINT active_record_2
316
446
   (0.1ms) SAVEPOINT active_record_2
317
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-02-08 15:03:41.555940"], ["updated_at", "2015-02-08 15:03:41.555940"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
447
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-02-09 20:44:07.092093"], ["updated_at", "2015-02-09 20:44:07.092093"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
448
   (0.1ms) RELEASE SAVEPOINT active_record_2
319
449
   (0.1ms) SAVEPOINT active_record_2
320
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-02-08 15:03:41.558592"], ["updated_at", "2015-02-08 15:03:41.558592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
450
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-02-09 20:44:07.094636"], ["updated_at", "2015-02-09 20:44:07.094636"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
451
   (0.1ms) RELEASE SAVEPOINT active_record_2
322
452
   (0.1ms) SAVEPOINT active_record_2
323
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-02-08 15:03:41.561500"], ["updated_at", "2015-02-08 15:03:41.561500"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
453
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-02-09 20:44:07.097153"], ["updated_at", "2015-02-09 20:44:07.097153"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
454
   (0.1ms) RELEASE SAVEPOINT active_record_2
325
455
   (0.1ms) SAVEPOINT active_record_2
326
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-02-08 15:03:41.564200"], ["updated_at", "2015-02-08 15:03:41.564200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
456
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-02-09 20:44:07.099919"], ["updated_at", "2015-02-09 20:44:07.099919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
457
   (0.1ms) RELEASE SAVEPOINT active_record_2
328
458
   (0.1ms) SAVEPOINT active_record_2
329
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-02-08 15:03:41.566910"], ["updated_at", "2015-02-08 15:03:41.566910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
459
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-02-09 20:44:07.102467"], ["updated_at", "2015-02-09 20:44:07.102467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
460
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
461
   (0.1ms) SAVEPOINT active_record_2
332
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-02-08 15:03:41.569426"], ["updated_at", "2015-02-08 15:03:41.569426"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
462
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "75"], ["created_at", "2015-02-09 20:44:07.105237"], ["updated_at", "2015-02-09 20:44:07.105237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
333
463
   (0.1ms) RELEASE SAVEPOINT active_record_2
334
464
   (0.1ms) SAVEPOINT active_record_2
335
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.571928"], ["updated_at", "2015-02-08 15:03:41.571928"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
465
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "76"], ["created_at", "2015-02-09 20:44:07.107869"], ["updated_at", "2015-02-09 20:44:07.107869"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
336
466
   (0.1ms) RELEASE SAVEPOINT active_record_2
337
467
   (0.1ms) SAVEPOINT active_record_2
338
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-02-08 15:03:41.574503"], ["updated_at", "2015-02-08 15:03:41.574503"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
468
+ SQL (0.4ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "77"], ["created_at", "2015-02-09 20:44:07.110556"], ["updated_at", "2015-02-09 20:44:07.110556"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
339
469
   (0.1ms) RELEASE SAVEPOINT active_record_2
340
470
   (0.1ms) SAVEPOINT active_record_2
341
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.577288"], ["updated_at", "2015-02-08 15:03:41.577288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
471
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-02-09 20:44:07.113478"], ["updated_at", "2015-02-09 20:44:07.113478"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
342
472
   (0.1ms) RELEASE SAVEPOINT active_record_2
343
473
   (0.1ms) SAVEPOINT active_record_2
344
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.580176"], ["updated_at", "2015-02-08 15:03:41.580176"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-02-09 20:44:07.116312"], ["updated_at", "2015-02-09 20:44:07.116312"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
345
475
   (0.1ms) RELEASE SAVEPOINT active_record_2
346
476
  Processing by PushType::WysiwygMediaController#index as JSON
347
- Parameters: {"filter"=>"file"}
348
- 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
349
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
350
- Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 0.5ms)
477
+ Parameters: {"filter"=>"file", "page"=>2}
478
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
479
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
480
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
351
481
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
352
-  (0.1ms) ROLLBACK
482
+  (0.2ms) ROLLBACK
353
483
   (0.1ms) BEGIN
354
- ----------------------------------------------------------------------------------
355
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
356
- ----------------------------------------------------------------------------------
484
+ ---------------------------------------------------------------------------------------
485
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
486
+ ---------------------------------------------------------------------------------------
357
487
   (0.1ms) SAVEPOINT active_record_1
358
488
   (0.1ms) RELEASE SAVEPOINT active_record_1
359
-  (0.1ms) SAVEPOINT active_record_1
489
+  (0.0ms) SAVEPOINT active_record_1
360
490
   (0.1ms) SAVEPOINT active_record_2
361
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-02-08 15:03:41.602657"], ["updated_at", "2015-02-08 15:03:41.602657"], ["file_ext", "png"], ["mime_type", "image/png"]]
491
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-02-09 20:44:07.130807"], ["updated_at", "2015-02-09 20:44:07.130807"], ["file_ext", "png"], ["mime_type", "image/png"]]
362
492
   (0.1ms) RELEASE SAVEPOINT active_record_2
363
493
   (0.1ms) SAVEPOINT active_record_2
364
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-02-08 15:03:41.605623"], ["updated_at", "2015-02-08 15:03:41.605623"], ["file_ext", "png"], ["mime_type", "image/png"]]
494
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "81"], ["created_at", "2015-02-09 20:44:07.133836"], ["updated_at", "2015-02-09 20:44:07.133836"], ["file_ext", "png"], ["mime_type", "image/png"]]
365
495
   (0.1ms) RELEASE SAVEPOINT active_record_2
366
496
   (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", "75"], ["created_at", "2015-02-08 15:03:41.608840"], ["updated_at", "2015-02-08 15:03:41.608840"], ["file_ext", "png"], ["mime_type", "image/png"]]
497
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2015-02-09 20:44:07.136539"], ["updated_at", "2015-02-09 20:44:07.136539"], ["file_ext", "png"], ["mime_type", "image/png"]]
368
498
   (0.1ms) RELEASE SAVEPOINT active_record_2
369
499
   (0.1ms) SAVEPOINT active_record_2
370
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-02-08 15:03:41.611574"], ["updated_at", "2015-02-08 15:03:41.611574"], ["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", "83"], ["created_at", "2015-02-09 20:44:07.139223"], ["updated_at", "2015-02-09 20:44:07.139223"], ["file_ext", "png"], ["mime_type", "image/png"]]
371
501
   (0.1ms) RELEASE SAVEPOINT active_record_2
372
502
   (0.1ms) SAVEPOINT active_record_2
373
- 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-08 15:03:41.614203"], ["updated_at", "2015-02-08 15:03:41.614203"], ["file_ext", "png"], ["mime_type", "image/png"]]
503
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-02-09 20:44:07.142016"], ["updated_at", "2015-02-09 20:44:07.142016"], ["file_ext", "png"], ["mime_type", "image/png"]]
374
504
   (0.1ms) RELEASE SAVEPOINT active_record_2
375
505
   (0.1ms) SAVEPOINT active_record_2
376
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-02-08 15:03:41.617128"], ["updated_at", "2015-02-08 15:03:41.617128"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
506
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-02-09 20:44:07.144647"], ["updated_at", "2015-02-09 20:44:07.144647"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
507
   (0.1ms) RELEASE SAVEPOINT active_record_2
378
508
   (0.1ms) SAVEPOINT active_record_2
379
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-02-08 15:03:41.619774"], ["updated_at", "2015-02-08 15:03:41.619774"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
509
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-02-09 20:44:07.147400"], ["updated_at", "2015-02-09 20:44:07.147400"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
510
   (0.1ms) RELEASE SAVEPOINT active_record_2
381
511
   (0.1ms) SAVEPOINT active_record_2
382
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-02-08 15:03:41.622220"], ["updated_at", "2015-02-08 15:03:41.622220"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
512
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-02-09 20:44:07.149987"], ["updated_at", "2015-02-09 20:44:07.149987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
513
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
514
   (0.1ms) SAVEPOINT active_record_2
385
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-02-08 15:03:41.624600"], ["updated_at", "2015-02-08 15:03:41.624600"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
515
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-02-09 20:44:07.152719"], ["updated_at", "2015-02-09 20:44:07.152719"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
516
   (0.1ms) RELEASE SAVEPOINT active_record_2
387
517
   (0.1ms) SAVEPOINT active_record_2
388
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-02-08 15:03:41.627200"], ["updated_at", "2015-02-08 15:03:41.627200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
518
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-02-09 20:44:07.155396"], ["updated_at", "2015-02-09 20:44:07.155396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
519
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
520
   (0.1ms) SAVEPOINT active_record_2
391
- 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", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-02-08 15:03:41.630431"], ["updated_at", "2015-02-08 15:03:41.630431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
521
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-02-09 20:44:07.158180"], ["updated_at", "2015-02-09 20:44:07.158180"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
522
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
523
   (0.1ms) SAVEPOINT active_record_2
394
- 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", "84"], ["created_at", "2015-02-08 15:03:41.635532"], ["updated_at", "2015-02-08 15:03:41.635532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
524
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-02-09 20:44:07.160915"], ["updated_at", "2015-02-09 20:44:07.160915"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
525
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
526
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-02-08 15:03:41.640316"], ["updated_at", "2015-02-08 15:03:41.640316"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
527
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-02-09 20:44:07.163906"], ["updated_at", "2015-02-09 20:44:07.163906"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
528
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
529
   (0.1ms) SAVEPOINT active_record_2
400
- 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", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-02-08 15:03:41.645376"], ["updated_at", "2015-02-08 15:03:41.645376"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
530
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-02-09 20:44:07.166553"], ["updated_at", "2015-02-09 20:44:07.166553"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
401
531
   (0.1ms) RELEASE SAVEPOINT active_record_2
402
532
   (0.1ms) SAVEPOINT active_record_2
403
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-02-08 15:03:41.649797"], ["updated_at", "2015-02-08 15:03:41.649797"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
533
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-02-09 20:44:07.169177"], ["updated_at", "2015-02-09 20:44:07.169177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
404
534
   (0.1ms) RELEASE SAVEPOINT active_record_2
405
535
   (0.1ms) SAVEPOINT active_record_2
406
- 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", "88"], ["created_at", "2015-02-08 15:03:41.653547"], ["updated_at", "2015-02-08 15:03:41.653547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
536
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-02-09 20:44:07.171806"], ["updated_at", "2015-02-09 20:44:07.171806"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
407
537
   (0.1ms) RELEASE SAVEPOINT active_record_2
408
538
   (0.1ms) SAVEPOINT active_record_2
409
- 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", "89"], ["created_at", "2015-02-08 15:03:41.657564"], ["updated_at", "2015-02-08 15:03:41.657564"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
539
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-02-09 20:44:07.174620"], ["updated_at", "2015-02-09 20:44:07.174620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
410
540
   (0.1ms) RELEASE SAVEPOINT active_record_2
411
541
   (0.1ms) SAVEPOINT active_record_2
412
- 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", "90"], ["created_at", "2015-02-08 15:03:41.661034"], ["updated_at", "2015-02-08 15:03:41.661034"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
542
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-02-09 20:44:07.177274"], ["updated_at", "2015-02-09 20:44:07.177274"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
413
543
   (0.1ms) RELEASE SAVEPOINT active_record_2
414
544
  Processing by PushType::WysiwygMediaController#index as JSON
415
- Parameters: {"filter"=>"file", "page"=>2}
416
- 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
417
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
418
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
545
+ Parameters: {"filter"=>"image"}
546
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
547
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
548
+ Completed 200 OK in 17ms (Views: 0.4ms | ActiveRecord: 0.6ms)
419
549
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
420
-  (0.2ms) ROLLBACK
550
+  (0.1ms) ROLLBACK
421
551
   (0.1ms) BEGIN
422
- ----------------------------------------------------------------------------------
423
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
424
- ----------------------------------------------------------------------------------
425
-  (0.1ms) SAVEPOINT active_record_1
426
-  (0.1ms) RELEASE SAVEPOINT active_record_1
552
+ ---------------------------------------------------------------------------------------
553
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
554
+ ---------------------------------------------------------------------------------------
427
555
   (0.1ms) SAVEPOINT active_record_1
556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
557
+  (0.0ms) SAVEPOINT active_record_1
428
558
   (0.1ms) SAVEPOINT active_record_2
429
- 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", "91"], ["created_at", "2015-02-08 15:03:41.677318"], ["updated_at", "2015-02-08 15:03:41.677318"], ["file_ext", "png"], ["mime_type", "image/png"]]
559
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-02-09 20:44:07.202414"], ["updated_at", "2015-02-09 20:44:07.202414"], ["file_ext", "png"], ["mime_type", "image/png"]]
430
560
   (0.1ms) RELEASE SAVEPOINT active_record_2
431
561
   (0.1ms) SAVEPOINT active_record_2
432
- 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", "92"], ["created_at", "2015-02-08 15:03:41.681547"], ["updated_at", "2015-02-08 15:03:41.681547"], ["file_ext", "png"], ["mime_type", "image/png"]]
562
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "99"], ["created_at", "2015-02-09 20:44:07.205097"], ["updated_at", "2015-02-09 20:44:07.205097"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
563
   (0.1ms) RELEASE SAVEPOINT active_record_2
434
564
   (0.1ms) SAVEPOINT active_record_2
435
- 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", "93"], ["created_at", "2015-02-08 15:03:41.684832"], ["updated_at", "2015-02-08 15:03:41.684832"], ["file_ext", "png"], ["mime_type", "image/png"]]
565
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2015-02-09 20:44:07.207628"], ["updated_at", "2015-02-09 20:44:07.207628"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
566
   (0.1ms) RELEASE SAVEPOINT active_record_2
437
567
   (0.1ms) SAVEPOINT active_record_2
438
- 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", "94"], ["created_at", "2015-02-08 15:03:41.688532"], ["updated_at", "2015-02-08 15:03:41.688532"], ["file_ext", "png"], ["mime_type", "image/png"]]
568
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-02-09 20:44:07.210084"], ["updated_at", "2015-02-09 20:44:07.210084"], ["file_ext", "png"], ["mime_type", "image/png"]]
439
569
   (0.1ms) RELEASE SAVEPOINT active_record_2
440
570
   (0.1ms) SAVEPOINT active_record_2
441
- 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", "95"], ["created_at", "2015-02-08 15:03:41.692840"], ["updated_at", "2015-02-08 15:03:41.692840"], ["file_ext", "png"], ["mime_type", "image/png"]]
571
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-02-09 20:44:07.212657"], ["updated_at", "2015-02-09 20:44:07.212657"], ["file_ext", "png"], ["mime_type", "image/png"]]
442
572
   (0.1ms) RELEASE SAVEPOINT active_record_2
443
573
   (0.1ms) SAVEPOINT active_record_2
444
- 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", "96"], ["created_at", "2015-02-08 15:03:41.696844"], ["updated_at", "2015-02-08 15:03:41.696844"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
445
-  (0.2ms) RELEASE SAVEPOINT active_record_2
574
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-02-09 20:44:07.215317"], ["updated_at", "2015-02-09 20:44:07.215317"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
575
+  (0.1ms) RELEASE SAVEPOINT active_record_2
446
576
   (0.1ms) SAVEPOINT active_record_2
447
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-02-08 15:03:41.700897"], ["updated_at", "2015-02-08 15:03:41.700897"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
577
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-02-09 20:44:07.217841"], ["updated_at", "2015-02-09 20:44:07.217841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
448
578
   (0.1ms) RELEASE SAVEPOINT active_record_2
449
579
   (0.1ms) SAVEPOINT active_record_2
450
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-02-08 15:03:41.703749"], ["updated_at", "2015-02-08 15:03:41.703749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
580
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-02-09 20:44:07.220321"], ["updated_at", "2015-02-09 20:44:07.220321"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
451
581
   (0.1ms) RELEASE SAVEPOINT active_record_2
452
582
   (0.1ms) SAVEPOINT active_record_2
453
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-02-08 15:03:41.706702"], ["updated_at", "2015-02-08 15:03:41.706702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
583
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-02-09 20:44:07.222768"], ["updated_at", "2015-02-09 20:44:07.222768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
454
584
   (0.1ms) RELEASE SAVEPOINT active_record_2
455
585
   (0.1ms) SAVEPOINT active_record_2
456
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-02-08 15:03:41.709666"], ["updated_at", "2015-02-08 15:03:41.709666"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
586
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-02-09 20:44:07.225431"], ["updated_at", "2015-02-09 20:44:07.225431"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
457
587
   (0.1ms) RELEASE SAVEPOINT active_record_2
458
588
   (0.1ms) SAVEPOINT active_record_2
459
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-02-08 15:03:41.712603"], ["updated_at", "2015-02-08 15:03:41.712603"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
589
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-02-09 20:44:07.227984"], ["updated_at", "2015-02-09 20:44:07.227984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
460
590
   (0.1ms) RELEASE SAVEPOINT active_record_2
461
591
   (0.1ms) SAVEPOINT active_record_2
462
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-02-08 15:03:41.715398"], ["updated_at", "2015-02-08 15:03:41.715398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
592
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-02-09 20:44:07.230499"], ["updated_at", "2015-02-09 20:44:07.230499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
463
593
   (0.1ms) RELEASE SAVEPOINT active_record_2
464
594
   (0.1ms) SAVEPOINT active_record_2
465
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-02-08 15:03:41.718290"], ["updated_at", "2015-02-08 15:03:41.718290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
595
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-02-09 20:44:07.232947"], ["updated_at", "2015-02-09 20:44:07.232947"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
466
596
   (0.1ms) RELEASE SAVEPOINT active_record_2
467
597
   (0.1ms) SAVEPOINT active_record_2
468
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-02-08 15:03:41.721040"], ["updated_at", "2015-02-08 15:03:41.721040"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
598
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-02-09 20:44:07.235514"], ["updated_at", "2015-02-09 20:44:07.235514"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
469
599
   (0.1ms) RELEASE SAVEPOINT active_record_2
470
600
   (0.1ms) SAVEPOINT active_record_2
471
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-02-08 15:03:41.723687"], ["updated_at", "2015-02-08 15:03:41.723687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
601
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-02-09 20:44:07.238214"], ["updated_at", "2015-02-09 20:44:07.238214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
472
602
   (0.1ms) RELEASE SAVEPOINT active_record_2
473
603
   (0.1ms) SAVEPOINT active_record_2
474
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-02-08 15:03:41.726342"], ["updated_at", "2015-02-08 15:03:41.726342"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
604
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-02-09 20:44:07.240800"], ["updated_at", "2015-02-09 20:44:07.240800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
475
605
   (0.1ms) RELEASE SAVEPOINT active_record_2
476
606
   (0.1ms) SAVEPOINT active_record_2
477
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.729250"], ["updated_at", "2015-02-08 15:03:41.729250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
607
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-02-09 20:44:07.243403"], ["updated_at", "2015-02-09 20:44:07.243403"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
478
608
   (0.1ms) RELEASE SAVEPOINT active_record_2
479
609
   (0.1ms) SAVEPOINT active_record_2
480
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:41.731901"], ["updated_at", "2015-02-08 15:03:41.731901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
610
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-02-09 20:44:07.246096"], ["updated_at", "2015-02-09 20:44:07.246096"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
481
611
   (0.1ms) RELEASE SAVEPOINT active_record_2
482
612
  Processing by PushType::WysiwygMediaController#index as JSON
483
- Parameters: {"filter"=>"file", "page"=>2}
484
- 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
485
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
486
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
613
+ Parameters: {"filter"=>"image"}
614
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
615
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
616
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
487
617
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
488
618
   (0.1ms) ROLLBACK
489
619
   (0.1ms) BEGIN
490
- ----------------------------------------------------------------------------------
491
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
492
- ----------------------------------------------------------------------------------
493
-  (0.1ms) SAVEPOINT active_record_1
494
-  (0.1ms) RELEASE SAVEPOINT active_record_1
620
+ ---------------------------------------------------------------------------------------
621
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
622
+ ---------------------------------------------------------------------------------------
495
623
   (0.1ms) SAVEPOINT active_record_1
624
+  (0.0ms) RELEASE SAVEPOINT active_record_1
625
+  (0.0ms) SAVEPOINT active_record_1
496
626
   (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", "109"], ["created_at", "2015-02-08 15:03:41.743773"], ["updated_at", "2015-02-08 15:03:41.743773"], ["file_ext", "png"], ["mime_type", "image/png"]]
627
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "116"], ["created_at", "2015-02-09 20:44:07.265647"], ["updated_at", "2015-02-09 20:44:07.265647"], ["file_ext", "png"], ["mime_type", "image/png"]]
498
628
   (0.1ms) RELEASE SAVEPOINT active_record_2
499
629
   (0.1ms) SAVEPOINT active_record_2
500
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "110"], ["created_at", "2015-02-08 15:03:41.746694"], ["updated_at", "2015-02-08 15:03:41.746694"], ["file_ext", "png"], ["mime_type", "image/png"]]
630
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "117"], ["created_at", "2015-02-09 20:44:07.268410"], ["updated_at", "2015-02-09 20:44:07.268410"], ["file_ext", "png"], ["mime_type", "image/png"]]
501
631
   (0.1ms) RELEASE SAVEPOINT active_record_2
502
632
   (0.1ms) SAVEPOINT active_record_2
503
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-02-08 15:03:41.749363"], ["updated_at", "2015-02-08 15:03:41.749363"], ["file_ext", "png"], ["mime_type", "image/png"]]
633
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2015-02-09 20:44:07.270965"], ["updated_at", "2015-02-09 20:44:07.270965"], ["file_ext", "png"], ["mime_type", "image/png"]]
504
634
   (0.1ms) RELEASE SAVEPOINT active_record_2
505
635
   (0.1ms) SAVEPOINT active_record_2
506
- 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", "112"], ["created_at", "2015-02-08 15:03:41.751930"], ["updated_at", "2015-02-08 15:03:41.751930"], ["file_ext", "png"], ["mime_type", "image/png"]]
636
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-02-09 20:44:07.273399"], ["updated_at", "2015-02-09 20:44:07.273399"], ["file_ext", "png"], ["mime_type", "image/png"]]
507
637
   (0.1ms) RELEASE SAVEPOINT active_record_2
508
638
   (0.1ms) SAVEPOINT active_record_2
509
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-02-08 15:03:41.758860"], ["updated_at", "2015-02-08 15:03:41.758860"], ["file_ext", "png"], ["mime_type", "image/png"]]
639
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-02-09 20:44:07.276043"], ["updated_at", "2015-02-09 20:44:07.276043"], ["file_ext", "png"], ["mime_type", "image/png"]]
510
640
   (0.1ms) RELEASE SAVEPOINT active_record_2
511
641
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-02-08 15:03:41.761391"], ["updated_at", "2015-02-08 15:03:41.761391"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
642
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-02-09 20:44:07.278622"], ["updated_at", "2015-02-09 20:44:07.278622"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
643
   (0.1ms) RELEASE SAVEPOINT active_record_2
514
644
   (0.1ms) SAVEPOINT active_record_2
515
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-02-08 15:03:41.763985"], ["updated_at", "2015-02-08 15:03:41.763985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
645
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-02-09 20:44:07.281214"], ["updated_at", "2015-02-09 20:44:07.281214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
646
   (0.1ms) RELEASE SAVEPOINT active_record_2
517
647
   (0.1ms) SAVEPOINT active_record_2
518
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-02-08 15:03:41.766652"], ["updated_at", "2015-02-08 15:03:41.766652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
648
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-02-09 20:44:07.283737"], ["updated_at", "2015-02-09 20:44:07.283737"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
649
   (0.1ms) RELEASE SAVEPOINT active_record_2
520
650
   (0.1ms) SAVEPOINT active_record_2
521
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-02-08 15:03:41.769295"], ["updated_at", "2015-02-08 15:03:41.769295"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
651
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-02-09 20:44:07.286481"], ["updated_at", "2015-02-09 20:44:07.286481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
652
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
653
   (0.1ms) SAVEPOINT active_record_2
524
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-02-08 15:03:41.771777"], ["updated_at", "2015-02-08 15:03:41.771777"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
654
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-02-09 20:44:07.289001"], ["updated_at", "2015-02-09 20:44:07.289001"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
525
655
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
656
   (0.1ms) SAVEPOINT active_record_2
527
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-02-08 15:03:41.774203"], ["updated_at", "2015-02-08 15:03:41.774203"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
657
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-02-09 20:44:07.291563"], ["updated_at", "2015-02-09 20:44:07.291563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
528
658
   (0.1ms) RELEASE SAVEPOINT active_record_2
529
659
   (0.1ms) SAVEPOINT active_record_2
530
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-02-08 15:03:41.776897"], ["updated_at", "2015-02-08 15:03:41.776897"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
660
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-02-09 20:44:07.294103"], ["updated_at", "2015-02-09 20:44:07.294103"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
531
661
   (0.1ms) RELEASE SAVEPOINT active_record_2
532
662
   (0.1ms) SAVEPOINT active_record_2
533
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-02-08 15:03:41.779498"], ["updated_at", "2015-02-08 15:03:41.779498"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
663
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-02-09 20:44:07.296604"], ["updated_at", "2015-02-09 20:44:07.296604"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
534
664
   (0.1ms) RELEASE SAVEPOINT active_record_2
535
665
   (0.1ms) SAVEPOINT active_record_2
536
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-02-08 15:03:41.782126"], ["updated_at", "2015-02-08 15:03:41.782126"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
666
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-02-09 20:44:07.299513"], ["updated_at", "2015-02-09 20:44:07.299513"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
537
667
   (0.1ms) RELEASE SAVEPOINT active_record_2
538
668
   (0.1ms) SAVEPOINT active_record_2
539
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-02-08 15:03:41.784570"], ["updated_at", "2015-02-08 15:03:41.784570"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
669
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-02-09 20:44:07.302160"], ["updated_at", "2015-02-09 20:44:07.302160"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
540
670
   (0.1ms) RELEASE SAVEPOINT active_record_2
541
671
   (0.1ms) SAVEPOINT active_record_2
542
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-02-08 15:03:41.787094"], ["updated_at", "2015-02-08 15:03:41.787094"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-02-09 20:44:07.304892"], ["updated_at", "2015-02-09 20:44:07.304892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
543
673
   (0.1ms) RELEASE SAVEPOINT active_record_2
544
674
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-02-08 15:03:41.789627"], ["updated_at", "2015-02-08 15:03:41.789627"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-02-09 20:44:07.307387"], ["updated_at", "2015-02-09 20:44:07.307387"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
546
676
   (0.1ms) RELEASE SAVEPOINT active_record_2
547
677
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-02-08 15:03:41.792310"], ["updated_at", "2015-02-08 15:03:41.792310"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-02-09 20:44:07.309894"], ["updated_at", "2015-02-09 20:44:07.309894"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
549
679
   (0.1ms) RELEASE SAVEPOINT active_record_2
550
680
  Processing by PushType::WysiwygMediaController#index as JSON
551
- Parameters: {"filter"=>"file", "page"=>2}
552
- 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
553
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
554
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
681
+ Parameters: {"filter"=>"image"}
682
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
683
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
684
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
555
685
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
556
686
   (0.1ms) ROLLBACK
557
687
   (0.1ms) BEGIN
558
- ----------------------------------------------------------------------------------
559
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
560
- ----------------------------------------------------------------------------------
688
+ ---------------------------------------------------------------------------------------
689
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
690
+ ---------------------------------------------------------------------------------------
691
+  (0.1ms) SAVEPOINT active_record_1
692
+  (0.1ms) RELEASE SAVEPOINT active_record_1
561
693
   (0.1ms) SAVEPOINT active_record_1
562
-  (0.0ms) RELEASE SAVEPOINT active_record_1
563
-  (0.0ms) SAVEPOINT active_record_1
564
694
   (0.1ms) SAVEPOINT active_record_2
565
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "127"], ["created_at", "2015-02-08 15:03:41.803679"], ["updated_at", "2015-02-08 15:03:41.803679"], ["file_ext", "png"], ["mime_type", "image/png"]]
695
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "134"], ["created_at", "2015-02-09 20:44:07.327918"], ["updated_at", "2015-02-09 20:44:07.327918"], ["file_ext", "png"], ["mime_type", "image/png"]]
566
696
   (0.1ms) RELEASE SAVEPOINT active_record_2
567
697
   (0.1ms) SAVEPOINT active_record_2
568
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-02-08 15:03:41.806338"], ["updated_at", "2015-02-08 15:03:41.806338"], ["file_ext", "png"], ["mime_type", "image/png"]]
698
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "135"], ["created_at", "2015-02-09 20:44:07.330632"], ["updated_at", "2015-02-09 20:44:07.330632"], ["file_ext", "png"], ["mime_type", "image/png"]]
569
699
   (0.1ms) RELEASE SAVEPOINT active_record_2
570
700
   (0.1ms) SAVEPOINT active_record_2
571
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-02-08 15:03:41.808772"], ["updated_at", "2015-02-08 15:03:41.808772"], ["file_ext", "png"], ["mime_type", "image/png"]]
701
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "136"], ["created_at", "2015-02-09 20:44:07.333139"], ["updated_at", "2015-02-09 20:44:07.333139"], ["file_ext", "png"], ["mime_type", "image/png"]]
572
702
   (0.1ms) RELEASE SAVEPOINT active_record_2
573
703
   (0.1ms) SAVEPOINT active_record_2
574
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-02-08 15:03:41.811369"], ["updated_at", "2015-02-08 15:03:41.811369"], ["file_ext", "png"], ["mime_type", "image/png"]]
704
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-02-09 20:44:07.335601"], ["updated_at", "2015-02-09 20:44:07.335601"], ["file_ext", "png"], ["mime_type", "image/png"]]
575
705
   (0.1ms) RELEASE SAVEPOINT active_record_2
576
706
   (0.1ms) SAVEPOINT active_record_2
577
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-02-08 15:03:41.814070"], ["updated_at", "2015-02-08 15:03:41.814070"], ["file_ext", "png"], ["mime_type", "image/png"]]
707
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-02-09 20:44:07.338177"], ["updated_at", "2015-02-09 20:44:07.338177"], ["file_ext", "png"], ["mime_type", "image/png"]]
578
708
   (0.1ms) RELEASE SAVEPOINT active_record_2
579
709
   (0.1ms) SAVEPOINT active_record_2
580
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-02-08 15:03:41.816702"], ["updated_at", "2015-02-08 15:03:41.816702"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
710
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-02-09 20:44:07.340725"], ["updated_at", "2015-02-09 20:44:07.340725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
711
   (0.1ms) RELEASE SAVEPOINT active_record_2
582
712
   (0.1ms) SAVEPOINT active_record_2
583
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-02-08 15:03:41.819182"], ["updated_at", "2015-02-08 15:03:41.819182"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
713
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-02-09 20:44:07.343272"], ["updated_at", "2015-02-09 20:44:07.343272"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
714
   (0.1ms) RELEASE SAVEPOINT active_record_2
585
715
   (0.1ms) SAVEPOINT active_record_2
586
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-02-08 15:03:41.821790"], ["updated_at", "2015-02-08 15:03:41.821790"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
716
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-02-09 20:44:07.345780"], ["updated_at", "2015-02-09 20:44:07.345780"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
717
   (0.1ms) RELEASE SAVEPOINT active_record_2
588
718
   (0.1ms) SAVEPOINT active_record_2
589
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-02-08 15:03:41.824332"], ["updated_at", "2015-02-08 15:03:41.824332"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
719
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-02-09 20:44:07.348314"], ["updated_at", "2015-02-09 20:44:07.348314"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
720
   (0.1ms) RELEASE SAVEPOINT active_record_2
591
721
   (0.1ms) SAVEPOINT active_record_2
592
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-02-08 15:03:41.827029"], ["updated_at", "2015-02-08 15:03:41.827029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
722
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-02-09 20:44:07.350984"], ["updated_at", "2015-02-09 20:44:07.350984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
593
723
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
724
   (0.1ms) SAVEPOINT active_record_2
595
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-02-08 15:03:41.829499"], ["updated_at", "2015-02-08 15:03:41.829499"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
725
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-02-09 20:44:07.353699"], ["updated_at", "2015-02-09 20:44:07.353699"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
596
726
   (0.1ms) RELEASE SAVEPOINT active_record_2
597
727
   (0.1ms) SAVEPOINT active_record_2
598
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-02-08 15:03:41.832169"], ["updated_at", "2015-02-08 15:03:41.832169"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
728
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-02-09 20:44:07.380420"], ["updated_at", "2015-02-09 20:44:07.380420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
599
729
   (0.1ms) RELEASE SAVEPOINT active_record_2
600
730
   (0.1ms) SAVEPOINT active_record_2
601
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-02-08 15:03:41.834748"], ["updated_at", "2015-02-08 15:03:41.834748"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
731
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-02-09 20:44:07.383399"], ["updated_at", "2015-02-09 20:44:07.383399"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
602
732
   (0.1ms) RELEASE SAVEPOINT active_record_2
603
733
   (0.1ms) SAVEPOINT active_record_2
604
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-02-08 15:03:41.837607"], ["updated_at", "2015-02-08 15:03:41.837607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
734
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-02-09 20:44:07.389519"], ["updated_at", "2015-02-09 20:44:07.389519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
605
735
   (0.1ms) RELEASE SAVEPOINT active_record_2
606
736
   (0.1ms) SAVEPOINT active_record_2
607
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-02-08 15:03:41.840189"], ["updated_at", "2015-02-08 15:03:41.840189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
737
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-02-09 20:44:07.392049"], ["updated_at", "2015-02-09 20:44:07.392049"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
608
738
   (0.1ms) RELEASE SAVEPOINT active_record_2
609
739
   (0.1ms) SAVEPOINT active_record_2
610
- 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", "142"], ["created_at", "2015-02-08 15:03:41.842717"], ["updated_at", "2015-02-08 15:03:41.842717"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
740
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-02-09 20:44:07.394789"], ["updated_at", "2015-02-09 20:44:07.394789"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
611
741
   (0.1ms) RELEASE SAVEPOINT active_record_2
612
742
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-02-08 15:03:41.845439"], ["updated_at", "2015-02-08 15:03:41.845439"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
743
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-02-09 20:44:07.397459"], ["updated_at", "2015-02-09 20:44:07.397459"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
614
744
   (0.1ms) RELEASE SAVEPOINT active_record_2
615
745
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-02-08 15:03:41.848222"], ["updated_at", "2015-02-08 15:03:41.848222"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
746
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-02-09 20:44:07.400184"], ["updated_at", "2015-02-09 20:44:07.400184"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
617
747
   (0.1ms) RELEASE SAVEPOINT active_record_2
618
748
  Processing by PushType::WysiwygMediaController#index as JSON
619
- Parameters: {"filter"=>"file", "page"=>2}
620
- 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
621
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
622
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
749
+ Parameters: {"filter"=>"image"}
750
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
751
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
752
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
623
753
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
624
754
   (0.1ms) ROLLBACK
625
755
   (0.1ms) BEGIN
@@ -628,40 +758,40 @@ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
628
758
  -----------------------------------------------------------------------
629
759
   (0.1ms) SAVEPOINT active_record_1
630
760
   (0.1ms) RELEASE SAVEPOINT active_record_1
631
-  (0.1ms) SAVEPOINT active_record_1
761
+  (0.0ms) SAVEPOINT active_record_1
632
762
   (0.1ms) SAVEPOINT active_record_2
633
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "145"], ["created_at", "2015-02-08 15:03:41.860979"], ["updated_at", "2015-02-08 15:03:41.860979"], ["file_ext", "png"], ["mime_type", "image/png"]]
763
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-02-09 20:44:07.421263"], ["updated_at", "2015-02-09 20:44:07.421263"], ["file_ext", "png"], ["mime_type", "image/png"]]
634
764
   (0.1ms) RELEASE SAVEPOINT active_record_2
635
765
   (0.1ms) SAVEPOINT active_record_2
636
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-02-08 15:03:41.863748"], ["updated_at", "2015-02-08 15:03:41.863748"], ["file_ext", "png"], ["mime_type", "image/png"]]
766
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-02-09 20:44:07.424120"], ["updated_at", "2015-02-09 20:44:07.424120"], ["file_ext", "png"], ["mime_type", "image/png"]]
637
767
   (0.1ms) RELEASE SAVEPOINT active_record_2
638
768
   (0.1ms) SAVEPOINT active_record_2
639
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-02-08 15:03:41.866159"], ["updated_at", "2015-02-08 15:03:41.866159"], ["file_ext", "png"], ["mime_type", "image/png"]]
769
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-02-09 20:44:07.426713"], ["updated_at", "2015-02-09 20:44:07.426713"], ["file_ext", "png"], ["mime_type", "image/png"]]
640
770
   (0.1ms) RELEASE SAVEPOINT active_record_2
641
771
   (0.1ms) SAVEPOINT active_record_2
642
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-02-08 15:03:41.868829"], ["updated_at", "2015-02-08 15:03:41.868829"], ["file_ext", "png"], ["mime_type", "image/png"]]
772
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-02-09 20:44:07.429488"], ["updated_at", "2015-02-09 20:44:07.429488"], ["file_ext", "png"], ["mime_type", "image/png"]]
643
773
   (0.1ms) RELEASE SAVEPOINT active_record_2
644
774
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
645
775
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
646
776
   (0.1ms) ROLLBACK
647
777
   (0.1ms) BEGIN
648
778
  -----------------------------------------------------------------------
649
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
779
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
650
780
  -----------------------------------------------------------------------
651
-  (0.1ms) SAVEPOINT active_record_1
781
+  (0.0ms) SAVEPOINT active_record_1
652
782
   (0.0ms) RELEASE SAVEPOINT active_record_1
653
783
   (0.0ms) SAVEPOINT active_record_1
654
784
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "149"], ["created_at", "2015-02-08 15:03:41.873990"], ["updated_at", "2015-02-08 15:03:41.873990"], ["file_ext", "png"], ["mime_type", "image/png"]]
785
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-02-09 20:44:07.434536"], ["updated_at", "2015-02-09 20:44:07.434536"], ["file_ext", "png"], ["mime_type", "image/png"]]
656
786
   (0.1ms) RELEASE SAVEPOINT active_record_2
657
787
   (0.1ms) SAVEPOINT active_record_2
658
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-02-08 15:03:41.876568"], ["updated_at", "2015-02-08 15:03:41.876568"], ["file_ext", "png"], ["mime_type", "image/png"]]
788
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-02-09 20:44:07.437223"], ["updated_at", "2015-02-09 20:44:07.437223"], ["file_ext", "png"], ["mime_type", "image/png"]]
659
789
   (0.1ms) RELEASE SAVEPOINT active_record_2
660
790
   (0.1ms) SAVEPOINT active_record_2
661
- 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", "151"], ["created_at", "2015-02-08 15:03:41.879263"], ["updated_at", "2015-02-08 15:03:41.879263"], ["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", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-02-09 20:44:07.439977"], ["updated_at", "2015-02-09 20:44:07.439977"], ["file_ext", "png"], ["mime_type", "image/png"]]
662
792
   (0.1ms) RELEASE SAVEPOINT active_record_2
663
793
   (0.1ms) SAVEPOINT active_record_2
664
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-02-08 15:03:41.882353"], ["updated_at", "2015-02-08 15:03:41.882353"], ["file_ext", "png"], ["mime_type", "image/png"]]
794
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-02-09 20:44:07.442571"], ["updated_at", "2015-02-09 20:44:07.442571"], ["file_ext", "png"], ["mime_type", "image/png"]]
665
795
   (0.1ms) RELEASE SAVEPOINT active_record_2
666
796
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
667
797
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
@@ -672,638 +802,512 @@ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
672
802
  -----------------------------------------------------------------------
673
803
   (0.1ms) SAVEPOINT active_record_1
674
804
   (0.0ms) RELEASE SAVEPOINT active_record_1
675
-  (0.1ms) SAVEPOINT active_record_1
805
+  (0.0ms) SAVEPOINT active_record_1
676
806
   (0.1ms) SAVEPOINT active_record_2
677
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-02-08 15:03:41.887811"], ["updated_at", "2015-02-08 15:03:41.887811"], ["file_ext", "png"], ["mime_type", "image/png"]]
807
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-02-09 20:44:07.447691"], ["updated_at", "2015-02-09 20:44:07.447691"], ["file_ext", "png"], ["mime_type", "image/png"]]
678
808
   (0.1ms) RELEASE SAVEPOINT active_record_2
679
809
   (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", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-02-08 15:03:41.890492"], ["updated_at", "2015-02-08 15:03:41.890492"], ["file_ext", "png"], ["mime_type", "image/png"]]
810
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-02-09 20:44:07.450209"], ["updated_at", "2015-02-09 20:44:07.450209"], ["file_ext", "png"], ["mime_type", "image/png"]]
681
811
   (0.1ms) RELEASE SAVEPOINT active_record_2
682
812
   (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", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-02-08 15:03:41.893470"], ["updated_at", "2015-02-08 15:03:41.893470"], ["file_ext", "png"], ["mime_type", "image/png"]]
813
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-02-09 20:44:07.453096"], ["updated_at", "2015-02-09 20:44:07.453096"], ["file_ext", "png"], ["mime_type", "image/png"]]
684
814
   (0.1ms) RELEASE SAVEPOINT active_record_2
685
815
   (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", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-02-08 15:03:41.896216"], ["updated_at", "2015-02-08 15:03:41.896216"], ["file_ext", "png"], ["mime_type", "image/png"]]
816
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-02-09 20:44:07.455603"], ["updated_at", "2015-02-09 20:44:07.455603"], ["file_ext", "png"], ["mime_type", "image/png"]]
687
817
   (0.1ms) RELEASE SAVEPOINT active_record_2
688
818
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
689
819
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
690
820
   (0.1ms) ROLLBACK
691
821
   (0.1ms) BEGIN
692
822
  -----------------------------------------------------------------------
693
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
823
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
694
824
  -----------------------------------------------------------------------
695
-  (0.0ms) SAVEPOINT active_record_1
696
-  (0.0ms) RELEASE SAVEPOINT active_record_1
697
-  (0.0ms) SAVEPOINT active_record_1
825
+  (0.1ms) SAVEPOINT active_record_1
826
+  (0.1ms) RELEASE SAVEPOINT active_record_1
827
+  (0.1ms) SAVEPOINT active_record_1
698
828
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-02-08 15:03:41.901325"], ["updated_at", "2015-02-08 15:03:41.901325"], ["file_ext", "png"], ["mime_type", "image/png"]]
829
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-02-09 20:44:07.460949"], ["updated_at", "2015-02-09 20:44:07.460949"], ["file_ext", "png"], ["mime_type", "image/png"]]
700
830
   (0.1ms) RELEASE SAVEPOINT active_record_2
701
831
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-02-08 15:03:41.904140"], ["updated_at", "2015-02-08 15:03:41.904140"], ["file_ext", "png"], ["mime_type", "image/png"]]
832
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-02-09 20:44:07.463923"], ["updated_at", "2015-02-09 20:44:07.463923"], ["file_ext", "png"], ["mime_type", "image/png"]]
703
833
   (0.1ms) RELEASE SAVEPOINT active_record_2
704
834
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-02-08 15:03:41.906811"], ["updated_at", "2015-02-08 15:03:41.906811"], ["file_ext", "png"], ["mime_type", "image/png"]]
835
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-02-09 20:44:07.466596"], ["updated_at", "2015-02-09 20:44:07.466596"], ["file_ext", "png"], ["mime_type", "image/png"]]
706
836
   (0.1ms) RELEASE SAVEPOINT active_record_2
707
837
   (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-02-08 15:03:41.909421"], ["updated_at", "2015-02-08 15:03:41.909421"], ["file_ext", "png"], ["mime_type", "image/png"]]
838
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-02-09 20:44:07.469173"], ["updated_at", "2015-02-09 20:44:07.469173"], ["file_ext", "png"], ["mime_type", "image/png"]]
709
839
   (0.1ms) RELEASE SAVEPOINT active_record_2
710
840
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
711
841
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
712
842
   (0.1ms) ROLLBACK
713
843
   (0.1ms) BEGIN
714
844
  -----------------------------------------------------------------------
715
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
845
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
716
846
  -----------------------------------------------------------------------
717
-  (0.1ms) SAVEPOINT active_record_1
718
-  (0.1ms) RELEASE SAVEPOINT active_record_1
719
-  (0.1ms) SAVEPOINT active_record_1
847
+  (0.0ms) SAVEPOINT active_record_1
848
+  (0.0ms) RELEASE SAVEPOINT active_record_1
849
+  (0.0ms) SAVEPOINT active_record_1
720
850
   (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", "161"], ["created_at", "2015-02-08 15:03:41.915030"], ["updated_at", "2015-02-08 15:03:41.915030"], ["file_ext", "png"], ["mime_type", "image/png"]]
851
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-02-09 20:44:07.474311"], ["updated_at", "2015-02-09 20:44:07.474311"], ["file_ext", "png"], ["mime_type", "image/png"]]
722
852
   (0.1ms) RELEASE SAVEPOINT active_record_2
723
853
   (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", "162"], ["created_at", "2015-02-08 15:03:41.917651"], ["updated_at", "2015-02-08 15:03:41.917651"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-02-09 20:44:07.477052"], ["updated_at", "2015-02-09 20:44:07.477052"], ["file_ext", "png"], ["mime_type", "image/png"]]
725
855
   (0.1ms) RELEASE SAVEPOINT active_record_2
726
856
   (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", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-02-08 15:03:41.920335"], ["updated_at", "2015-02-08 15:03:41.920335"], ["file_ext", "png"], ["mime_type", "image/png"]]
857
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-02-09 20:44:07.479535"], ["updated_at", "2015-02-09 20:44:07.479535"], ["file_ext", "png"], ["mime_type", "image/png"]]
728
858
   (0.1ms) RELEASE SAVEPOINT active_record_2
729
859
   (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", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-02-08 15:03:41.922958"], ["updated_at", "2015-02-08 15:03:41.922958"], ["file_ext", "png"], ["mime_type", "image/png"]]
860
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-02-09 20:44:07.482236"], ["updated_at", "2015-02-09 20:44:07.482236"], ["file_ext", "png"], ["mime_type", "image/png"]]
731
861
   (0.1ms) RELEASE SAVEPOINT active_record_2
732
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
862
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
733
863
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
734
864
   (0.1ms) ROLLBACK
735
865
   (0.1ms) BEGIN
736
- --------------------------------------------------------------------------------
737
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
738
- --------------------------------------------------------------------------------
739
-  (0.0ms) SAVEPOINT active_record_1
740
-  (0.0ms) RELEASE SAVEPOINT active_record_1
741
-  (0.0ms) SAVEPOINT active_record_1
742
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
743
- Processing by PushType::WysiwygMediaController#create as JSON
744
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc998381ff8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-18ym9p3>>}}
745
-  (0.1ms) SAVEPOINT active_record_2
746
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-02-08 15:03:41.941469"], ["updated_at", "2015-02-08 15:03:41.941469"], ["file_ext", "png"], ["mime_type", "image/png"]]
747
-  (0.1ms) RELEASE SAVEPOINT active_record_2
748
- Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.3ms)
749
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
750
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
751
-  (0.1ms) ROLLBACK
752
-  (0.1ms) BEGIN
753
- ----------------------------------------------------------------------
754
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
755
- ----------------------------------------------------------------------
756
-  (0.1ms) SAVEPOINT active_record_1
757
-  (0.1ms) RELEASE SAVEPOINT active_record_1
758
-  (0.0ms) SAVEPOINT active_record_1
759
-  (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", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-02-08 15:03:41.950646"], ["updated_at", "2015-02-08 15:03:41.950646"], ["file_ext", "png"], ["mime_type", "image/png"]]
761
-  (0.1ms) RELEASE SAVEPOINT active_record_2
762
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
763
-  (0.1ms) ROLLBACK
764
-  (0.1ms) BEGIN
765
- ----------------------------------------------------------------------
766
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
767
- ----------------------------------------------------------------------
866
+ -------------------------------------------------------------------------------------
867
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
868
+ -------------------------------------------------------------------------------------
768
869
   (0.1ms) SAVEPOINT active_record_1
769
870
   (0.1ms) RELEASE SAVEPOINT active_record_1
770
-  (0.0ms) SAVEPOINT active_record_1
771
-  (0.1ms) SAVEPOINT active_record_2
772
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-02-08 15:03:41.957992"], ["updated_at", "2015-02-08 15:03:41.957992"], ["file_ext", "png"], ["mime_type", "image/png"]]
773
-  (0.1ms) RELEASE SAVEPOINT active_record_2
774
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
775
-  (0.1ms) ROLLBACK
776
-  (0.1ms) BEGIN
777
- ----------------------------------------------------------------------
778
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
779
- ----------------------------------------------------------------------
780
-  (0.1ms) SAVEPOINT active_record_1
781
-  (0.1ms) RELEASE SAVEPOINT active_record_1
782
-  (0.1ms) SAVEPOINT active_record_1
783
-  (0.1ms) SAVEPOINT active_record_2
784
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-02-08 15:03:41.965121"], ["updated_at", "2015-02-08 15:03:41.965121"], ["file_ext", "png"], ["mime_type", "image/png"]]
785
-  (0.1ms) RELEASE SAVEPOINT active_record_2
786
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
787
-  (0.1ms) ROLLBACK
788
-  (0.1ms) BEGIN
789
- ----------------------------------------------------------------------
790
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
791
- ----------------------------------------------------------------------
792
-  (0.0ms) SAVEPOINT active_record_1
793
-  (0.0ms) RELEASE SAVEPOINT active_record_1
794
-  (0.0ms) SAVEPOINT active_record_1
871
+  (0.1ms) SAVEPOINT active_record_1
872
+ Processing by PushType::WysiwygMediaController#create as JSON
873
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7bb3db8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-3l1xbh>>}}
795
874
   (0.1ms) SAVEPOINT active_record_2
796
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-02-08 15:03:41.971015"], ["updated_at", "2015-02-08 15:03:41.971015"], ["file_ext", "png"], ["mime_type", "image/png"]]
875
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-02-09 20:44:07.491669"], ["updated_at", "2015-02-09 20:44:07.491669"], ["file_ext", "png"], ["mime_type", "image/png"]]
797
876
   (0.1ms) RELEASE SAVEPOINT active_record_2
877
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
798
878
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
799
879
   (0.1ms) ROLLBACK
800
-  (0.1ms) BEGIN
801
- ----------------------------------------------------------------------
802
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
803
- ----------------------------------------------------------------------
880
+  (0.0ms) BEGIN
881
+ -------------------------------------------------------------------------------------
882
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
883
+ -------------------------------------------------------------------------------------
804
884
   (0.0ms) SAVEPOINT active_record_1
805
885
   (0.0ms) RELEASE SAVEPOINT active_record_1
806
-  (0.0ms) SAVEPOINT active_record_1
886
+  (0.1ms) SAVEPOINT active_record_1
887
+ Processing by PushType::WysiwygMediaController#create as JSON
888
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7af0110 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-nqej9p>>}}
807
889
   (0.1ms) SAVEPOINT active_record_2
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", "170"], ["created_at", "2015-02-08 15:03:41.976988"], ["updated_at", "2015-02-08 15:03:41.976988"], ["file_ext", "png"], ["mime_type", "image/png"]]
890
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-02-09 20:44:07.501455"], ["updated_at", "2015-02-09 20:44:07.501455"], ["file_ext", "png"], ["mime_type", "image/png"]]
809
891
   (0.1ms) RELEASE SAVEPOINT active_record_2
892
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
810
893
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
811
894
   (0.1ms) ROLLBACK
812
895
   (0.1ms) BEGIN
813
- ----------------------------------------------------------------------
814
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
815
- ----------------------------------------------------------------------
816
-  (0.1ms) SAVEPOINT active_record_1
896
+ -------------------------------------------------------------------------------------
897
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
898
+ -------------------------------------------------------------------------------------
899
+  (0.0ms) SAVEPOINT active_record_1
817
900
   (0.0ms) RELEASE SAVEPOINT active_record_1
818
901
   (0.0ms) SAVEPOINT active_record_1
902
+ Processing by PushType::WysiwygMediaController#create as JSON
903
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7a6b8e8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-1dii99p>>}}
819
904
   (0.1ms) SAVEPOINT active_record_2
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", "171"], ["created_at", "2015-02-08 15:03:41.983627"], ["updated_at", "2015-02-08 15:03:41.983627"], ["file_ext", "png"], ["mime_type", "image/png"]]
905
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-02-09 20:44:07.511261"], ["updated_at", "2015-02-09 20:44:07.511261"], ["file_ext", "png"], ["mime_type", "image/png"]]
821
906
   (0.1ms) RELEASE SAVEPOINT active_record_2
907
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.4ms)
822
908
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
823
909
   (0.1ms) ROLLBACK
824
910
   (0.1ms) BEGIN
825
- ----------------------------------------------------------------------
826
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
827
- ----------------------------------------------------------------------
911
+ --------------------------------------------------------------------------------------
912
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
913
+ --------------------------------------------------------------------------------------
828
914
   (0.1ms) SAVEPOINT active_record_1
829
915
   (0.1ms) RELEASE SAVEPOINT active_record_1
830
-  (0.1ms) SAVEPOINT active_record_1
831
-  (0.1ms) SAVEPOINT active_record_2
832
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-02-08 15:03:41.990255"], ["updated_at", "2015-02-08 15:03:41.990255"], ["file_ext", "png"], ["mime_type", "image/png"]]
833
-  (0.1ms) RELEASE SAVEPOINT active_record_2
834
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
835
-  (0.1ms) ROLLBACK
836
-  (0.1ms) BEGIN
837
- -----------------------------------------------------------------------
838
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
839
- -----------------------------------------------------------------------
840
-  (0.1ms) SAVEPOINT active_record_1
841
-  (0.1ms) RELEASE SAVEPOINT active_record_1
842
-  (0.0ms) SAVEPOINT active_record_1
843
-  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-02-08 15:03:41.997702"], ["updated_at", "2015-02-08 15:03:41.997702"], ["file_ext", "png"], ["mime_type", "image/png"]]
845
-  (0.1ms) RELEASE SAVEPOINT active_record_2
846
-  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-02-08 15:03:42.000524"], ["updated_at", "2015-02-08 15:03:42.000524"], ["file_ext", "png"], ["mime_type", "image/png"]]
848
-  (0.1ms) RELEASE SAVEPOINT active_record_2
849
-  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-02-08 15:03:42.003097"], ["updated_at", "2015-02-08 15:03:42.003097"], ["file_ext", "png"], ["mime_type", "image/png"]]
851
-  (0.1ms) RELEASE SAVEPOINT active_record_2
852
-  (0.1ms) SAVEPOINT active_record_2
853
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.005615"], ["updated_at", "2015-02-08 15:03:42.005615"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
-  (0.1ms) RELEASE SAVEPOINT active_record_2
855
- 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
856
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
857
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
858
-  (0.1ms) ROLLBACK
859
-  (0.0ms) BEGIN
860
- -----------------------------------------------------------------------
861
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
862
- -----------------------------------------------------------------------
863
-  (0.0ms) SAVEPOINT active_record_1
864
-  (0.0ms) RELEASE SAVEPOINT active_record_1
865
-  (0.0ms) SAVEPOINT active_record_1
866
-  (0.1ms) SAVEPOINT active_record_2
867
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.015448"], ["updated_at", "2015-02-08 15:03:42.015448"], ["file_ext", "png"], ["mime_type", "image/png"]]
868
-  (0.1ms) RELEASE SAVEPOINT active_record_2
916
+  (0.0ms) SAVEPOINT active_record_1
869
917
   (0.1ms) SAVEPOINT active_record_2
870
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.018100"], ["updated_at", "2015-02-08 15:03:42.018100"], ["file_ext", "png"], ["mime_type", "image/png"]]
871
-  (0.1ms) RELEASE SAVEPOINT active_record_2
918
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-02-09 20:44:07.518351"], ["updated_at", "2015-02-09 20:44:07.518351"], ["file_ext", "png"], ["mime_type", "image/png"]]
919
+  (0.2ms) RELEASE SAVEPOINT active_record_2
872
920
   (0.1ms) SAVEPOINT active_record_2
873
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.020612"], ["updated_at", "2015-02-08 15:03:42.020612"], ["file_ext", "png"], ["mime_type", "image/png"]]
921
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-02-09 20:44:07.521549"], ["updated_at", "2015-02-09 20:44:07.521549"], ["file_ext", "png"], ["mime_type", "image/png"]]
874
922
   (0.1ms) RELEASE SAVEPOINT active_record_2
875
923
   (0.1ms) SAVEPOINT active_record_2
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", "180"], ["created_at", "2015-02-08 15:03:42.023163"], ["updated_at", "2015-02-08 15:03:42.023163"], ["file_ext", "png"], ["mime_type", "image/png"]]
924
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-02-09 20:44:07.524995"], ["updated_at", "2015-02-09 20:44:07.524995"], ["file_ext", "png"], ["mime_type", "image/png"]]
877
925
   (0.1ms) RELEASE SAVEPOINT active_record_2
878
- 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
879
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
880
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
881
-  (0.1ms) ROLLBACK
882
-  (0.1ms) BEGIN
883
- -----------------------------------------------------------------------
884
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
885
- -----------------------------------------------------------------------
886
-  (0.0ms) SAVEPOINT active_record_1
887
-  (0.0ms) RELEASE SAVEPOINT active_record_1
888
-  (0.0ms) SAVEPOINT active_record_1
889
926
   (0.1ms) SAVEPOINT active_record_2
890
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-02-08 15:03:42.033498"], ["updated_at", "2015-02-08 15:03:42.033498"], ["file_ext", "png"], ["mime_type", "image/png"]]
927
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-02-09 20:44:07.527794"], ["updated_at", "2015-02-09 20:44:07.527794"], ["file_ext", "png"], ["mime_type", "image/png"]]
891
928
   (0.1ms) RELEASE SAVEPOINT active_record_2
892
929
   (0.1ms) SAVEPOINT active_record_2
893
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-02-08 15:03:42.036279"], ["updated_at", "2015-02-08 15:03:42.036279"], ["file_ext", "png"], ["mime_type", "image/png"]]
930
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-02-09 20:44:07.530519"], ["updated_at", "2015-02-09 20:44:07.530519"], ["file_ext", "png"], ["mime_type", "image/png"]]
894
931
   (0.1ms) RELEASE SAVEPOINT active_record_2
895
932
   (0.1ms) SAVEPOINT active_record_2
896
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-02-08 15:03:42.038943"], ["updated_at", "2015-02-08 15:03:42.038943"], ["file_ext", "png"], ["mime_type", "image/png"]]
933
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-02-09 20:44:07.533331"], ["updated_at", "2015-02-09 20:44:07.533331"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
897
934
   (0.1ms) RELEASE SAVEPOINT active_record_2
898
935
   (0.1ms) SAVEPOINT active_record_2
899
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "184"], ["created_at", "2015-02-08 15:03:42.041497"], ["updated_at", "2015-02-08 15:03:42.041497"], ["file_ext", "png"], ["mime_type", "image/png"]]
936
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-02-09 20:44:07.536064"], ["updated_at", "2015-02-09 20:44:07.536064"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
900
937
   (0.1ms) RELEASE SAVEPOINT active_record_2
901
- 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
902
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
903
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
904
-  (0.1ms) ROLLBACK
905
-  (0.1ms) BEGIN
906
- -----------------------------------------------------------------------
907
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
908
- -----------------------------------------------------------------------
909
-  (0.1ms) SAVEPOINT active_record_1
910
-  (0.0ms) RELEASE SAVEPOINT active_record_1
911
-  (0.0ms) SAVEPOINT active_record_1
912
938
   (0.1ms) SAVEPOINT active_record_2
913
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-02-08 15:03:42.051372"], ["updated_at", "2015-02-08 15:03:42.051372"], ["file_ext", "png"], ["mime_type", "image/png"]]
939
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-02-09 20:44:07.538755"], ["updated_at", "2015-02-09 20:44:07.538755"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
914
940
   (0.1ms) RELEASE SAVEPOINT active_record_2
915
941
   (0.1ms) SAVEPOINT active_record_2
916
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-02-08 15:03:42.054061"], ["updated_at", "2015-02-08 15:03:42.054061"], ["file_ext", "png"], ["mime_type", "image/png"]]
942
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-02-09 20:44:07.541378"], ["updated_at", "2015-02-09 20:44:07.541378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
917
943
   (0.1ms) RELEASE SAVEPOINT active_record_2
918
944
   (0.1ms) SAVEPOINT active_record_2
919
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-02-08 15:03:42.056582"], ["updated_at", "2015-02-08 15:03:42.056582"], ["file_ext", "png"], ["mime_type", "image/png"]]
945
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-02-09 20:44:07.544161"], ["updated_at", "2015-02-09 20:44:07.544161"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
920
946
   (0.1ms) RELEASE SAVEPOINT active_record_2
921
947
   (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", "188"], ["created_at", "2015-02-08 15:03:42.059064"], ["updated_at", "2015-02-08 15:03:42.059064"], ["file_ext", "png"], ["mime_type", "image/png"]]
948
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-02-09 20:44:07.546909"], ["updated_at", "2015-02-09 20:44:07.546909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
923
949
   (0.1ms) RELEASE SAVEPOINT active_record_2
924
- 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
925
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
926
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
927
-  (0.1ms) ROLLBACK
928
-  (0.1ms) BEGIN
929
- -----------------------------------------------------------------------
930
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
931
- -----------------------------------------------------------------------
932
-  (0.0ms) SAVEPOINT active_record_1
933
-  (0.0ms) RELEASE SAVEPOINT active_record_1
934
-  (0.0ms) SAVEPOINT active_record_1
935
950
   (0.1ms) SAVEPOINT active_record_2
936
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-02-08 15:03:42.069156"], ["updated_at", "2015-02-08 15:03:42.069156"], ["file_ext", "png"], ["mime_type", "image/png"]]
951
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-02-09 20:44:07.549573"], ["updated_at", "2015-02-09 20:44:07.549573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
937
952
   (0.1ms) RELEASE SAVEPOINT active_record_2
938
953
   (0.1ms) SAVEPOINT active_record_2
939
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-02-08 15:03:42.071799"], ["updated_at", "2015-02-08 15:03:42.071799"], ["file_ext", "png"], ["mime_type", "image/png"]]
954
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-02-09 20:44:07.552239"], ["updated_at", "2015-02-09 20:44:07.552239"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
940
955
   (0.1ms) RELEASE SAVEPOINT active_record_2
941
956
   (0.1ms) SAVEPOINT active_record_2
942
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-02-08 15:03:42.074354"], ["updated_at", "2015-02-08 15:03:42.074354"], ["file_ext", "png"], ["mime_type", "image/png"]]
957
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-02-09 20:44:07.555035"], ["updated_at", "2015-02-09 20:44:07.555035"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
943
958
   (0.1ms) RELEASE SAVEPOINT active_record_2
944
959
   (0.1ms) SAVEPOINT active_record_2
945
- 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", "192"], ["created_at", "2015-02-08 15:03:42.077056"], ["updated_at", "2015-02-08 15:03:42.077056"], ["file_ext", "png"], ["mime_type", "image/png"]]
960
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-02-09 20:44:07.557652"], ["updated_at", "2015-02-09 20:44:07.557652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
946
961
   (0.1ms) RELEASE SAVEPOINT active_record_2
947
- 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
948
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
949
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
950
-  (0.1ms) ROLLBACK
951
-  (0.1ms) BEGIN
952
- ----------------------------------------------------------------------------------------
953
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
954
- ----------------------------------------------------------------------------------------
955
-  (0.1ms) SAVEPOINT active_record_1
956
-  (0.1ms) RELEASE SAVEPOINT active_record_1
957
-  (0.1ms) SAVEPOINT active_record_1
958
- Processing by PushType::WysiwygMediaController#create as JSON
959
- Parameters: {"asset"=>{}}
960
-  (0.1ms) SAVEPOINT active_record_2
961
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
962
- Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms)
963
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
964
-  (0.1ms) ROLLBACK
965
-  (0.1ms) BEGIN
966
- ----------------------------------------------------------------------------------------
967
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
968
- ----------------------------------------------------------------------------------------
969
-  (0.1ms) SAVEPOINT active_record_1
970
-  (0.0ms) RELEASE SAVEPOINT active_record_1
971
-  (0.0ms) SAVEPOINT active_record_1
972
- Processing by PushType::WysiwygMediaController#create as JSON
973
- Parameters: {"asset"=>{}}
974
-  (0.1ms) SAVEPOINT active_record_2
975
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
976
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
977
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
978
-  (0.1ms) ROLLBACK
979
-  (0.1ms) BEGIN
980
- ----------------------------------------------------------------------------------------
981
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
982
- ----------------------------------------------------------------------------------------
983
-  (0.1ms) SAVEPOINT active_record_1
984
-  (0.0ms) RELEASE SAVEPOINT active_record_1
985
-  (0.0ms) SAVEPOINT active_record_1
986
- Processing by PushType::WysiwygMediaController#create as JSON
987
- Parameters: {"asset"=>{}}
988
962
   (0.1ms) SAVEPOINT active_record_2
989
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
990
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
991
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
992
-  (0.1ms) ROLLBACK
993
-  (0.1ms) BEGIN
994
- -------------------------------------------------------------------------------------
995
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
996
- -------------------------------------------------------------------------------------
997
-  (0.1ms) SAVEPOINT active_record_1
998
-  (0.0ms) RELEASE SAVEPOINT active_record_1
999
-  (0.0ms) SAVEPOINT active_record_1
1000
- Processing by PushType::WysiwygMediaController#create as JSON
1001
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc993b7e8c8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-1vynch4>>}}
1002
-  (0.1ms) SAVEPOINT active_record_2
1003
- 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", "193"], ["created_at", "2015-02-08 15:03:42.110649"], ["updated_at", "2015-02-08 15:03:42.110649"], ["file_ext", "png"], ["mime_type", "image/png"]]
963
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-02-09 20:44:07.560371"], ["updated_at", "2015-02-09 20:44:07.560371"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1004
964
   (0.1ms) RELEASE SAVEPOINT active_record_2
1005
- Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1006
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1007
-  (0.1ms) ROLLBACK
1008
-  (0.1ms) BEGIN
1009
- -------------------------------------------------------------------------------------
1010
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1011
- -------------------------------------------------------------------------------------
1012
-  (0.0ms) SAVEPOINT active_record_1
1013
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1014
-  (0.0ms) SAVEPOINT active_record_1
1015
- Processing by PushType::WysiwygMediaController#create as JSON
1016
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc9939338c0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-fvn14p>>}}
1017
965
   (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", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-02-08 15:03:42.144908"], ["updated_at", "2015-02-08 15:03:42.144908"], ["file_ext", "png"], ["mime_type", "image/png"]]
966
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-02-09 20:44:07.567348"], ["updated_at", "2015-02-09 20:44:07.567348"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1019
967
   (0.1ms) RELEASE SAVEPOINT active_record_2
1020
- Completed 200 OK in 29ms (Views: 0.1ms | ActiveRecord: 0.4ms)
1021
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1022
-  (0.1ms) ROLLBACK
1023
-  (0.1ms) BEGIN
1024
- -------------------------------------------------------------------------------------
1025
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1026
- -------------------------------------------------------------------------------------
1027
-  (0.1ms) SAVEPOINT active_record_1
1028
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1029
-  (0.0ms) SAVEPOINT active_record_1
1030
- Processing by PushType::WysiwygMediaController#create as JSON
1031
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fc998389208 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150208-6215-4ic234>>}}
1032
968
   (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", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-02-08 15:03:42.154295"], ["updated_at", "2015-02-08 15:03:42.154295"], ["file_ext", "png"], ["mime_type", "image/png"]]
969
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-02-09 20:44:07.570010"], ["updated_at", "2015-02-09 20:44:07.570010"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
970
   (0.1ms) RELEASE SAVEPOINT active_record_2
1035
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
971
+ Processing by PushType::WysiwygMediaController#index as JSON
972
+ Parameters: {"filter"=>"file"}
973
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
974
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
975
+ Completed 200 OK in 15ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1036
976
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1037
977
   (0.1ms) ROLLBACK
1038
978
   (0.1ms) BEGIN
1039
- ---------------------------------------------------------------------------------------
1040
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
1041
- ---------------------------------------------------------------------------------------
979
+ --------------------------------------------------------------------------------------
980
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
981
+ --------------------------------------------------------------------------------------
1042
982
   (0.1ms) SAVEPOINT active_record_1
1043
983
   (0.0ms) RELEASE SAVEPOINT active_record_1
1044
984
   (0.0ms) SAVEPOINT active_record_1
1045
985
   (0.1ms) SAVEPOINT active_record_2
1046
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.161767"], ["updated_at", "2015-02-08 15:03:42.161767"], ["file_ext", "png"], ["mime_type", "image/png"]]
986
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-02-09 20:44:07.592910"], ["updated_at", "2015-02-09 20:44:07.592910"], ["file_ext", "png"], ["mime_type", "image/png"]]
1047
987
   (0.1ms) RELEASE SAVEPOINT active_record_2
1048
988
   (0.1ms) SAVEPOINT active_record_2
1049
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.164569"], ["updated_at", "2015-02-08 15:03:42.164569"], ["file_ext", "png"], ["mime_type", "image/png"]]
989
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-02-09 20:44:07.595595"], ["updated_at", "2015-02-09 20:44:07.595595"], ["file_ext", "png"], ["mime_type", "image/png"]]
1050
990
   (0.1ms) RELEASE SAVEPOINT active_record_2
1051
-  (0.2ms) SAVEPOINT active_record_2
1052
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.167469"], ["updated_at", "2015-02-08 15:03:42.167469"], ["file_ext", "png"], ["mime_type", "image/png"]]
991
+  (0.1ms) SAVEPOINT active_record_2
992
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-02-09 20:44:07.598034"], ["updated_at", "2015-02-09 20:44:07.598034"], ["file_ext", "png"], ["mime_type", "image/png"]]
1053
993
   (0.1ms) RELEASE SAVEPOINT active_record_2
1054
994
   (0.1ms) SAVEPOINT active_record_2
1055
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-02-08 15:03:42.170235"], ["updated_at", "2015-02-08 15:03:42.170235"], ["file_ext", "png"], ["mime_type", "image/png"]]
995
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-02-09 20:44:07.600407"], ["updated_at", "2015-02-09 20:44:07.600407"], ["file_ext", "png"], ["mime_type", "image/png"]]
1056
996
   (0.1ms) RELEASE SAVEPOINT active_record_2
1057
997
   (0.1ms) SAVEPOINT active_record_2
1058
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-02-08 15:03:42.172818"], ["updated_at", "2015-02-08 15:03:42.172818"], ["file_ext", "png"], ["mime_type", "image/png"]]
998
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-02-09 20:44:07.603195"], ["updated_at", "2015-02-09 20:44:07.603195"], ["file_ext", "png"], ["mime_type", "image/png"]]
1059
999
   (0.1ms) RELEASE SAVEPOINT active_record_2
1060
1000
   (0.1ms) SAVEPOINT active_record_2
1061
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.175525"], ["updated_at", "2015-02-08 15:03:42.175525"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1001
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-02-09 20:44:07.605901"], ["updated_at", "2015-02-09 20:44:07.605901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1062
1002
   (0.1ms) RELEASE SAVEPOINT active_record_2
1063
1003
   (0.1ms) SAVEPOINT active_record_2
1064
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.178449"], ["updated_at", "2015-02-08 15:03:42.178449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1004
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-02-09 20:44:07.608394"], ["updated_at", "2015-02-09 20:44:07.608394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1065
1005
   (0.1ms) RELEASE SAVEPOINT active_record_2
1066
1006
   (0.1ms) SAVEPOINT active_record_2
1067
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.181163"], ["updated_at", "2015-02-08 15:03:42.181163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1007
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-02-09 20:44:07.610892"], ["updated_at", "2015-02-09 20:44:07.610892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1068
1008
   (0.1ms) RELEASE SAVEPOINT active_record_2
1069
1009
   (0.1ms) SAVEPOINT active_record_2
1070
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.183892"], ["updated_at", "2015-02-08 15:03:42.183892"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1010
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-02-09 20:44:07.613442"], ["updated_at", "2015-02-09 20:44:07.613442"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1071
1011
   (0.1ms) RELEASE SAVEPOINT active_record_2
1072
1012
   (0.1ms) SAVEPOINT active_record_2
1073
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.186610"], ["updated_at", "2015-02-08 15:03:42.186610"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1013
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-02-09 20:44:07.616181"], ["updated_at", "2015-02-09 20:44:07.616181"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1074
1014
   (0.1ms) RELEASE SAVEPOINT active_record_2
1075
-  (0.1ms) SAVEPOINT active_record_2
1076
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.189411"], ["updated_at", "2015-02-08 15:03:42.189411"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1015
+  (0.2ms) SAVEPOINT active_record_2
1016
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-02-09 20:44:07.618715"], ["updated_at", "2015-02-09 20:44:07.618715"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1077
1017
   (0.1ms) RELEASE SAVEPOINT active_record_2
1078
1018
   (0.1ms) SAVEPOINT active_record_2
1079
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.192939"], ["updated_at", "2015-02-08 15:03:42.192939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1019
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-02-09 20:44:07.621290"], ["updated_at", "2015-02-09 20:44:07.621290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1080
1020
   (0.1ms) RELEASE SAVEPOINT active_record_2
1081
1021
   (0.1ms) SAVEPOINT active_record_2
1082
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.195685"], ["updated_at", "2015-02-08 15:03:42.195685"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1022
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-02-09 20:44:07.623716"], ["updated_at", "2015-02-09 20:44:07.623716"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1083
1023
   (0.1ms) RELEASE SAVEPOINT active_record_2
1084
1024
   (0.1ms) SAVEPOINT active_record_2
1085
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.198314"], ["updated_at", "2015-02-08 15:03:42.198314"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1025
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-02-09 20:44:07.626706"], ["updated_at", "2015-02-09 20:44:07.626706"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1086
1026
   (0.1ms) RELEASE SAVEPOINT active_record_2
1087
1027
   (0.1ms) SAVEPOINT active_record_2
1088
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.200807"], ["updated_at", "2015-02-08 15:03:42.200807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1028
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-02-09 20:44:07.629644"], ["updated_at", "2015-02-09 20:44:07.629644"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1089
1029
   (0.1ms) RELEASE SAVEPOINT active_record_2
1090
1030
   (0.1ms) SAVEPOINT active_record_2
1091
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.203544"], ["updated_at", "2015-02-08 15:03:42.203544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1031
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-02-09 20:44:07.632282"], ["updated_at", "2015-02-09 20:44:07.632282"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1092
1032
   (0.1ms) RELEASE SAVEPOINT active_record_2
1093
1033
   (0.1ms) SAVEPOINT active_record_2
1094
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-02-08 15:03:42.206207"], ["updated_at", "2015-02-08 15:03:42.206207"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-02-09 20:44:07.634798"], ["updated_at", "2015-02-09 20:44:07.634798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1095
1035
   (0.1ms) RELEASE SAVEPOINT active_record_2
1096
1036
   (0.1ms) SAVEPOINT active_record_2
1097
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-02-08 15:03:42.208817"], ["updated_at", "2015-02-08 15:03:42.208817"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-02-09 20:44:07.637527"], ["updated_at", "2015-02-09 20:44:07.637527"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1098
1038
   (0.1ms) RELEASE SAVEPOINT active_record_2
1099
1039
  Processing by PushType::WysiwygMediaController#index as JSON
1100
- Parameters: {"filter"=>"image"}
1101
- 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
1102
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1103
- Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
1040
+ Parameters: {"filter"=>"file"}
1041
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1042
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1043
+ Completed 200 OK in 14ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1104
1044
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1105
-  (0.1ms) ROLLBACK
1045
+  (0.2ms) ROLLBACK
1106
1046
   (0.1ms) BEGIN
1107
- ---------------------------------------------------------------------------------------
1108
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
1109
- ---------------------------------------------------------------------------------------
1110
-  (0.1ms) SAVEPOINT active_record_1
1111
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1047
+ --------------------------------------------------------------------------------------
1048
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1049
+ --------------------------------------------------------------------------------------
1112
1050
   (0.1ms) SAVEPOINT active_record_1
1051
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1052
+  (0.0ms) SAVEPOINT active_record_1
1113
1053
   (0.1ms) SAVEPOINT active_record_2
1114
- 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", "214"], ["created_at", "2015-02-08 15:03:42.227806"], ["updated_at", "2015-02-08 15:03:42.227806"], ["file_ext", "png"], ["mime_type", "image/png"]]
1054
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "211"], ["created_at", "2015-02-09 20:44:07.659519"], ["updated_at", "2015-02-09 20:44:07.659519"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
1055
   (0.1ms) RELEASE SAVEPOINT active_record_2
1116
1056
   (0.1ms) SAVEPOINT active_record_2
1117
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.230689"], ["updated_at", "2015-02-08 15:03:42.230689"], ["file_ext", "png"], ["mime_type", "image/png"]]
1057
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "212"], ["created_at", "2015-02-09 20:44:07.662357"], ["updated_at", "2015-02-09 20:44:07.662357"], ["file_ext", "png"], ["mime_type", "image/png"]]
1118
1058
   (0.1ms) RELEASE SAVEPOINT active_record_2
1119
1059
   (0.1ms) SAVEPOINT active_record_2
1120
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.233274"], ["updated_at", "2015-02-08 15:03:42.233274"], ["file_ext", "png"], ["mime_type", "image/png"]]
1060
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-02-09 20:44:07.664864"], ["updated_at", "2015-02-09 20:44:07.664864"], ["file_ext", "png"], ["mime_type", "image/png"]]
1121
1061
   (0.1ms) RELEASE SAVEPOINT active_record_2
1122
1062
   (0.1ms) SAVEPOINT active_record_2
1123
- 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", "217"], ["created_at", "2015-02-08 15:03:42.235778"], ["updated_at", "2015-02-08 15:03:42.235778"], ["file_ext", "png"], ["mime_type", "image/png"]]
1063
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-02-09 20:44:07.667320"], ["updated_at", "2015-02-09 20:44:07.667320"], ["file_ext", "png"], ["mime_type", "image/png"]]
1124
1064
   (0.1ms) RELEASE SAVEPOINT active_record_2
1125
1065
   (0.1ms) SAVEPOINT active_record_2
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", "218"], ["created_at", "2015-02-08 15:03:42.239189"], ["updated_at", "2015-02-08 15:03:42.239189"], ["file_ext", "png"], ["mime_type", "image/png"]]
1066
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-02-09 20:44:07.669760"], ["updated_at", "2015-02-09 20:44:07.669760"], ["file_ext", "png"], ["mime_type", "image/png"]]
1127
1067
   (0.1ms) RELEASE SAVEPOINT active_record_2
1128
1068
   (0.1ms) SAVEPOINT active_record_2
1129
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.242039"], ["updated_at", "2015-02-08 15:03:42.242039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1069
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-02-09 20:44:07.672328"], ["updated_at", "2015-02-09 20:44:07.672328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1130
1070
   (0.1ms) RELEASE SAVEPOINT active_record_2
1131
1071
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-02-08 15:03:42.244672"], ["updated_at", "2015-02-08 15:03:42.244672"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1072
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-02-09 20:44:07.674910"], ["updated_at", "2015-02-09 20:44:07.674910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1133
1073
   (0.1ms) RELEASE SAVEPOINT active_record_2
1134
1074
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-02-08 15:03:42.247192"], ["updated_at", "2015-02-08 15:03:42.247192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1075
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-02-09 20:44:07.677366"], ["updated_at", "2015-02-09 20:44:07.677366"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
1076
   (0.1ms) RELEASE SAVEPOINT active_record_2
1137
1077
   (0.1ms) SAVEPOINT active_record_2
1138
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.250019"], ["updated_at", "2015-02-08 15:03:42.250019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1078
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-02-09 20:44:07.679888"], ["updated_at", "2015-02-09 20:44:07.679888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1139
1079
   (0.1ms) RELEASE SAVEPOINT active_record_2
1140
1080
   (0.1ms) SAVEPOINT active_record_2
1141
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.252574"], ["updated_at", "2015-02-08 15:03:42.252574"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1081
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-02-09 20:44:07.682383"], ["updated_at", "2015-02-09 20:44:07.682383"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1142
1082
   (0.1ms) RELEASE SAVEPOINT active_record_2
1143
1083
   (0.1ms) SAVEPOINT active_record_2
1144
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.255092"], ["updated_at", "2015-02-08 15:03:42.255092"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1084
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-02-09 20:44:07.685032"], ["updated_at", "2015-02-09 20:44:07.685032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1145
1085
   (0.1ms) RELEASE SAVEPOINT active_record_2
1146
1086
   (0.1ms) SAVEPOINT active_record_2
1147
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.257649"], ["updated_at", "2015-02-08 15:03:42.257649"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1087
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-02-09 20:44:07.687532"], ["updated_at", "2015-02-09 20:44:07.687532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1148
1088
   (0.1ms) RELEASE SAVEPOINT active_record_2
1149
1089
   (0.1ms) SAVEPOINT active_record_2
1150
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.260571"], ["updated_at", "2015-02-08 15:03:42.260571"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1090
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-02-09 20:44:07.690059"], ["updated_at", "2015-02-09 20:44:07.690059"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
1091
   (0.1ms) RELEASE SAVEPOINT active_record_2
1152
1092
   (0.1ms) SAVEPOINT active_record_2
1153
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.263448"], ["updated_at", "2015-02-08 15:03:42.263448"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1093
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-02-09 20:44:07.692708"], ["updated_at", "2015-02-09 20:44:07.692708"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1154
1094
   (0.1ms) RELEASE SAVEPOINT active_record_2
1155
1095
   (0.1ms) SAVEPOINT active_record_2
1156
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.265981"], ["updated_at", "2015-02-08 15:03:42.265981"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1096
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-02-09 20:44:07.695573"], ["updated_at", "2015-02-09 20:44:07.695573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1157
1097
   (0.1ms) RELEASE SAVEPOINT active_record_2
1158
1098
   (0.1ms) SAVEPOINT active_record_2
1159
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.268469"], ["updated_at", "2015-02-08 15:03:42.268469"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1099
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-02-09 20:44:07.698193"], ["updated_at", "2015-02-09 20:44:07.698193"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1160
1100
   (0.1ms) RELEASE SAVEPOINT active_record_2
1161
1101
   (0.1ms) SAVEPOINT active_record_2
1162
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-02-08 15:03:42.271309"], ["updated_at", "2015-02-08 15:03:42.271309"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1102
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-02-09 20:44:07.700707"], ["updated_at", "2015-02-09 20:44:07.700707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1163
1103
   (0.1ms) RELEASE SAVEPOINT active_record_2
1164
1104
   (0.1ms) SAVEPOINT active_record_2
1165
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-02-08 15:03:42.274016"], ["updated_at", "2015-02-08 15:03:42.274016"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1105
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-02-09 20:44:07.703213"], ["updated_at", "2015-02-09 20:44:07.703213"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1166
1106
   (0.1ms) RELEASE SAVEPOINT active_record_2
1167
1107
  Processing by PushType::WysiwygMediaController#index as JSON
1168
- Parameters: {"filter"=>"image"}
1169
- 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
1170
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1171
- Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1108
+ Parameters: {"filter"=>"file"}
1109
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1110
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1111
+ Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.6ms)
1172
1112
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1173
1113
   (0.1ms) ROLLBACK
1174
1114
   (0.1ms) BEGIN
1175
- ---------------------------------------------------------------------------------------
1176
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
1177
- ---------------------------------------------------------------------------------------
1115
+ --------------------------------------------------------------------------------------
1116
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1117
+ --------------------------------------------------------------------------------------
1178
1118
   (0.1ms) SAVEPOINT active_record_1
1179
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1180
1120
   (0.0ms) SAVEPOINT active_record_1
1181
1121
   (0.1ms) SAVEPOINT active_record_2
1182
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.294056"], ["updated_at", "2015-02-08 15:03:42.294056"], ["file_ext", "png"], ["mime_type", "image/png"]]
1122
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-02-09 20:44:07.724519"], ["updated_at", "2015-02-09 20:44:07.724519"], ["file_ext", "png"], ["mime_type", "image/png"]]
1183
1123
   (0.1ms) RELEASE SAVEPOINT active_record_2
1184
1124
   (0.1ms) SAVEPOINT active_record_2
1185
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.297010"], ["updated_at", "2015-02-08 15:03:42.297010"], ["file_ext", "png"], ["mime_type", "image/png"]]
1125
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-02-09 20:44:07.727316"], ["updated_at", "2015-02-09 20:44:07.727316"], ["file_ext", "png"], ["mime_type", "image/png"]]
1186
1126
   (0.1ms) RELEASE SAVEPOINT active_record_2
1187
1127
   (0.1ms) SAVEPOINT active_record_2
1188
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.299660"], ["updated_at", "2015-02-08 15:03:42.299660"], ["file_ext", "png"], ["mime_type", "image/png"]]
1128
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-02-09 20:44:07.753909"], ["updated_at", "2015-02-09 20:44:07.753909"], ["file_ext", "png"], ["mime_type", "image/png"]]
1189
1129
   (0.1ms) RELEASE SAVEPOINT active_record_2
1190
1130
   (0.1ms) SAVEPOINT active_record_2
1191
- 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-02-08 15:03:42.302502"], ["updated_at", "2015-02-08 15:03:42.302502"], ["file_ext", "png"], ["mime_type", "image/png"]]
1131
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-02-09 20:44:07.756754"], ["updated_at", "2015-02-09 20:44:07.756754"], ["file_ext", "png"], ["mime_type", "image/png"]]
1192
1132
   (0.1ms) RELEASE SAVEPOINT active_record_2
1193
1133
   (0.1ms) SAVEPOINT active_record_2
1194
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-02-08 15:03:42.305286"], ["updated_at", "2015-02-08 15:03:42.305286"], ["file_ext", "png"], ["mime_type", "image/png"]]
1134
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-02-09 20:44:07.759600"], ["updated_at", "2015-02-09 20:44:07.759600"], ["file_ext", "png"], ["mime_type", "image/png"]]
1195
1135
   (0.1ms) RELEASE SAVEPOINT active_record_2
1196
1136
   (0.1ms) SAVEPOINT active_record_2
1197
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.307912"], ["updated_at", "2015-02-08 15:03:42.307912"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1137
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "234"], ["created_at", "2015-02-09 20:44:07.762687"], ["updated_at", "2015-02-09 20:44:07.762687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1198
1138
   (0.1ms) RELEASE SAVEPOINT active_record_2
1199
1139
   (0.1ms) SAVEPOINT active_record_2
1200
- 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", "238"], ["created_at", "2015-02-08 15:03:42.310649"], ["updated_at", "2015-02-08 15:03:42.310649"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1140
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "235"], ["created_at", "2015-02-09 20:44:07.765545"], ["updated_at", "2015-02-09 20:44:07.765545"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1201
1141
   (0.1ms) RELEASE SAVEPOINT active_record_2
1202
1142
   (0.1ms) SAVEPOINT active_record_2
1203
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.313327"], ["updated_at", "2015-02-08 15:03:42.313327"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1143
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-02-09 20:44:07.768236"], ["updated_at", "2015-02-09 20:44:07.768236"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1204
1144
   (0.1ms) RELEASE SAVEPOINT active_record_2
1205
1145
   (0.1ms) SAVEPOINT active_record_2
1206
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.316421"], ["updated_at", "2015-02-08 15:03:42.316421"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1146
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-02-09 20:44:07.771021"], ["updated_at", "2015-02-09 20:44:07.771021"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1207
1147
   (0.1ms) RELEASE SAVEPOINT active_record_2
1208
1148
   (0.1ms) SAVEPOINT active_record_2
1209
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.319233"], ["updated_at", "2015-02-08 15:03:42.319233"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-02-09 20:44:07.773568"], ["updated_at", "2015-02-09 20:44:07.773568"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1210
1150
   (0.1ms) RELEASE SAVEPOINT active_record_2
1211
1151
   (0.1ms) SAVEPOINT active_record_2
1212
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.322368"], ["updated_at", "2015-02-08 15:03:42.322368"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-02-09 20:44:07.776350"], ["updated_at", "2015-02-09 20:44:07.776350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1213
1153
   (0.1ms) RELEASE SAVEPOINT active_record_2
1214
1154
   (0.1ms) SAVEPOINT active_record_2
1215
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.325137"], ["updated_at", "2015-02-08 15:03:42.325137"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-02-09 20:44:07.778927"], ["updated_at", "2015-02-09 20:44:07.778927"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1216
1156
   (0.1ms) RELEASE SAVEPOINT active_record_2
1217
1157
   (0.1ms) SAVEPOINT active_record_2
1218
- 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", "244"], ["created_at", "2015-02-08 15:03:42.328310"], ["updated_at", "2015-02-08 15:03:42.328310"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-02-09 20:44:07.781363"], ["updated_at", "2015-02-09 20:44:07.781363"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1219
1159
   (0.1ms) RELEASE SAVEPOINT active_record_2
1220
1160
   (0.1ms) SAVEPOINT active_record_2
1221
- 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", "245"], ["created_at", "2015-02-08 15:03:42.336572"], ["updated_at", "2015-02-08 15:03:42.336572"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1161
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-02-09 20:44:07.784054"], ["updated_at", "2015-02-09 20:44:07.784054"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1222
1162
   (0.1ms) RELEASE SAVEPOINT active_record_2
1223
1163
   (0.1ms) SAVEPOINT active_record_2
1224
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.339375"], ["updated_at", "2015-02-08 15:03:42.339375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1164
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-02-09 20:44:07.786764"], ["updated_at", "2015-02-09 20:44:07.786764"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1225
1165
   (0.1ms) RELEASE SAVEPOINT active_record_2
1226
1166
   (0.1ms) SAVEPOINT active_record_2
1227
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.341847"], ["updated_at", "2015-02-08 15:03:42.341847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1167
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-02-09 20:44:07.789326"], ["updated_at", "2015-02-09 20:44:07.789326"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1228
1168
   (0.1ms) RELEASE SAVEPOINT active_record_2
1229
-  (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", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-02-08 15:03:42.344389"], ["updated_at", "2015-02-08 15:03:42.344389"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1169
+  (0.2ms) SAVEPOINT active_record_2
1170
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-02-09 20:44:07.791841"], ["updated_at", "2015-02-09 20:44:07.791841"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1231
1171
   (0.1ms) RELEASE SAVEPOINT active_record_2
1232
1172
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-02-08 15:03:42.347010"], ["updated_at", "2015-02-08 15:03:42.347010"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1173
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-02-09 20:44:07.794310"], ["updated_at", "2015-02-09 20:44:07.794310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1234
1174
   (0.1ms) RELEASE SAVEPOINT active_record_2
1235
1175
  Processing by PushType::WysiwygMediaController#index as JSON
1236
- Parameters: {"filter"=>"image"}
1237
- 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
1238
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1239
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
1176
+ Parameters: {"filter"=>"file"}
1177
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1178
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1179
+ Completed 200 OK in 13ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1240
1180
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1241
1181
   (0.1ms) ROLLBACK
1242
1182
   (0.1ms) BEGIN
1243
- ---------------------------------------------------------------------------------------
1244
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
1245
- ---------------------------------------------------------------------------------------
1246
-  (0.1ms) SAVEPOINT active_record_1
1247
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1183
+ --------------------------------------------------------------------------------
1184
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1185
+ --------------------------------------------------------------------------------
1248
1186
   (0.1ms) SAVEPOINT active_record_1
1187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1188
+  (0.0ms) SAVEPOINT active_record_1
1189
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1190
+ Processing by PushType::WysiwygMediaController#create as JSON
1191
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9fa7eead88 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150209-10862-xiqlxe>>}}
1192
+  (0.1ms) SAVEPOINT active_record_2
1193
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-02-09 20:44:07.821028"], ["updated_at", "2015-02-09 20:44:07.821028"], ["file_ext", "png"], ["mime_type", "image/png"]]
1194
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1195
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1196
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1197
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1198
+  (0.1ms) ROLLBACK
1199
+  (0.1ms) BEGIN
1200
+ -----------------------------------------------------------------------
1201
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1202
+ -----------------------------------------------------------------------
1203
+  (0.1ms) SAVEPOINT active_record_1
1204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1205
+  (0.1ms) SAVEPOINT active_record_1
1206
+  (0.1ms) SAVEPOINT active_record_2
1207
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-02-09 20:44:07.828760"], ["updated_at", "2015-02-09 20:44:07.828760"], ["file_ext", "png"], ["mime_type", "image/png"]]
1208
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1249
1209
   (0.1ms) SAVEPOINT active_record_2
1250
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08 15:03:42.365865"], ["updated_at", "2015-02-08 15:03:42.365865"], ["file_ext", "png"], ["mime_type", "image/png"]]
1210
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-02-09 20:44:07.831493"], ["updated_at", "2015-02-09 20:44:07.831493"], ["file_ext", "png"], ["mime_type", "image/png"]]
1251
1211
   (0.1ms) RELEASE SAVEPOINT active_record_2
1252
1212
   (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", "251"], ["created_at", "2015-02-08 15:03:42.368547"], ["updated_at", "2015-02-08 15:03:42.368547"], ["file_ext", "png"], ["mime_type", "image/png"]]
1213
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-02-09 20:44:07.834123"], ["updated_at", "2015-02-09 20:44:07.834123"], ["file_ext", "png"], ["mime_type", "image/png"]]
1254
1214
   (0.1ms) RELEASE SAVEPOINT active_record_2
1255
1215
   (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", "252"], ["created_at", "2015-02-08 15:03:42.371030"], ["updated_at", "2015-02-08 15:03:42.371030"], ["file_ext", "png"], ["mime_type", "image/png"]]
1216
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-02-09 20:44:07.836725"], ["updated_at", "2015-02-09 20:44:07.836725"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
1217
   (0.1ms) RELEASE SAVEPOINT active_record_2
1218
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1219
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1220
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1221
+  (0.1ms) ROLLBACK
1222
+  (0.1ms) BEGIN
1223
+ -----------------------------------------------------------------------
1224
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1225
+ -----------------------------------------------------------------------
1226
+  (0.0ms) SAVEPOINT active_record_1
1227
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1228
+  (0.0ms) SAVEPOINT active_record_1
1258
1229
   (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", "253"], ["created_at", "2015-02-08 15:03:42.373553"], ["updated_at", "2015-02-08 15:03:42.373553"], ["file_ext", "png"], ["mime_type", "image/png"]]
1230
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-02-09 20:44:07.846353"], ["updated_at", "2015-02-09 20:44:07.846353"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
1231
   (0.1ms) RELEASE SAVEPOINT active_record_2
1261
1232
   (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", "254"], ["created_at", "2015-02-08 15:03:42.376275"], ["updated_at", "2015-02-08 15:03:42.376275"], ["file_ext", "png"], ["mime_type", "image/png"]]
1233
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-02-09 20:44:07.849257"], ["updated_at", "2015-02-09 20:44:07.849257"], ["file_ext", "png"], ["mime_type", "image/png"]]
1263
1234
   (0.1ms) RELEASE SAVEPOINT active_record_2
1264
1235
   (0.1ms) SAVEPOINT active_record_2
1265
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-02-08 15:03:42.378938"], ["updated_at", "2015-02-08 15:03:42.378938"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1236
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-02-09 20:44:07.851775"], ["updated_at", "2015-02-09 20:44:07.851775"], ["file_ext", "png"], ["mime_type", "image/png"]]
1266
1237
   (0.1ms) RELEASE SAVEPOINT active_record_2
1267
1238
   (0.1ms) SAVEPOINT active_record_2
1268
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-02-08 15:03:42.381363"], ["updated_at", "2015-02-08 15:03:42.381363"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1239
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-02-09 20:44:07.854391"], ["updated_at", "2015-02-09 20:44:07.854391"], ["file_ext", "png"], ["mime_type", "image/png"]]
1269
1240
   (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
1242
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1243
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1244
+  (0.1ms) ROLLBACK
1245
+  (0.1ms) BEGIN
1246
+ -----------------------------------------------------------------------
1247
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1248
+ -----------------------------------------------------------------------
1249
+  (0.0ms) SAVEPOINT active_record_1
1250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1251
+  (0.0ms) SAVEPOINT active_record_1
1270
1252
   (0.1ms) SAVEPOINT active_record_2
1271
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-02-08 15:03:42.383918"], ["updated_at", "2015-02-08 15:03:42.383918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1253
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-02-09 20:44:07.864296"], ["updated_at", "2015-02-09 20:44:07.864296"], ["file_ext", "png"], ["mime_type", "image/png"]]
1272
1254
   (0.1ms) RELEASE SAVEPOINT active_record_2
1273
1255
   (0.1ms) SAVEPOINT active_record_2
1274
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-02-08 15:03:42.386852"], ["updated_at", "2015-02-08 15:03:42.386852"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1256
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-02-09 20:44:07.866976"], ["updated_at", "2015-02-09 20:44:07.866976"], ["file_ext", "png"], ["mime_type", "image/png"]]
1275
1257
   (0.1ms) RELEASE SAVEPOINT active_record_2
1276
1258
   (0.1ms) SAVEPOINT active_record_2
1277
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-02-08 15:03:42.389486"], ["updated_at", "2015-02-08 15:03:42.389486"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1259
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-02-09 20:44:07.869450"], ["updated_at", "2015-02-09 20:44:07.869450"], ["file_ext", "png"], ["mime_type", "image/png"]]
1278
1260
   (0.1ms) RELEASE SAVEPOINT active_record_2
1279
1261
   (0.1ms) SAVEPOINT active_record_2
1280
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-02-08 15:03:42.392006"], ["updated_at", "2015-02-08 15:03:42.392006"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1262
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-02-09 20:44:07.872094"], ["updated_at", "2015-02-09 20:44:07.872094"], ["file_ext", "png"], ["mime_type", "image/png"]]
1281
1263
   (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
1269
+ -----------------------------------------------------------------------
1270
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1271
+ -----------------------------------------------------------------------
1272
+  (0.0ms) SAVEPOINT active_record_1
1273
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1274
+  (0.0ms) SAVEPOINT active_record_1
1282
1275
   (0.1ms) SAVEPOINT active_record_2
1283
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-02-08 15:03:42.394441"], ["updated_at", "2015-02-08 15:03:42.394441"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1276
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-02-09 20:44:07.882003"], ["updated_at", "2015-02-09 20:44:07.882003"], ["file_ext", "png"], ["mime_type", "image/png"]]
1284
1277
   (0.1ms) RELEASE SAVEPOINT active_record_2
1285
1278
   (0.1ms) SAVEPOINT active_record_2
1286
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-02-08 15:03:42.397200"], ["updated_at", "2015-02-08 15:03:42.397200"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-02-09 20:44:07.884951"], ["updated_at", "2015-02-09 20:44:07.884951"], ["file_ext", "png"], ["mime_type", "image/png"]]
1287
1280
   (0.1ms) RELEASE SAVEPOINT active_record_2
1288
1281
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-02-08 15:03:42.400053"], ["updated_at", "2015-02-08 15:03:42.400053"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-02-09 20:44:07.887611"], ["updated_at", "2015-02-09 20:44:07.887611"], ["file_ext", "png"], ["mime_type", "image/png"]]
1290
1283
   (0.1ms) RELEASE SAVEPOINT active_record_2
1291
1284
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-02-08 15:03:42.402677"], ["updated_at", "2015-02-08 15:03:42.402677"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-02-09 20:44:07.890208"], ["updated_at", "2015-02-09 20:44:07.890208"], ["file_ext", "png"], ["mime_type", "image/png"]]
1293
1286
   (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
1288
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
1289
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1290
+  (0.1ms) ROLLBACK
1291
+  (0.1ms) BEGIN
1292
+ -----------------------------------------------------------------------
1293
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1294
+ -----------------------------------------------------------------------
1295
+  (0.1ms) SAVEPOINT active_record_1
1296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1297
+  (0.1ms) SAVEPOINT active_record_1
1294
1298
   (0.1ms) SAVEPOINT active_record_2
1295
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-02-08 15:03:42.405197"], ["updated_at", "2015-02-08 15:03:42.405197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1299
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-02-09 20:44:07.902305"], ["updated_at", "2015-02-09 20:44:07.902305"], ["file_ext", "png"], ["mime_type", "image/png"]]
1296
1300
   (0.1ms) RELEASE SAVEPOINT active_record_2
1297
1301
   (0.1ms) SAVEPOINT active_record_2
1298
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-02-08 15:03:42.407595"], ["updated_at", "2015-02-08 15:03:42.407595"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-02-09 20:44:07.905748"], ["updated_at", "2015-02-09 20:44:07.905748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1299
1303
   (0.1ms) RELEASE SAVEPOINT active_record_2
1300
1304
   (0.1ms) SAVEPOINT active_record_2
1301
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "267"], ["created_at", "2015-02-08 15:03:42.410398"], ["updated_at", "2015-02-08 15:03:42.410398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-02-09 20:44:07.908592"], ["updated_at", "2015-02-09 20:44:07.908592"], ["file_ext", "png"], ["mime_type", "image/png"]]
1302
1306
   (0.1ms) RELEASE SAVEPOINT active_record_2
1303
- Processing by PushType::WysiwygMediaController#index as JSON
1304
- Parameters: {"filter"=>"image"}
1305
- 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
1306
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
1307
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
1308
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1309
-  (0.1ms) ROLLBACK
1307
+  (0.1ms) SAVEPOINT active_record_2
1308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-02-09 20:44:07.911483"], ["updated_at", "2015-02-09 20:44:07.911483"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1310
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1311
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1312
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1313
+  (0.1ms) ROLLBACK