push_type_wysiwyg 0.4.0 → 0.5.0.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. checksums.yaml +4 -4
  2. data/test/dummy/app/assets/javascripts/application.js +1 -1
  3. data/test/dummy/config/initializers/push_type.rb +1 -1
  4. data/test/dummy/config/secrets.yml +2 -2
  5. data/test/dummy/db/migrate/{20150423122757_create_push_type_users.push_type.rb → 20150429164626_create_push_type_users.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20150423122758_create_push_type_nodes.push_type.rb → 20150429164627_create_push_type_nodes.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150423122759_create_push_type_node_hierarchies.push_type.rb → 20150429164628_create_push_type_node_hierarchies.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150423122760_create_push_type_assets.push_type.rb → 20150429164629_create_push_type_assets.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20150423122761_create_push_type_taxonomies.push_type.rb → 20150429164630_create_push_type_taxonomies.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20150423122762_create_push_type_taxonomy_hierarchies.push_type.rb → 20150429164631_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  11. data/test/dummy/db/schema.rb +1 -1
  12. data/test/dummy/log/test.log +656 -656
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/APkO7Y5jGgAltMtew8SHO_mOZoHi4ultsTI-Xfegu7M.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FmSPQu2npp_BNGAl1uB43rU-5z1OzMJ16MFmakAjQ0U.cache +3 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/_dyCheV64NW1k5WoytRgTEE3aOLVNtWTiZ8MqRzF71c.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pcBJDzQJeDhw_S0sAXVzEqXr-q6ocrojEfTAlMgzh4k.cache +2 -0
  17. metadata +28 -24
  18. data/test/dummy/tmp/cache/assets/test/sprockets/a68b91e15fdc16974ff7b8ae47449026 +0 -0
  19. data/test/dummy/tmp/cache/assets/test/sprockets/cdccdf2ac861273d2df93520f5601e1b +0 -0
@@ -1,41 +1,41 @@
1
-  (3.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1
+  (12.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
2
   (1.1ms) 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 (20150423122757)
4
+ Migrating to CreatePushTypeUsers (20150429164626)
5
5
   (0.1ms) BEGIN
6
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423122757"]]
6
+ SQL (1.8ms) 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 NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164626"]]
9
9
   (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150423122758)
10
+ Migrating to CreatePushTypeNodes (20150429164627)
11
11
   (0.1ms) BEGIN
12
-  (2.0ms) 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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423122758"]]
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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164627"]]
14
14
   (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150423122759)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150429164628)
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.9ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
18
+  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.6ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423122759"]]
21
-  (0.3ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150423122760)
23
-  (0.1ms) BEGIN
24
-  (1.9ms) 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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423122760"]]
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164628"]]
26
21
   (0.4ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150423122761)
22
+ Migrating to CreatePushTypeAssets (20150429164629)
23
+  (0.1ms) BEGIN
24
+  (1.8ms) 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 NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164629"]]
26
+  (0.5ms) COMMIT
27
+ Migrating to CreatePushTypeTaxonomies (20150429164630)
28
28
   (0.1ms) BEGIN
29
29
   (1.7ms) CREATE TABLE "push_type_taxonomies" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "parent_id" uuid, "sort_order" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
30
30
   (0.2ms) ALTER TABLE "push_type_assets" ADD "tags" character varying[]
31
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423122761"]]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164630"]]
32
32
   (0.4ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150423122762)
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150429164631)
34
34
   (0.1ms) BEGIN
35
35
   (0.4ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
-  (0.8ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
-  (0.6ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150423122762"]]
36
+  (0.6ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
+  (0.5ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164631"]]
39
39
   (0.4ms) COMMIT
40
40
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
41
   (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
@@ -111,1240 +111,1240 @@ WHERE c.contype = 'f'
111
111
  ORDER BY c.conname
112
112
 
113
113
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
-  (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_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
115
-  (0.9ms)  SELECT schemaname || '.' || tablename
114
+  (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_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
115
+  (1.0ms)  SELECT schemaname || '.' || tablename
116
116
  FROM pg_tables
117
117
  WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
118
118
  
119
119
   (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
120
-  (10.8ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
120
+  (10.4ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
121
121
   (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" 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;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
122
122
   (0.1ms) BEGIN
123
- --------------------------------------------------------------------------------
124
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
125
- --------------------------------------------------------------------------------
123
+ -----------------------------------------------------------------------
124
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
125
+ -----------------------------------------------------------------------
126
126
   (0.1ms) SAVEPOINT active_record_1
127
127
   (0.1ms) RELEASE SAVEPOINT active_record_1
128
-  (0.0ms) SAVEPOINT active_record_1
129
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
130
- Processing by PushType::WysiwygMediaController#create as JSON
131
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f80bf3306c0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150423-5516-1sranfu>>}}
128
+  (0.1ms) SAVEPOINT active_record_1
129
+  (0.1ms) SAVEPOINT active_record_2
130
+ 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-04-29 16:46:31.807319"], ["updated_at", "2015-04-29 16:46:31.807319"], ["file_ext", "png"], ["mime_type", "image/png"]]
131
+  (0.1ms) RELEASE SAVEPOINT active_record_2
132
+  (0.1ms) SAVEPOINT active_record_2
133
+ 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", "2"], ["created_at", "2015-04-29 16:46:31.838604"], ["updated_at", "2015-04-29 16:46:31.838604"], ["file_ext", "png"], ["mime_type", "image/png"]]
134
+  (0.1ms) RELEASE SAVEPOINT active_record_2
135
+  (0.1ms) SAVEPOINT active_record_2
136
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.841290"], ["updated_at", "2015-04-29 16:46:31.841290"], ["file_ext", "png"], ["mime_type", "image/png"]]
137
+  (0.1ms) RELEASE SAVEPOINT active_record_2
132
138
   (0.1ms) SAVEPOINT active_record_2
133
- SQL (0.6ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.356271"], ["updated_at", "2015-04-23 12:28:02.356271"], ["file_ext", "png"], ["mime_type", "image/png"]]
139
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.843569"], ["updated_at", "2015-04-29 16:46:31.843569"], ["file_ext", "png"], ["mime_type", "image/png"]]
134
140
   (0.1ms) RELEASE SAVEPOINT active_record_2
135
- Completed 200 OK in 22ms (Views: 0.2ms | ActiveRecord: 1.5ms)
136
141
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
137
142
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
138
143
   (0.1ms) ROLLBACK
139
144
   (0.1ms) BEGIN
140
- ---------------------------------------------------------------------------------------
141
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
142
- ---------------------------------------------------------------------------------------
143
-  (0.1ms) SAVEPOINT active_record_1
144
-  (0.1ms) RELEASE SAVEPOINT active_record_1
145
-  (0.1ms) SAVEPOINT active_record_1
145
+ -----------------------------------------------------------------------
146
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
147
+ -----------------------------------------------------------------------
148
+  (0.0ms) SAVEPOINT active_record_1
149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
150
+  (0.0ms) SAVEPOINT active_record_1
146
151
   (0.1ms) SAVEPOINT active_record_2
147
- 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", "2"], ["created_at", "2015-04-23 12:28:02.368320"], ["updated_at", "2015-04-23 12:28:02.368320"], ["file_ext", "png"], ["mime_type", "image/png"]]
152
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-04-29 16:46:31.849887"], ["updated_at", "2015-04-29 16:46:31.849887"], ["file_ext", "png"], ["mime_type", "image/png"]]
148
153
   (0.1ms) RELEASE SAVEPOINT active_record_2
149
154
   (0.1ms) SAVEPOINT active_record_2
150
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.371343"], ["updated_at", "2015-04-23 12:28:02.371343"], ["file_ext", "png"], ["mime_type", "image/png"]]
155
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.852294"], ["updated_at", "2015-04-29 16:46:31.852294"], ["file_ext", "png"], ["mime_type", "image/png"]]
151
156
   (0.1ms) RELEASE SAVEPOINT active_record_2
152
157
   (0.1ms) SAVEPOINT active_record_2
153
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.374130"], ["updated_at", "2015-04-23 12:28:02.374130"], ["file_ext", "png"], ["mime_type", "image/png"]]
158
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.854375"], ["updated_at", "2015-04-29 16:46:31.854375"], ["file_ext", "png"], ["mime_type", "image/png"]]
154
159
   (0.1ms) RELEASE SAVEPOINT active_record_2
155
160
   (0.1ms) SAVEPOINT active_record_2
156
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.376685"], ["updated_at", "2015-04-23 12:28:02.376685"], ["file_ext", "png"], ["mime_type", "image/png"]]
161
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-04-29 16:46:31.856762"], ["updated_at", "2015-04-29 16:46:31.856762"], ["file_ext", "png"], ["mime_type", "image/png"]]
157
162
   (0.1ms) RELEASE SAVEPOINT active_record_2
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", "6"], ["created_at", "2015-04-23 12:28:02.379532"], ["updated_at", "2015-04-23 12:28:02.379532"], ["file_ext", "png"], ["mime_type", "image/png"]]
160
-  (0.1ms) RELEASE SAVEPOINT active_record_2
163
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
164
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
165
+  (0.1ms) ROLLBACK
166
+  (0.1ms) BEGIN
167
+ -----------------------------------------------------------------------
168
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
169
+ -----------------------------------------------------------------------
170
+  (0.0ms) SAVEPOINT active_record_1
171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
172
+  (0.0ms) SAVEPOINT active_record_1
161
173
   (0.1ms) SAVEPOINT active_record_2
162
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.382371"], ["updated_at", "2015-04-23 12:28:02.382371"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
174
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.861615"], ["updated_at", "2015-04-29 16:46:31.861615"], ["file_ext", "png"], ["mime_type", "image/png"]]
163
175
   (0.1ms) RELEASE SAVEPOINT active_record_2
164
176
   (0.1ms) SAVEPOINT active_record_2
165
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.384939"], ["updated_at", "2015-04-23 12:28:02.384939"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
177
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.864227"], ["updated_at", "2015-04-29 16:46:31.864227"], ["file_ext", "png"], ["mime_type", "image/png"]]
166
178
   (0.1ms) RELEASE SAVEPOINT active_record_2
167
179
   (0.1ms) SAVEPOINT active_record_2
168
- 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", "9"], ["created_at", "2015-04-23 12:28:02.387566"], ["updated_at", "2015-04-23 12:28:02.387566"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
180
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.866369"], ["updated_at", "2015-04-29 16:46:31.866369"], ["file_ext", "png"], ["mime_type", "image/png"]]
169
181
   (0.1ms) RELEASE SAVEPOINT active_record_2
170
182
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-04-23 12:28:02.390513"], ["updated_at", "2015-04-23 12:28:02.390513"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "12"], ["created_at", "2015-04-29 16:46:31.868384"], ["updated_at", "2015-04-29 16:46:31.868384"], ["file_ext", "png"], ["mime_type", "image/png"]]
172
184
   (0.1ms) RELEASE SAVEPOINT active_record_2
173
-  (0.1ms) SAVEPOINT active_record_2
174
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.393151"], ["updated_at", "2015-04-23 12:28:02.393151"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
175
-  (0.1ms) RELEASE SAVEPOINT active_record_2
185
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
186
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
187
+  (0.1ms) ROLLBACK
188
+  (0.1ms) BEGIN
189
+ -----------------------------------------------------------------------
190
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
191
+ -----------------------------------------------------------------------
192
+  (0.1ms) SAVEPOINT active_record_1
193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
194
+  (0.0ms) SAVEPOINT active_record_1
176
195
   (0.1ms) SAVEPOINT active_record_2
177
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.395714"], ["updated_at", "2015-04-23 12:28:02.395714"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-04-29 16:46:31.872651"], ["updated_at", "2015-04-29 16:46:31.872651"], ["file_ext", "png"], ["mime_type", "image/png"]]
178
197
   (0.1ms) RELEASE SAVEPOINT active_record_2
179
198
   (0.1ms) SAVEPOINT active_record_2
180
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.398219"], ["updated_at", "2015-04-23 12:28:02.398219"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-04-29 16:46:31.874924"], ["updated_at", "2015-04-29 16:46:31.874924"], ["file_ext", "png"], ["mime_type", "image/png"]]
181
200
   (0.1ms) RELEASE SAVEPOINT active_record_2
182
201
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-04-23 12:28:02.401071"], ["updated_at", "2015-04-23 12:28:02.401071"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-04-29 16:46:31.877178"], ["updated_at", "2015-04-29 16:46:31.877178"], ["file_ext", "png"], ["mime_type", "image/png"]]
184
203
   (0.1ms) RELEASE SAVEPOINT active_record_2
185
204
   (0.1ms) SAVEPOINT active_record_2
186
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.403725"], ["updated_at", "2015-04-23 12:28:02.403725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-04-29 16:46:31.879197"], ["updated_at", "2015-04-29 16:46:31.879197"], ["file_ext", "png"], ["mime_type", "image/png"]]
187
206
   (0.1ms) RELEASE SAVEPOINT active_record_2
188
-  (0.1ms) SAVEPOINT active_record_2
189
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.406559"], ["updated_at", "2015-04-23 12:28:02.406559"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
190
-  (0.1ms) RELEASE SAVEPOINT active_record_2
207
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
208
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
209
+  (0.1ms) ROLLBACK
210
+  (0.1ms) BEGIN
211
+ -----------------------------------------------------------------------
212
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
213
+ -----------------------------------------------------------------------
214
+  (0.1ms) SAVEPOINT active_record_1
215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
216
+  (0.1ms) SAVEPOINT active_record_1
191
217
   (0.1ms) SAVEPOINT active_record_2
192
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.409110"], ["updated_at", "2015-04-23 12:28:02.409110"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
218
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-04-29 16:46:31.883618"], ["updated_at", "2015-04-29 16:46:31.883618"], ["file_ext", "png"], ["mime_type", "image/png"]]
193
219
   (0.1ms) RELEASE SAVEPOINT active_record_2
194
220
   (0.1ms) SAVEPOINT active_record_2
195
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-04-23 12:28:02.411644"], ["updated_at", "2015-04-23 12:28:02.411644"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
221
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["created_at", "2015-04-29 16:46:31.885861"], ["updated_at", "2015-04-29 16:46:31.885861"], ["file_ext", "png"], ["mime_type", "image/png"]]
196
222
   (0.1ms) RELEASE SAVEPOINT active_record_2
197
223
   (0.1ms) SAVEPOINT active_record_2
198
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.414293"], ["updated_at", "2015-04-23 12:28:02.414293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
224
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.887859"], ["updated_at", "2015-04-29 16:46:31.887859"], ["file_ext", "png"], ["mime_type", "image/png"]]
199
225
   (0.1ms) RELEASE SAVEPOINT active_record_2
200
- Processing by PushType::WysiwygMediaController#index as JSON
201
- Parameters: {"filter"=>"image"}
202
- PushType::Asset Load (0.6ms) 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
203
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
204
- Completed 200 OK in 26ms (Views: 0.4ms | ActiveRecord: 0.9ms)
226
+  (0.1ms) SAVEPOINT active_record_2
227
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.889835"], ["updated_at", "2015-04-29 16:46:31.889835"], ["file_ext", "png"], ["mime_type", "image/png"]]
228
+  (0.1ms) RELEASE SAVEPOINT active_record_2
229
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
205
230
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
206
231
   (0.1ms) ROLLBACK
207
232
   (0.1ms) BEGIN
208
- ---------------------------------------------------------------------------------------
209
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
210
- ---------------------------------------------------------------------------------------
233
+ ----------------------------------------------------------------------------------
234
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
235
+ ----------------------------------------------------------------------------------
211
236
   (0.1ms) SAVEPOINT active_record_1
212
237
   (0.0ms) RELEASE SAVEPOINT active_record_1
213
238
   (0.0ms) SAVEPOINT active_record_1
214
239
   (0.1ms) SAVEPOINT active_record_2
215
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.448171"], ["updated_at", "2015-04-23 12:28:02.448171"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-04-29 16:46:31.895068"], ["updated_at", "2015-04-29 16:46:31.895068"], ["file_ext", "png"], ["mime_type", "image/png"]]
216
241
   (0.1ms) RELEASE SAVEPOINT active_record_2
217
242
   (0.1ms) SAVEPOINT active_record_2
218
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.450881"], ["updated_at", "2015-04-23 12:28:02.450881"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-04-29 16:46:31.897525"], ["updated_at", "2015-04-29 16:46:31.897525"], ["file_ext", "png"], ["mime_type", "image/png"]]
219
244
   (0.1ms) RELEASE SAVEPOINT active_record_2
220
245
   (0.1ms) SAVEPOINT active_record_2
221
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.453297"], ["updated_at", "2015-04-23 12:28:02.453297"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-04-29 16:46:31.899476"], ["updated_at", "2015-04-29 16:46:31.899476"], ["file_ext", "png"], ["mime_type", "image/png"]]
222
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
223
248
   (0.1ms) SAVEPOINT active_record_2
224
- SQL (0.5ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.456709"], ["updated_at", "2015-04-23 12:28:02.456709"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-04-29 16:46:31.901545"], ["updated_at", "2015-04-29 16:46:31.901545"], ["file_ext", "png"], ["mime_type", "image/png"]]
225
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
226
251
   (0.1ms) SAVEPOINT active_record_2
227
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-04-23 12:28:02.459918"], ["updated_at", "2015-04-23 12:28:02.459918"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-04-29 16:46:31.903604"], ["updated_at", "2015-04-29 16:46:31.903604"], ["file_ext", "png"], ["mime_type", "image/png"]]
228
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
229
254
   (0.1ms) SAVEPOINT active_record_2
230
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.462500"], ["updated_at", "2015-04-23 12:28:02.462500"], ["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", "26"], ["created_at", "2015-04-29 16:46:31.905876"], ["updated_at", "2015-04-29 16:46:31.905876"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
231
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
232
257
   (0.1ms) SAVEPOINT active_record_2
233
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.464926"], ["updated_at", "2015-04-23 12:28:02.464926"], ["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", "27"], ["created_at", "2015-04-29 16:46:31.908004"], ["updated_at", "2015-04-29 16:46:31.908004"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
234
259
   (0.1ms) RELEASE SAVEPOINT active_record_2
235
260
   (0.1ms) SAVEPOINT active_record_2
236
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.467396"], ["updated_at", "2015-04-23 12:28:02.467396"], ["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", "28"], ["created_at", "2015-04-29 16:46:31.910154"], ["updated_at", "2015-04-29 16:46:31.910154"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
237
262
   (0.1ms) RELEASE SAVEPOINT active_record_2
238
263
   (0.1ms) SAVEPOINT active_record_2
239
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.469928"], ["updated_at", "2015-04-23 12:28:02.469928"], ["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", "29"], ["created_at", "2015-04-29 16:46:31.912333"], ["updated_at", "2015-04-29 16:46:31.912333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
240
265
   (0.1ms) RELEASE SAVEPOINT active_record_2
241
266
   (0.1ms) SAVEPOINT active_record_2
242
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.472423"], ["updated_at", "2015-04-23 12:28:02.472423"], ["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", "30"], ["created_at", "2015-04-29 16:46:31.914440"], ["updated_at", "2015-04-29 16:46:31.914440"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
243
268
   (0.1ms) RELEASE SAVEPOINT active_record_2
244
269
   (0.1ms) SAVEPOINT active_record_2
245
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.474966"], ["updated_at", "2015-04-23 12:28:02.474966"], ["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", "31"], ["created_at", "2015-04-29 16:46:31.916505"], ["updated_at", "2015-04-29 16:46:31.916505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
246
271
   (0.1ms) RELEASE SAVEPOINT active_record_2
247
272
   (0.1ms) SAVEPOINT active_record_2
248
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.477750"], ["updated_at", "2015-04-23 12:28:02.477750"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "32"], ["created_at", "2015-04-29 16:46:31.918655"], ["updated_at", "2015-04-29 16:46:31.918655"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
249
274
   (0.1ms) RELEASE SAVEPOINT active_record_2
250
275
   (0.1ms) SAVEPOINT active_record_2
251
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.480304"], ["updated_at", "2015-04-23 12:28:02.480304"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "33"], ["created_at", "2015-04-29 16:46:31.920718"], ["updated_at", "2015-04-29 16:46:31.920718"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
252
277
   (0.1ms) RELEASE SAVEPOINT active_record_2
253
278
   (0.1ms) SAVEPOINT active_record_2
254
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.482910"], ["updated_at", "2015-04-23 12:28:02.482910"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.922930"], ["updated_at", "2015-04-29 16:46:31.922930"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
255
280
   (0.1ms) RELEASE SAVEPOINT active_record_2
256
281
   (0.1ms) SAVEPOINT active_record_2
257
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.485530"], ["updated_at", "2015-04-23 12:28:02.485530"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.925106"], ["updated_at", "2015-04-29 16:46:31.925106"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
258
283
   (0.1ms) RELEASE SAVEPOINT active_record_2
259
284
   (0.1ms) SAVEPOINT active_record_2
260
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.488030"], ["updated_at", "2015-04-23 12:28:02.488030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.927269"], ["updated_at", "2015-04-29 16:46:31.927269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
261
286
   (0.1ms) RELEASE SAVEPOINT active_record_2
262
287
   (0.1ms) SAVEPOINT active_record_2
263
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.490641"], ["updated_at", "2015-04-23 12:28:02.490641"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
288
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.929536"], ["updated_at", "2015-04-29 16:46:31.929536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
264
289
   (0.1ms) RELEASE SAVEPOINT active_record_2
265
290
   (0.1ms) SAVEPOINT active_record_2
266
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.493556"], ["updated_at", "2015-04-23 12:28:02.493556"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
291
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:31.931633"], ["updated_at", "2015-04-29 16:46:31.931633"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
267
292
   (0.1ms) RELEASE SAVEPOINT active_record_2
268
293
  Processing by PushType::WysiwygMediaController#index as JSON
269
- Parameters: {"filter"=>"image"}
270
- 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
271
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
272
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
294
+ Parameters: {"filter"=>"file", "page"=>2}
295
+ 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
296
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
297
+ Completed 200 OK in 85ms (Views: 0.2ms | ActiveRecord: 0.9ms)
273
298
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
274
299
   (0.1ms) ROLLBACK
275
300
   (0.1ms) BEGIN
276
- ---------------------------------------------------------------------------------------
277
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
278
- ---------------------------------------------------------------------------------------
279
-  (0.1ms) SAVEPOINT active_record_1
280
-  (0.1ms) RELEASE SAVEPOINT active_record_1
301
+ ----------------------------------------------------------------------------------
302
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
303
+ ----------------------------------------------------------------------------------
281
304
   (0.1ms) SAVEPOINT active_record_1
305
+  (0.0ms) RELEASE SAVEPOINT active_record_1
306
+  (0.0ms) SAVEPOINT active_record_1
282
307
   (0.1ms) SAVEPOINT active_record_2
283
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.512154"], ["updated_at", "2015-04-23 12:28:02.512154"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-04-29 16:46:32.024382"], ["updated_at", "2015-04-29 16:46:32.024382"], ["file_ext", "png"], ["mime_type", "image/png"]]
284
309
   (0.1ms) RELEASE SAVEPOINT active_record_2
285
310
   (0.1ms) SAVEPOINT active_record_2
286
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.514749"], ["updated_at", "2015-04-23 12:28:02.514749"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-04-29 16:46:32.027308"], ["updated_at", "2015-04-29 16:46:32.027308"], ["file_ext", "png"], ["mime_type", "image/png"]]
287
312
   (0.1ms) RELEASE SAVEPOINT active_record_2
288
313
   (0.1ms) SAVEPOINT active_record_2
289
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.517293"], ["updated_at", "2015-04-23 12:28:02.517293"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-04-29 16:46:32.029406"], ["updated_at", "2015-04-29 16:46:32.029406"], ["file_ext", "png"], ["mime_type", "image/png"]]
290
315
   (0.1ms) RELEASE SAVEPOINT active_record_2
291
316
   (0.1ms) SAVEPOINT active_record_2
292
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.519799"], ["updated_at", "2015-04-23 12:28:02.519799"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-04-29 16:46:32.031358"], ["updated_at", "2015-04-29 16:46:32.031358"], ["file_ext", "png"], ["mime_type", "image/png"]]
293
318
   (0.1ms) RELEASE SAVEPOINT active_record_2
294
319
   (0.1ms) SAVEPOINT active_record_2
295
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-04-23 12:28:02.522505"], ["updated_at", "2015-04-23 12:28:02.522505"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2015-04-29 16:46:32.033321"], ["updated_at", "2015-04-29 16:46:32.033321"], ["file_ext", "png"], ["mime_type", "image/png"]]
296
321
   (0.1ms) RELEASE SAVEPOINT active_record_2
297
322
   (0.1ms) SAVEPOINT active_record_2
298
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.525016"], ["updated_at", "2015-04-23 12:28:02.525016"], ["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", "44"], ["created_at", "2015-04-29 16:46:32.035335"], ["updated_at", "2015-04-29 16:46:32.035335"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
299
324
   (0.1ms) RELEASE SAVEPOINT active_record_2
300
325
   (0.1ms) SAVEPOINT active_record_2
301
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.527625"], ["updated_at", "2015-04-23 12:28:02.527625"], ["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", "45"], ["created_at", "2015-04-29 16:46:32.037329"], ["updated_at", "2015-04-29 16:46:32.037329"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
302
327
   (0.1ms) RELEASE SAVEPOINT active_record_2
303
328
   (0.1ms) SAVEPOINT active_record_2
304
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.530201"], ["updated_at", "2015-04-23 12:28:02.530201"], ["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", "46"], ["created_at", "2015-04-29 16:46:32.039385"], ["updated_at", "2015-04-29 16:46:32.039385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
305
330
   (0.1ms) RELEASE SAVEPOINT active_record_2
306
331
   (0.1ms) SAVEPOINT active_record_2
307
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.532888"], ["updated_at", "2015-04-23 12:28:02.532888"], ["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", "47"], ["created_at", "2015-04-29 16:46:32.041345"], ["updated_at", "2015-04-29 16:46:32.041345"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
308
333
   (0.1ms) RELEASE SAVEPOINT active_record_2
309
334
   (0.1ms) SAVEPOINT active_record_2
310
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.535456"], ["updated_at", "2015-04-23 12:28:02.535456"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "48"], ["created_at", "2015-04-29 16:46:32.043260"], ["updated_at", "2015-04-29 16:46:32.043260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
311
336
   (0.1ms) RELEASE SAVEPOINT active_record_2
312
337
   (0.1ms) SAVEPOINT active_record_2
313
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.538026"], ["updated_at", "2015-04-23 12:28:02.538026"], ["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", "49"], ["created_at", "2015-04-29 16:46:32.045243"], ["updated_at", "2015-04-29 16:46:32.045243"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
314
339
   (0.1ms) RELEASE SAVEPOINT active_record_2
315
340
   (0.1ms) SAVEPOINT active_record_2
316
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.540772"], ["updated_at", "2015-04-23 12:28:02.540772"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "50"], ["created_at", "2015-04-29 16:46:32.047159"], ["updated_at", "2015-04-29 16:46:32.047159"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
317
342
   (0.1ms) RELEASE SAVEPOINT active_record_2
318
343
   (0.1ms) SAVEPOINT active_record_2
319
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.543532"], ["updated_at", "2015-04-23 12:28:02.543532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "51"], ["created_at", "2015-04-29 16:46:32.049218"], ["updated_at", "2015-04-29 16:46:32.049218"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
320
345
   (0.1ms) RELEASE SAVEPOINT active_record_2
321
346
   (0.1ms) SAVEPOINT active_record_2
322
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.546454"], ["updated_at", "2015-04-23 12:28:02.546454"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
347
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.051265"], ["updated_at", "2015-04-29 16:46:32.051265"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
323
348
   (0.1ms) RELEASE SAVEPOINT active_record_2
324
349
   (0.1ms) SAVEPOINT active_record_2
325
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.549068"], ["updated_at", "2015-04-23 12:28:02.549068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
350
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.053290"], ["updated_at", "2015-04-29 16:46:32.053290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
326
351
   (0.1ms) RELEASE SAVEPOINT active_record_2
327
352
   (0.1ms) SAVEPOINT active_record_2
328
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.551634"], ["updated_at", "2015-04-23 12:28:02.551634"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
353
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.055174"], ["updated_at", "2015-04-29 16:46:32.055174"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
329
354
   (0.1ms) RELEASE SAVEPOINT active_record_2
330
355
   (0.1ms) SAVEPOINT active_record_2
331
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.554303"], ["updated_at", "2015-04-23 12:28:02.554303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
356
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.057251"], ["updated_at", "2015-04-29 16:46:32.057251"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
332
357
   (0.1ms) RELEASE SAVEPOINT active_record_2
333
358
   (0.1ms) SAVEPOINT active_record_2
334
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.556919"], ["updated_at", "2015-04-23 12:28:02.556919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
359
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.059554"], ["updated_at", "2015-04-29 16:46:32.059554"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
335
360
   (0.1ms) RELEASE SAVEPOINT active_record_2
336
361
  Processing by PushType::WysiwygMediaController#index as JSON
337
- Parameters: {"filter"=>"image"}
338
- 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
339
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
340
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
362
+ Parameters: {"filter"=>"file", "page"=>2}
363
+ PushType::Asset Load (0.2ms) 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
364
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
365
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
341
366
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
342
-  (0.1ms) ROLLBACK
367
+  (0.2ms) ROLLBACK
343
368
   (0.1ms) BEGIN
344
- ---------------------------------------------------------------------------------------
345
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
346
- ---------------------------------------------------------------------------------------
347
-  (0.1ms) SAVEPOINT active_record_1
348
-  (0.1ms) RELEASE SAVEPOINT active_record_1
369
+ ----------------------------------------------------------------------------------
370
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
371
+ ----------------------------------------------------------------------------------
349
372
   (0.1ms) SAVEPOINT active_record_1
373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
374
+  (0.0ms) SAVEPOINT active_record_1
350
375
   (0.1ms) SAVEPOINT active_record_2
351
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.576040"], ["updated_at", "2015-04-23 12:28:02.576040"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-04-29 16:46:32.067867"], ["updated_at", "2015-04-29 16:46:32.067867"], ["file_ext", "png"], ["mime_type", "image/png"]]
352
377
   (0.1ms) RELEASE SAVEPOINT active_record_2
353
378
   (0.1ms) SAVEPOINT active_record_2
354
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.578915"], ["updated_at", "2015-04-23 12:28:02.578915"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-04-29 16:46:32.069929"], ["updated_at", "2015-04-29 16:46:32.069929"], ["file_ext", "png"], ["mime_type", "image/png"]]
355
380
   (0.1ms) RELEASE SAVEPOINT active_record_2
356
381
   (0.1ms) SAVEPOINT active_record_2
357
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.581562"], ["updated_at", "2015-04-23 12:28:02.581562"], ["file_ext", "png"], ["mime_type", "image/png"]]
382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-04-29 16:46:32.071908"], ["updated_at", "2015-04-29 16:46:32.071908"], ["file_ext", "png"], ["mime_type", "image/png"]]
358
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
359
384
   (0.1ms) SAVEPOINT active_record_2
360
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.584143"], ["updated_at", "2015-04-23 12:28:02.584143"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "60"], ["created_at", "2015-04-29 16:46:32.073811"], ["updated_at", "2015-04-29 16:46:32.073811"], ["file_ext", "png"], ["mime_type", "image/png"]]
361
386
   (0.1ms) RELEASE SAVEPOINT active_record_2
362
387
   (0.1ms) SAVEPOINT active_record_2
363
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "60"], ["created_at", "2015-04-23 12:28:02.586779"], ["updated_at", "2015-04-23 12:28:02.586779"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "61"], ["created_at", "2015-04-29 16:46:32.075726"], ["updated_at", "2015-04-29 16:46:32.075726"], ["file_ext", "png"], ["mime_type", "image/png"]]
364
389
   (0.1ms) RELEASE SAVEPOINT active_record_2
365
390
   (0.1ms) SAVEPOINT active_record_2
366
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.615197"], ["updated_at", "2015-04-23 12:28:02.615197"], ["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", "62"], ["created_at", "2015-04-29 16:46:32.077936"], ["updated_at", "2015-04-29 16:46:32.077936"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
367
392
   (0.1ms) RELEASE SAVEPOINT active_record_2
368
393
   (0.1ms) SAVEPOINT active_record_2
369
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.618273"], ["updated_at", "2015-04-23 12:28:02.618273"], ["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", "63"], ["created_at", "2015-04-29 16:46:32.079996"], ["updated_at", "2015-04-29 16:46:32.079996"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
370
395
   (0.1ms) RELEASE SAVEPOINT active_record_2
371
396
   (0.1ms) SAVEPOINT active_record_2
372
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.621078"], ["updated_at", "2015-04-23 12:28:02.621078"], ["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", "64"], ["created_at", "2015-04-29 16:46:32.081991"], ["updated_at", "2015-04-29 16:46:32.081991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
373
398
   (0.1ms) RELEASE SAVEPOINT active_record_2
374
399
   (0.1ms) SAVEPOINT active_record_2
375
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.623831"], ["updated_at", "2015-04-23 12:28:02.623831"], ["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", "65"], ["created_at", "2015-04-29 16:46:32.084031"], ["updated_at", "2015-04-29 16:46:32.084031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
376
401
   (0.1ms) RELEASE SAVEPOINT active_record_2
377
402
   (0.1ms) SAVEPOINT active_record_2
378
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.626596"], ["updated_at", "2015-04-23 12:28:02.626596"], ["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", "66"], ["created_at", "2015-04-29 16:46:32.086001"], ["updated_at", "2015-04-29 16:46:32.086001"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
379
404
   (0.1ms) RELEASE SAVEPOINT active_record_2
380
405
   (0.1ms) SAVEPOINT active_record_2
381
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.629220"], ["updated_at", "2015-04-23 12:28:02.629220"], ["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", "67"], ["created_at", "2015-04-29 16:46:32.088007"], ["updated_at", "2015-04-29 16:46:32.088007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
382
407
   (0.1ms) RELEASE SAVEPOINT active_record_2
383
408
   (0.1ms) SAVEPOINT active_record_2
384
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.631981"], ["updated_at", "2015-04-23 12:28:02.631981"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
409
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.090119"], ["updated_at", "2015-04-29 16:46:32.090119"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
385
410
   (0.1ms) RELEASE SAVEPOINT active_record_2
386
411
   (0.1ms) SAVEPOINT active_record_2
387
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.634754"], ["updated_at", "2015-04-23 12:28:02.634754"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
412
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.092245"], ["updated_at", "2015-04-29 16:46:32.092245"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
388
413
   (0.1ms) RELEASE SAVEPOINT active_record_2
389
414
   (0.1ms) SAVEPOINT active_record_2
390
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.637547"], ["updated_at", "2015-04-23 12:28:02.637547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
415
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.094380"], ["updated_at", "2015-04-29 16:46:32.094380"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
391
416
   (0.1ms) RELEASE SAVEPOINT active_record_2
392
417
   (0.1ms) SAVEPOINT active_record_2
393
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.640150"], ["updated_at", "2015-04-23 12:28:02.640150"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
418
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.096411"], ["updated_at", "2015-04-29 16:46:32.096411"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
394
419
   (0.1ms) RELEASE SAVEPOINT active_record_2
395
420
   (0.1ms) SAVEPOINT active_record_2
396
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.642740"], ["updated_at", "2015-04-23 12:28:02.642740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
421
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.098399"], ["updated_at", "2015-04-29 16:46:32.098399"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
397
422
   (0.1ms) RELEASE SAVEPOINT active_record_2
398
423
   (0.1ms) SAVEPOINT active_record_2
399
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.645457"], ["updated_at", "2015-04-23 12:28:02.645457"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
424
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.100504"], ["updated_at", "2015-04-29 16:46:32.100504"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
400
425
   (0.1ms) RELEASE SAVEPOINT active_record_2
401
426
   (0.1ms) SAVEPOINT active_record_2
402
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.648195"], ["updated_at", "2015-04-23 12:28:02.648195"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
427
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.102717"], ["updated_at", "2015-04-29 16:46:32.102717"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
403
428
   (0.1ms) RELEASE SAVEPOINT active_record_2
404
429
  Processing by PushType::WysiwygMediaController#index as JSON
405
- Parameters: {"filter"=>"image"}
406
- 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
407
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
408
- Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
430
+ Parameters: {"filter"=>"file", "page"=>2}
431
+ 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
432
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
433
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
409
434
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
410
-  (0.2ms) ROLLBACK
435
+  (0.1ms) ROLLBACK
411
436
   (0.1ms) BEGIN
412
437
  ----------------------------------------------------------------------------------
413
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
438
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
414
439
  ----------------------------------------------------------------------------------
415
440
   (0.1ms) SAVEPOINT active_record_1
416
441
   (0.1ms) RELEASE SAVEPOINT active_record_1
417
442
   (0.1ms) SAVEPOINT active_record_1
418
443
   (0.1ms) SAVEPOINT active_record_2
419
- 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", "74"], ["created_at", "2015-04-23 12:28:02.668376"], ["updated_at", "2015-04-23 12:28:02.668376"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-04-29 16:46:32.110611"], ["updated_at", "2015-04-29 16:46:32.110611"], ["file_ext", "png"], ["mime_type", "image/png"]]
420
445
   (0.1ms) RELEASE SAVEPOINT active_record_2
421
446
   (0.1ms) SAVEPOINT active_record_2
422
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.671356"], ["updated_at", "2015-04-23 12:28:02.671356"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-04-29 16:46:32.112685"], ["updated_at", "2015-04-29 16:46:32.112685"], ["file_ext", "png"], ["mime_type", "image/png"]]
423
448
   (0.1ms) RELEASE SAVEPOINT active_record_2
424
449
   (0.1ms) SAVEPOINT active_record_2
425
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.674336"], ["updated_at", "2015-04-23 12:28:02.674336"], ["file_ext", "png"], ["mime_type", "image/png"]]
450
+ 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-04-29 16:46:32.114767"], ["updated_at", "2015-04-29 16:46:32.114767"], ["file_ext", "png"], ["mime_type", "image/png"]]
426
451
   (0.1ms) RELEASE SAVEPOINT active_record_2
427
452
   (0.1ms) SAVEPOINT active_record_2
428
- 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-04-23 12:28:02.676994"], ["updated_at", "2015-04-23 12:28:02.676994"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-04-29 16:46:32.116965"], ["updated_at", "2015-04-29 16:46:32.116965"], ["file_ext", "png"], ["mime_type", "image/png"]]
429
454
   (0.1ms) RELEASE SAVEPOINT active_record_2
430
455
   (0.1ms) SAVEPOINT active_record_2
431
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-04-23 12:28:02.679814"], ["updated_at", "2015-04-23 12:28:02.679814"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-04-29 16:46:32.118969"], ["updated_at", "2015-04-29 16:46:32.118969"], ["file_ext", "png"], ["mime_type", "image/png"]]
432
457
   (0.1ms) RELEASE SAVEPOINT active_record_2
433
458
   (0.1ms) SAVEPOINT active_record_2
434
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.682645"], ["updated_at", "2015-04-23 12:28:02.682645"], ["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", "80"], ["created_at", "2015-04-29 16:46:32.121107"], ["updated_at", "2015-04-29 16:46:32.121107"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
435
460
   (0.1ms) RELEASE SAVEPOINT active_record_2
436
461
   (0.1ms) SAVEPOINT active_record_2
437
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-04-23 12:28:02.685693"], ["updated_at", "2015-04-23 12:28:02.685693"], ["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", "81"], ["created_at", "2015-04-29 16:46:32.123344"], ["updated_at", "2015-04-29 16:46:32.123344"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
438
463
   (0.1ms) RELEASE SAVEPOINT active_record_2
439
464
   (0.1ms) SAVEPOINT active_record_2
440
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.688369"], ["updated_at", "2015-04-23 12:28:02.688369"], ["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", "82"], ["created_at", "2015-04-29 16:46:32.125360"], ["updated_at", "2015-04-29 16:46:32.125360"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
441
466
   (0.1ms) RELEASE SAVEPOINT active_record_2
442
467
   (0.1ms) SAVEPOINT active_record_2
443
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.690969"], ["updated_at", "2015-04-23 12:28:02.690969"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "83"], ["created_at", "2015-04-29 16:46:32.127424"], ["updated_at", "2015-04-29 16:46:32.127424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
444
469
   (0.1ms) RELEASE SAVEPOINT active_record_2
445
470
   (0.1ms) SAVEPOINT active_record_2
446
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.693482"], ["updated_at", "2015-04-23 12:28:02.693482"], ["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", "84"], ["created_at", "2015-04-29 16:46:32.129403"], ["updated_at", "2015-04-29 16:46:32.129403"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
447
472
   (0.1ms) RELEASE SAVEPOINT active_record_2
448
473
   (0.1ms) SAVEPOINT active_record_2
449
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.696783"], ["updated_at", "2015-04-23 12:28:02.696783"], ["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", "85"], ["created_at", "2015-04-29 16:46:32.131622"], ["updated_at", "2015-04-29 16:46:32.131622"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
450
475
   (0.1ms) RELEASE SAVEPOINT active_record_2
451
476
   (0.1ms) SAVEPOINT active_record_2
452
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-04-23 12:28:02.699773"], ["updated_at", "2015-04-23 12:28:02.699773"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "86"], ["created_at", "2015-04-29 16:46:32.133597"], ["updated_at", "2015-04-29 16:46:32.133597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
453
478
   (0.1ms) RELEASE SAVEPOINT active_record_2
454
479
   (0.1ms) SAVEPOINT active_record_2
455
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.702981"], ["updated_at", "2015-04-23 12:28:02.702981"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "87"], ["created_at", "2015-04-29 16:46:32.135545"], ["updated_at", "2015-04-29 16:46:32.135545"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
456
481
   (0.1ms) RELEASE SAVEPOINT active_record_2
457
482
   (0.1ms) SAVEPOINT active_record_2
458
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.705823"], ["updated_at", "2015-04-23 12:28:02.705823"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
483
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.137549"], ["updated_at", "2015-04-29 16:46:32.137549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
459
484
   (0.1ms) RELEASE SAVEPOINT active_record_2
460
485
   (0.1ms) SAVEPOINT active_record_2
461
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.708764"], ["updated_at", "2015-04-23 12:28:02.708764"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
486
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.153674"], ["updated_at", "2015-04-29 16:46:32.153674"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
462
487
   (0.1ms) RELEASE SAVEPOINT active_record_2
463
488
   (0.1ms) SAVEPOINT active_record_2
464
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.711329"], ["updated_at", "2015-04-23 12:28:02.711329"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
489
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.155864"], ["updated_at", "2015-04-29 16:46:32.155864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
465
490
   (0.1ms) RELEASE SAVEPOINT active_record_2
466
491
   (0.1ms) SAVEPOINT active_record_2
467
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.713903"], ["updated_at", "2015-04-23 12:28:02.713903"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
492
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.158076"], ["updated_at", "2015-04-29 16:46:32.158076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
468
493
   (0.1ms) RELEASE SAVEPOINT active_record_2
469
494
   (0.1ms) SAVEPOINT active_record_2
470
- 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", "91"], ["created_at", "2015-04-23 12:28:02.716798"], ["updated_at", "2015-04-23 12:28:02.716798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
495
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.160134"], ["updated_at", "2015-04-29 16:46:32.160134"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
471
496
   (0.1ms) RELEASE SAVEPOINT active_record_2
472
497
  Processing by PushType::WysiwygMediaController#index as JSON
473
498
  Parameters: {"filter"=>"file", "page"=>2}
474
- 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
499
+ PushType::Asset Load (0.2ms) 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
475
500
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
476
- Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.6ms)
501
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
477
502
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
478
503
   (0.1ms) ROLLBACK
479
504
   (0.1ms) BEGIN
480
- ----------------------------------------------------------------------------------
481
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
482
- ----------------------------------------------------------------------------------
505
+ ---------------------------------------------------------------------------------------
506
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
507
+ ---------------------------------------------------------------------------------------
483
508
   (0.1ms) SAVEPOINT active_record_1
484
509
   (0.1ms) RELEASE SAVEPOINT active_record_1
485
-  (0.0ms) SAVEPOINT active_record_1
510
+  (0.1ms) SAVEPOINT active_record_1
486
511
   (0.1ms) SAVEPOINT active_record_2
487
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.733312"], ["updated_at", "2015-04-23 12:28:02.733312"], ["file_ext", "png"], ["mime_type", "image/png"]]
512
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-04-29 16:46:32.169011"], ["updated_at", "2015-04-29 16:46:32.169011"], ["file_ext", "png"], ["mime_type", "image/png"]]
488
513
   (0.1ms) RELEASE SAVEPOINT active_record_2
489
514
   (0.1ms) SAVEPOINT active_record_2
490
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.736400"], ["updated_at", "2015-04-23 12:28:02.736400"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-04-29 16:46:32.171120"], ["updated_at", "2015-04-29 16:46:32.171120"], ["file_ext", "png"], ["mime_type", "image/png"]]
491
516
   (0.1ms) RELEASE SAVEPOINT active_record_2
492
517
   (0.1ms) SAVEPOINT active_record_2
493
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.739134"], ["updated_at", "2015-04-23 12:28:02.739134"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-04-29 16:46:32.173143"], ["updated_at", "2015-04-29 16:46:32.173143"], ["file_ext", "png"], ["mime_type", "image/png"]]
494
519
   (0.1ms) RELEASE SAVEPOINT active_record_2
495
520
   (0.1ms) SAVEPOINT active_record_2
496
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.742129"], ["updated_at", "2015-04-23 12:28:02.742129"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-04-29 16:46:32.175063"], ["updated_at", "2015-04-29 16:46:32.175063"], ["file_ext", "png"], ["mime_type", "image/png"]]
497
522
   (0.1ms) RELEASE SAVEPOINT active_record_2
498
523
   (0.1ms) SAVEPOINT active_record_2
499
- SQL (9.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", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-04-23 12:28:02.745079"], ["updated_at", "2015-04-23 12:28:02.745079"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "97"], ["created_at", "2015-04-29 16:46:32.177063"], ["updated_at", "2015-04-29 16:46:32.177063"], ["file_ext", "png"], ["mime_type", "image/png"]]
500
525
   (0.1ms) RELEASE SAVEPOINT active_record_2
501
526
   (0.1ms) SAVEPOINT active_record_2
502
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.757721"], ["updated_at", "2015-04-23 12:28:02.757721"], ["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", "98"], ["created_at", "2015-04-29 16:46:32.179254"], ["updated_at", "2015-04-29 16:46:32.179254"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
503
528
   (0.1ms) RELEASE SAVEPOINT active_record_2
504
529
   (0.1ms) SAVEPOINT active_record_2
505
- SQL (11.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", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-04-23 12:28:02.760573"], ["updated_at", "2015-04-23 12:28:02.760573"], ["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", "99"], ["created_at", "2015-04-29 16:46:32.181693"], ["updated_at", "2015-04-29 16:46:32.181693"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
506
531
   (0.1ms) RELEASE SAVEPOINT active_record_2
507
532
   (0.1ms) SAVEPOINT active_record_2
508
- 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", "99"], ["created_at", "2015-04-23 12:28:02.775884"], ["updated_at", "2015-04-23 12:28:02.775884"], ["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", "100"], ["created_at", "2015-04-29 16:46:32.184029"], ["updated_at", "2015-04-29 16:46:32.184029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
509
534
   (0.1ms) RELEASE SAVEPOINT active_record_2
510
535
   (0.1ms) SAVEPOINT active_record_2
511
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.778985"], ["updated_at", "2015-04-23 12:28:02.778985"], ["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", "101"], ["created_at", "2015-04-29 16:46:32.186293"], ["updated_at", "2015-04-29 16:46:32.186293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
512
537
   (0.1ms) RELEASE SAVEPOINT active_record_2
513
538
   (0.1ms) SAVEPOINT active_record_2
514
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.781811"], ["updated_at", "2015-04-23 12:28:02.781811"], ["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", "102"], ["created_at", "2015-04-29 16:46:32.188800"], ["updated_at", "2015-04-29 16:46:32.188800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
515
540
   (0.1ms) RELEASE SAVEPOINT active_record_2
516
541
   (0.1ms) SAVEPOINT active_record_2
517
- 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", "102"], ["created_at", "2015-04-23 12:28:02.784482"], ["updated_at", "2015-04-23 12:28:02.784482"], ["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", "103"], ["created_at", "2015-04-29 16:46:32.191453"], ["updated_at", "2015-04-29 16:46:32.191453"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
518
543
   (0.1ms) RELEASE SAVEPOINT active_record_2
519
544
   (0.1ms) SAVEPOINT active_record_2
520
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.787421"], ["updated_at", "2015-04-23 12:28:02.787421"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "104"], ["created_at", "2015-04-29 16:46:32.193816"], ["updated_at", "2015-04-29 16:46:32.193816"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
521
546
   (0.1ms) RELEASE SAVEPOINT active_record_2
522
547
   (0.1ms) SAVEPOINT active_record_2
523
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.790140"], ["updated_at", "2015-04-23 12:28:02.790140"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "105"], ["created_at", "2015-04-29 16:46:32.196099"], ["updated_at", "2015-04-29 16:46:32.196099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
524
549
   (0.1ms) RELEASE SAVEPOINT active_record_2
525
550
   (0.1ms) SAVEPOINT active_record_2
526
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.792792"], ["updated_at", "2015-04-23 12:28:02.792792"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
551
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-04-29 16:46:32.198177"], ["updated_at", "2015-04-29 16:46:32.198177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
527
552
   (0.1ms) RELEASE SAVEPOINT active_record_2
528
553
   (0.1ms) SAVEPOINT active_record_2
529
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.795408"], ["updated_at", "2015-04-23 12:28:02.795408"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
554
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-04-29 16:46:32.200760"], ["updated_at", "2015-04-29 16:46:32.200760"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
530
555
   (0.1ms) RELEASE SAVEPOINT active_record_2
531
556
   (0.1ms) SAVEPOINT active_record_2
532
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-04-23 12:28:02.798086"], ["updated_at", "2015-04-23 12:28:02.798086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-04-29 16:46:32.203706"], ["updated_at", "2015-04-29 16:46:32.203706"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
533
558
   (0.1ms) RELEASE SAVEPOINT active_record_2
534
559
   (0.1ms) SAVEPOINT active_record_2
535
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-04-23 12:28:02.800608"], ["updated_at", "2015-04-23 12:28:02.800608"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
560
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-04-29 16:46:32.206009"], ["updated_at", "2015-04-29 16:46:32.206009"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
536
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
537
562
   (0.1ms) SAVEPOINT active_record_2
538
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-04-23 12:28:02.803225"], ["updated_at", "2015-04-23 12:28:02.803225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
563
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-04-29 16:46:32.208619"], ["updated_at", "2015-04-29 16:46:32.208619"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
539
564
   (0.1ms) RELEASE SAVEPOINT active_record_2
540
565
  Processing by PushType::WysiwygMediaController#index as JSON
541
- Parameters: {"filter"=>"file", "page"=>2}
542
- 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
543
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
544
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
545
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
566
+ Parameters: {"filter"=>"image"}
567
+ 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
568
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
569
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
570
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
546
571
   (0.1ms) ROLLBACK
547
572
   (0.1ms) BEGIN
548
- ----------------------------------------------------------------------------------
549
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
550
- ----------------------------------------------------------------------------------
573
+ ---------------------------------------------------------------------------------------
574
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
575
+ ---------------------------------------------------------------------------------------
551
576
   (0.1ms) SAVEPOINT active_record_1
552
577
   (0.0ms) RELEASE SAVEPOINT active_record_1
553
-  (0.1ms) SAVEPOINT active_record_1
578
+  (0.0ms) SAVEPOINT active_record_1
554
579
   (0.1ms) SAVEPOINT active_record_2
555
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.814090"], ["updated_at", "2015-04-23 12:28:02.814090"], ["file_ext", "png"], ["mime_type", "image/png"]]
556
-  (0.1ms) RELEASE 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", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-04-29 16:46:32.218904"], ["updated_at", "2015-04-29 16:46:32.218904"], ["file_ext", "png"], ["mime_type", "image/png"]]
581
+  (0.2ms) RELEASE SAVEPOINT active_record_2
557
582
   (0.1ms) SAVEPOINT active_record_2
558
- 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", "111"], ["created_at", "2015-04-23 12:28:02.816627"], ["updated_at", "2015-04-23 12:28:02.816627"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-04-29 16:46:32.221425"], ["updated_at", "2015-04-29 16:46:32.221425"], ["file_ext", "png"], ["mime_type", "image/png"]]
559
584
   (0.1ms) RELEASE SAVEPOINT active_record_2
560
585
   (0.1ms) SAVEPOINT active_record_2
561
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.819211"], ["updated_at", "2015-04-23 12:28:02.819211"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-04-29 16:46:32.223813"], ["updated_at", "2015-04-29 16:46:32.223813"], ["file_ext", "png"], ["mime_type", "image/png"]]
562
587
   (0.1ms) RELEASE SAVEPOINT active_record_2
563
588
   (0.1ms) SAVEPOINT active_record_2
564
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.821719"], ["updated_at", "2015-04-23 12:28:02.821719"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-04-29 16:46:32.226107"], ["updated_at", "2015-04-29 16:46:32.226107"], ["file_ext", "png"], ["mime_type", "image/png"]]
565
590
   (0.1ms) RELEASE SAVEPOINT active_record_2
566
591
   (0.1ms) SAVEPOINT active_record_2
567
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-04-23 12:28:02.824310"], ["updated_at", "2015-04-23 12:28:02.824310"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "115"], ["created_at", "2015-04-29 16:46:32.228213"], ["updated_at", "2015-04-29 16:46:32.228213"], ["file_ext", "png"], ["mime_type", "image/png"]]
568
593
   (0.1ms) RELEASE SAVEPOINT active_record_2
569
594
   (0.1ms) SAVEPOINT active_record_2
570
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.826811"], ["updated_at", "2015-04-23 12:28:02.826811"], ["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", "116"], ["created_at", "2015-04-29 16:46:32.230326"], ["updated_at", "2015-04-29 16:46:32.230326"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
571
596
   (0.1ms) RELEASE SAVEPOINT active_record_2
572
597
   (0.1ms) SAVEPOINT active_record_2
573
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.829426"], ["updated_at", "2015-04-23 12:28:02.829426"], ["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", "117"], ["created_at", "2015-04-29 16:46:32.232416"], ["updated_at", "2015-04-29 16:46:32.232416"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
574
599
   (0.1ms) RELEASE SAVEPOINT active_record_2
575
600
   (0.1ms) SAVEPOINT active_record_2
576
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-04-23 12:28:02.831821"], ["updated_at", "2015-04-23 12:28:02.831821"], ["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", "118"], ["created_at", "2015-04-29 16:46:32.234510"], ["updated_at", "2015-04-29 16:46:32.234510"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
577
602
   (0.1ms) RELEASE SAVEPOINT active_record_2
578
603
   (0.1ms) SAVEPOINT active_record_2
579
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-04-23 12:28:02.834307"], ["updated_at", "2015-04-23 12:28:02.834307"], ["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", "119"], ["created_at", "2015-04-29 16:46:32.236773"], ["updated_at", "2015-04-29 16:46:32.236773"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
580
605
   (0.1ms) RELEASE SAVEPOINT active_record_2
581
606
   (0.1ms) SAVEPOINT active_record_2
582
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-04-23 12:28:02.837059"], ["updated_at", "2015-04-23 12:28:02.837059"], ["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", "120"], ["created_at", "2015-04-29 16:46:32.238848"], ["updated_at", "2015-04-29 16:46:32.238848"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
583
608
   (0.1ms) RELEASE SAVEPOINT active_record_2
584
609
   (0.1ms) SAVEPOINT active_record_2
585
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-04-23 12:28:02.839620"], ["updated_at", "2015-04-23 12:28:02.839620"], ["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", "121"], ["created_at", "2015-04-29 16:46:32.240932"], ["updated_at", "2015-04-29 16:46:32.240932"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
586
611
   (0.1ms) RELEASE SAVEPOINT active_record_2
587
612
   (0.1ms) SAVEPOINT active_record_2
588
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-04-23 12:28:02.842028"], ["updated_at", "2015-04-23 12:28:02.842028"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "122"], ["created_at", "2015-04-29 16:46:32.242955"], ["updated_at", "2015-04-29 16:46:32.242955"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
589
614
   (0.1ms) RELEASE SAVEPOINT active_record_2
590
615
   (0.1ms) SAVEPOINT active_record_2
591
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-04-23 12:28:02.844451"], ["updated_at", "2015-04-23 12:28:02.844451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "123"], ["created_at", "2015-04-29 16:46:32.244986"], ["updated_at", "2015-04-29 16:46:32.244986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
592
617
   (0.1ms) RELEASE SAVEPOINT active_record_2
593
618
   (0.1ms) SAVEPOINT active_record_2
594
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-04-23 12:28:02.847009"], ["updated_at", "2015-04-23 12:28:02.847009"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
619
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-04-29 16:46:32.247122"], ["updated_at", "2015-04-29 16:46:32.247122"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
595
620
   (0.1ms) RELEASE SAVEPOINT active_record_2
596
621
   (0.1ms) SAVEPOINT active_record_2
597
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-04-23 12:28:02.849475"], ["updated_at", "2015-04-23 12:28:02.849475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
622
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-04-29 16:46:32.249225"], ["updated_at", "2015-04-29 16:46:32.249225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
598
623
   (0.1ms) RELEASE SAVEPOINT active_record_2
599
624
   (0.1ms) SAVEPOINT active_record_2
600
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-04-23 12:28:02.852423"], ["updated_at", "2015-04-23 12:28:02.852423"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
625
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-04-29 16:46:32.251367"], ["updated_at", "2015-04-29 16:46:32.251367"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
601
626
   (0.1ms) RELEASE SAVEPOINT active_record_2
602
627
   (0.1ms) SAVEPOINT active_record_2
603
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-04-23 12:28:02.855019"], ["updated_at", "2015-04-23 12:28:02.855019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
628
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.253523"], ["updated_at", "2015-04-29 16:46:32.253523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
604
629
   (0.1ms) RELEASE SAVEPOINT active_record_2
605
630
   (0.1ms) SAVEPOINT active_record_2
606
- 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", "127"], ["created_at", "2015-04-23 12:28:02.857604"], ["updated_at", "2015-04-23 12:28:02.857604"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
631
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-04-29 16:46:32.255652"], ["updated_at", "2015-04-29 16:46:32.255652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
607
632
   (0.1ms) RELEASE SAVEPOINT active_record_2
608
633
  Processing by PushType::WysiwygMediaController#index as JSON
609
- Parameters: {"filter"=>"file", "page"=>2}
610
- 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
611
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
612
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
634
+ Parameters: {"filter"=>"image"}
635
+ 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
636
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
637
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
613
638
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
614
639
   (0.1ms) ROLLBACK
615
640
   (0.1ms) BEGIN
616
- ----------------------------------------------------------------------------------
617
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
618
- ----------------------------------------------------------------------------------
641
+ ---------------------------------------------------------------------------------------
642
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
643
+ ---------------------------------------------------------------------------------------
619
644
   (0.1ms) SAVEPOINT active_record_1
620
-  (0.1ms) RELEASE SAVEPOINT active_record_1
645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
621
646
   (0.1ms) SAVEPOINT active_record_1
622
647
   (0.1ms) SAVEPOINT active_record_2
623
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.868852"], ["updated_at", "2015-04-23 12:28:02.868852"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-04-29 16:46:32.264480"], ["updated_at", "2015-04-29 16:46:32.264480"], ["file_ext", "png"], ["mime_type", "image/png"]]
624
649
   (0.1ms) RELEASE SAVEPOINT active_record_2
625
650
   (0.1ms) SAVEPOINT active_record_2
626
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.871417"], ["updated_at", "2015-04-23 12:28:02.871417"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-04-29 16:46:32.266594"], ["updated_at", "2015-04-29 16:46:32.266594"], ["file_ext", "png"], ["mime_type", "image/png"]]
627
652
   (0.1ms) RELEASE SAVEPOINT active_record_2
628
653
   (0.1ms) SAVEPOINT active_record_2
629
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.873918"], ["updated_at", "2015-04-23 12:28:02.873918"], ["file_ext", "png"], ["mime_type", "image/png"]]
654
+ 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", "131"], ["created_at", "2015-04-29 16:46:32.268673"], ["updated_at", "2015-04-29 16:46:32.268673"], ["file_ext", "png"], ["mime_type", "image/png"]]
630
655
   (0.1ms) RELEASE SAVEPOINT active_record_2
631
656
   (0.1ms) SAVEPOINT active_record_2
632
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.876468"], ["updated_at", "2015-04-23 12:28:02.876468"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "132"], ["created_at", "2015-04-29 16:46:32.270861"], ["updated_at", "2015-04-29 16:46:32.270861"], ["file_ext", "png"], ["mime_type", "image/png"]]
633
658
   (0.1ms) RELEASE SAVEPOINT active_record_2
634
659
   (0.1ms) SAVEPOINT active_record_2
635
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "132"], ["created_at", "2015-04-23 12:28:02.879022"], ["updated_at", "2015-04-23 12:28:02.879022"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "133"], ["created_at", "2015-04-29 16:46:32.272916"], ["updated_at", "2015-04-29 16:46:32.272916"], ["file_ext", "png"], ["mime_type", "image/png"]]
636
661
   (0.1ms) RELEASE SAVEPOINT active_record_2
637
662
   (0.1ms) SAVEPOINT active_record_2
638
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.881608"], ["updated_at", "2015-04-23 12:28:02.881608"], ["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", "134"], ["created_at", "2015-04-29 16:46:32.275066"], ["updated_at", "2015-04-29 16:46:32.275066"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
639
664
   (0.1ms) RELEASE SAVEPOINT active_record_2
640
665
   (0.1ms) SAVEPOINT active_record_2
641
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.884154"], ["updated_at", "2015-04-23 12:28:02.884154"], ["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", "135"], ["created_at", "2015-04-29 16:46:32.277151"], ["updated_at", "2015-04-29 16:46:32.277151"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
642
667
   (0.1ms) RELEASE SAVEPOINT active_record_2
643
668
   (0.1ms) SAVEPOINT active_record_2
644
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.886668"], ["updated_at", "2015-04-23 12:28:02.886668"], ["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", "136"], ["created_at", "2015-04-29 16:46:32.279232"], ["updated_at", "2015-04-29 16:46:32.279232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
645
670
   (0.1ms) RELEASE SAVEPOINT active_record_2
646
671
   (0.1ms) SAVEPOINT active_record_2
647
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-04-23 12:28:02.889141"], ["updated_at", "2015-04-23 12:28:02.889141"], ["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", "137"], ["created_at", "2015-04-29 16:46:32.281333"], ["updated_at", "2015-04-29 16:46:32.281333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
648
673
   (0.1ms) RELEASE SAVEPOINT active_record_2
649
674
   (0.1ms) SAVEPOINT active_record_2
650
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-04-23 12:28:02.891630"], ["updated_at", "2015-04-23 12:28:02.891630"], ["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", "138"], ["created_at", "2015-04-29 16:46:32.283359"], ["updated_at", "2015-04-29 16:46:32.283359"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
651
676
   (0.1ms) RELEASE SAVEPOINT active_record_2
652
677
   (0.1ms) SAVEPOINT active_record_2
653
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.894063"], ["updated_at", "2015-04-23 12:28:02.894063"], ["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", "139"], ["created_at", "2015-04-29 16:46:32.285490"], ["updated_at", "2015-04-29 16:46:32.285490"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
654
679
   (0.1ms) RELEASE SAVEPOINT active_record_2
655
680
   (0.1ms) SAVEPOINT active_record_2
656
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-04-23 12:28:02.896494"], ["updated_at", "2015-04-23 12:28:02.896494"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
681
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-04-29 16:46:32.287628"], ["updated_at", "2015-04-29 16:46:32.287628"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
657
682
   (0.1ms) RELEASE SAVEPOINT active_record_2
658
683
   (0.1ms) SAVEPOINT active_record_2
659
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-04-23 12:28:02.898949"], ["updated_at", "2015-04-23 12:28:02.898949"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
684
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-04-29 16:46:32.289732"], ["updated_at", "2015-04-29 16:46:32.289732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
660
685
   (0.1ms) RELEASE SAVEPOINT active_record_2
661
686
   (0.1ms) SAVEPOINT active_record_2
662
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-04-23 12:28:02.901680"], ["updated_at", "2015-04-23 12:28:02.901680"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
687
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-04-29 16:46:32.291851"], ["updated_at", "2015-04-29 16:46:32.291851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
663
688
   (0.1ms) RELEASE SAVEPOINT active_record_2
664
689
   (0.1ms) SAVEPOINT active_record_2
665
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-04-23 12:28:02.904609"], ["updated_at", "2015-04-23 12:28:02.904609"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
690
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-04-29 16:46:32.293907"], ["updated_at", "2015-04-29 16:46:32.293907"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
666
691
   (0.1ms) RELEASE SAVEPOINT active_record_2
667
692
   (0.1ms) SAVEPOINT active_record_2
668
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-04-23 12:28:02.907500"], ["updated_at", "2015-04-23 12:28:02.907500"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
693
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-04-29 16:46:32.295933"], ["updated_at", "2015-04-29 16:46:32.295933"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
669
694
   (0.1ms) RELEASE SAVEPOINT active_record_2
670
695
   (0.1ms) SAVEPOINT active_record_2
671
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-04-23 12:28:02.910063"], ["updated_at", "2015-04-23 12:28:02.910063"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
696
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-04-29 16:46:32.298234"], ["updated_at", "2015-04-29 16:46:32.298234"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
672
697
   (0.1ms) RELEASE SAVEPOINT active_record_2
673
698
   (0.1ms) SAVEPOINT active_record_2
674
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-04-23 12:28:02.912500"], ["updated_at", "2015-04-23 12:28:02.912500"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
699
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-04-29 16:46:32.300275"], ["updated_at", "2015-04-29 16:46:32.300275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
675
700
   (0.1ms) RELEASE SAVEPOINT active_record_2
676
701
  Processing by PushType::WysiwygMediaController#index as JSON
677
- Parameters: {"filter"=>"file", "page"=>2}
678
- 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
679
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
680
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
702
+ Parameters: {"filter"=>"image"}
703
+ PushType::Asset Load (0.2ms) 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
704
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
705
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
681
706
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
682
707
   (0.1ms) ROLLBACK
683
708
   (0.1ms) BEGIN
684
- ----------------------------------------------------------------------
685
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
686
- ----------------------------------------------------------------------
687
-  (0.1ms) SAVEPOINT active_record_1
688
-  (0.1ms) RELEASE SAVEPOINT active_record_1
689
-  (0.1ms) SAVEPOINT active_record_1
709
+ ---------------------------------------------------------------------------------------
710
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
711
+ ---------------------------------------------------------------------------------------
712
+  (0.0ms) SAVEPOINT active_record_1
713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
714
+  (0.0ms) SAVEPOINT active_record_1
690
715
   (0.1ms) SAVEPOINT active_record_2
691
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.925004"], ["updated_at", "2015-04-23 12:28:02.925004"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-04-29 16:46:32.309118"], ["updated_at", "2015-04-29 16:46:32.309118"], ["file_ext", "png"], ["mime_type", "image/png"]]
692
717
   (0.1ms) RELEASE SAVEPOINT active_record_2
693
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
694
-  (0.1ms) ROLLBACK
695
-  (0.1ms) BEGIN
696
- ----------------------------------------------------------------------
697
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
698
- ----------------------------------------------------------------------
699
-  (0.1ms) SAVEPOINT active_record_1
700
-  (0.0ms) RELEASE SAVEPOINT active_record_1
701
-  (0.1ms) SAVEPOINT active_record_1
702
718
   (0.1ms) SAVEPOINT active_record_2
703
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.931657"], ["updated_at", "2015-04-23 12:28:02.931657"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-04-29 16:46:32.311385"], ["updated_at", "2015-04-29 16:46:32.311385"], ["file_ext", "png"], ["mime_type", "image/png"]]
704
720
   (0.1ms) RELEASE SAVEPOINT active_record_2
705
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
706
-  (0.1ms) ROLLBACK
707
-  (0.1ms) BEGIN
708
- ----------------------------------------------------------------------
709
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
710
- ----------------------------------------------------------------------
711
-  (0.1ms) SAVEPOINT active_record_1
712
-  (0.1ms) RELEASE SAVEPOINT active_record_1
713
-  (0.1ms) SAVEPOINT active_record_1
714
721
   (0.1ms) SAVEPOINT active_record_2
715
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.938271"], ["updated_at", "2015-04-23 12:28:02.938271"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "149"], ["created_at", "2015-04-29 16:46:32.313586"], ["updated_at", "2015-04-29 16:46:32.313586"], ["file_ext", "png"], ["mime_type", "image/png"]]
716
723
   (0.1ms) RELEASE SAVEPOINT active_record_2
717
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
718
-  (0.1ms) ROLLBACK
719
-  (0.1ms) BEGIN
720
- ----------------------------------------------------------------------
721
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
722
- ----------------------------------------------------------------------
723
-  (0.0ms) SAVEPOINT active_record_1
724
-  (0.0ms) RELEASE SAVEPOINT active_record_1
725
-  (0.0ms) SAVEPOINT active_record_1
726
724
   (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", "149"], ["created_at", "2015-04-23 12:28:02.944096"], ["updated_at", "2015-04-23 12:28:02.944096"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-04-29 16:46:32.315756"], ["updated_at", "2015-04-29 16:46:32.315756"], ["file_ext", "png"], ["mime_type", "image/png"]]
728
726
   (0.1ms) RELEASE SAVEPOINT active_record_2
729
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
730
-  (0.1ms) ROLLBACK
731
-  (0.1ms) BEGIN
732
- ----------------------------------------------------------------------
733
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
734
- ----------------------------------------------------------------------
735
-  (0.1ms) SAVEPOINT active_record_1
736
-  (0.1ms) RELEASE SAVEPOINT active_record_1
737
-  (0.1ms) SAVEPOINT active_record_1
738
727
   (0.1ms) SAVEPOINT active_record_2
739
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-04-23 12:28:02.950099"], ["updated_at", "2015-04-23 12:28:02.950099"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "151"], ["created_at", "2015-04-29 16:46:32.317853"], ["updated_at", "2015-04-29 16:46:32.317853"], ["file_ext", "png"], ["mime_type", "image/png"]]
740
729
   (0.1ms) RELEASE SAVEPOINT active_record_2
741
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
742
-  (0.1ms) ROLLBACK
743
-  (0.1ms) BEGIN
744
- ----------------------------------------------------------------------
745
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
746
- ----------------------------------------------------------------------
747
-  (0.1ms) SAVEPOINT active_record_1
748
-  (0.0ms) RELEASE SAVEPOINT active_record_1
749
-  (0.0ms) SAVEPOINT active_record_1
750
730
   (0.1ms) SAVEPOINT active_record_2
751
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "151"], ["created_at", "2015-04-23 12:28:02.956704"], ["updated_at", "2015-04-23 12:28:02.956704"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "152"], ["created_at", "2015-04-29 16:46:32.320040"], ["updated_at", "2015-04-29 16:46:32.320040"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
752
732
   (0.1ms) RELEASE SAVEPOINT active_record_2
753
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
754
-  (0.1ms) ROLLBACK
755
-  (0.1ms) BEGIN
756
- ----------------------------------------------------------------------
757
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
758
- ----------------------------------------------------------------------
759
-  (0.1ms) SAVEPOINT active_record_1
760
-  (0.1ms) RELEASE SAVEPOINT active_record_1
761
-  (0.1ms) SAVEPOINT active_record_1
762
733
   (0.1ms) SAVEPOINT active_record_2
763
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-04-23 12:28:02.963537"], ["updated_at", "2015-04-23 12:28:02.963537"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "153"], ["created_at", "2015-04-29 16:46:32.322143"], ["updated_at", "2015-04-29 16:46:32.322143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
764
735
   (0.1ms) RELEASE SAVEPOINT active_record_2
765
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
766
-  (0.1ms) ROLLBACK
767
-  (0.1ms) BEGIN
768
- -----------------------------------------------------------------------
769
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
770
- -----------------------------------------------------------------------
771
-  (0.1ms) SAVEPOINT active_record_1
772
-  (0.1ms) RELEASE SAVEPOINT active_record_1
773
-  (0.1ms) SAVEPOINT active_record_1
774
736
   (0.1ms) SAVEPOINT active_record_2
775
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.970729"], ["updated_at", "2015-04-23 12:28:02.970729"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "154"], ["created_at", "2015-04-29 16:46:32.324179"], ["updated_at", "2015-04-29 16:46:32.324179"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
776
738
   (0.1ms) RELEASE SAVEPOINT active_record_2
777
739
   (0.1ms) SAVEPOINT active_record_2
778
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.973503"], ["updated_at", "2015-04-23 12:28:02.973503"], ["file_ext", "png"], ["mime_type", "image/png"]]
740
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "155"], ["created_at", "2015-04-29 16:46:32.326186"], ["updated_at", "2015-04-29 16:46:32.326186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
779
741
   (0.1ms) RELEASE SAVEPOINT active_record_2
780
742
   (0.1ms) SAVEPOINT active_record_2
781
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:02.976270"], ["updated_at", "2015-04-23 12:28:02.976270"], ["file_ext", "png"], ["mime_type", "image/png"]]
743
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-04-29 16:46:32.328170"], ["updated_at", "2015-04-29 16:46:32.328170"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
782
744
   (0.1ms) RELEASE SAVEPOINT active_record_2
783
745
   (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", "156"], ["created_at", "2015-04-23 12:28:02.978782"], ["updated_at", "2015-04-23 12:28:02.978782"], ["file_ext", "png"], ["mime_type", "image/png"]]
746
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-04-29 16:46:32.330299"], ["updated_at", "2015-04-29 16:46:32.330299"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
785
747
   (0.1ms) RELEASE SAVEPOINT active_record_2
786
- 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
787
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
788
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
789
-  (0.1ms) ROLLBACK
790
-  (0.1ms) BEGIN
791
- -----------------------------------------------------------------------
792
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
793
- -----------------------------------------------------------------------
794
-  (0.1ms) SAVEPOINT active_record_1
795
-  (0.1ms) RELEASE SAVEPOINT active_record_1
796
-  (0.0ms) SAVEPOINT active_record_1
797
748
   (0.1ms) SAVEPOINT active_record_2
798
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-04-23 12:28:02.988357"], ["updated_at", "2015-04-23 12:28:02.988357"], ["file_ext", "png"], ["mime_type", "image/png"]]
749
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-04-29 16:46:32.332372"], ["updated_at", "2015-04-29 16:46:32.332372"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
799
750
   (0.1ms) RELEASE SAVEPOINT active_record_2
800
751
   (0.1ms) SAVEPOINT active_record_2
801
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-04-23 12:28:02.990944"], ["updated_at", "2015-04-23 12:28:02.990944"], ["file_ext", "png"], ["mime_type", "image/png"]]
752
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-04-29 16:46:32.334386"], ["updated_at", "2015-04-29 16:46:32.334386"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
802
753
   (0.1ms) RELEASE SAVEPOINT active_record_2
803
754
   (0.1ms) SAVEPOINT active_record_2
804
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-04-23 12:28:02.993353"], ["updated_at", "2015-04-23 12:28:02.993353"], ["file_ext", "png"], ["mime_type", "image/png"]]
755
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-04-29 16:46:32.336406"], ["updated_at", "2015-04-29 16:46:32.336406"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
805
756
   (0.1ms) RELEASE SAVEPOINT active_record_2
806
757
   (0.1ms) SAVEPOINT active_record_2
807
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-04-23 12:28:02.995712"], ["updated_at", "2015-04-23 12:28:02.995712"], ["file_ext", "png"], ["mime_type", "image/png"]]
758
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-04-29 16:46:32.338436"], ["updated_at", "2015-04-29 16:46:32.338436"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
808
759
   (0.1ms) RELEASE SAVEPOINT active_record_2
809
- 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
810
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
811
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
812
-  (0.1ms) ROLLBACK
813
-  (0.1ms) BEGIN
814
- -----------------------------------------------------------------------
815
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
816
- -----------------------------------------------------------------------
817
-  (0.1ms) SAVEPOINT active_record_1
818
-  (0.0ms) RELEASE SAVEPOINT active_record_1
819
-  (0.0ms) SAVEPOINT active_record_1
820
760
   (0.1ms) SAVEPOINT active_record_2
821
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.005281"], ["updated_at", "2015-04-23 12:28:03.005281"], ["file_ext", "png"], ["mime_type", "image/png"]]
761
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-04-29 16:46:32.340532"], ["updated_at", "2015-04-29 16:46:32.340532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
822
762
   (0.1ms) RELEASE SAVEPOINT active_record_2
823
763
   (0.1ms) SAVEPOINT active_record_2
824
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.007955"], ["updated_at", "2015-04-23 12:28:03.007955"], ["file_ext", "png"], ["mime_type", "image/png"]]
764
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-04-29 16:46:32.342798"], ["updated_at", "2015-04-29 16:46:32.342798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
825
765
   (0.1ms) RELEASE SAVEPOINT active_record_2
826
766
   (0.1ms) SAVEPOINT active_record_2
827
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.010624"], ["updated_at", "2015-04-23 12:28:03.010624"], ["file_ext", "png"], ["mime_type", "image/png"]]
767
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-04-29 16:46:32.344985"], ["updated_at", "2015-04-29 16:46:32.344985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
828
768
   (0.1ms) RELEASE SAVEPOINT active_record_2
769
+ Processing by PushType::WysiwygMediaController#index as JSON
770
+ Parameters: {"filter"=>"image"}
771
+ 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
772
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
773
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
774
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
775
+  (0.1ms) ROLLBACK
776
+  (0.1ms) BEGIN
777
+ --------------------------------------------------------------------------------------
778
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
779
+ --------------------------------------------------------------------------------------
780
+  (0.1ms) SAVEPOINT active_record_1
781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
782
+  (0.1ms) SAVEPOINT active_record_1
829
783
   (0.1ms) SAVEPOINT active_record_2
830
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.013238"], ["updated_at", "2015-04-23 12:28:03.013238"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "165"], ["created_at", "2015-04-29 16:46:32.354791"], ["updated_at", "2015-04-29 16:46:32.354791"], ["file_ext", "png"], ["mime_type", "image/png"]]
831
785
   (0.1ms) RELEASE SAVEPOINT active_record_2
832
- 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
833
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
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_0002_anonymous
839
- -----------------------------------------------------------------------
840
-  (0.1ms) SAVEPOINT active_record_1
841
-  (0.0ms) RELEASE SAVEPOINT active_record_1
842
-  (0.0ms) SAVEPOINT active_record_1
843
786
   (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", "165"], ["created_at", "2015-04-23 12:28:03.023120"], ["updated_at", "2015-04-23 12:28:03.023120"], ["file_ext", "png"], ["mime_type", "image/png"]]
787
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.357163"], ["updated_at", "2015-04-29 16:46:32.357163"], ["file_ext", "png"], ["mime_type", "image/png"]]
845
788
   (0.1ms) RELEASE SAVEPOINT active_record_2
846
789
   (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", "166"], ["created_at", "2015-04-23 12:28:03.025933"], ["updated_at", "2015-04-23 12:28:03.025933"], ["file_ext", "png"], ["mime_type", "image/png"]]
790
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.359377"], ["updated_at", "2015-04-29 16:46:32.359377"], ["file_ext", "png"], ["mime_type", "image/png"]]
848
791
   (0.1ms) RELEASE SAVEPOINT active_record_2
849
792
   (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", "167"], ["created_at", "2015-04-23 12:28:03.028360"], ["updated_at", "2015-04-23 12:28:03.028360"], ["file_ext", "png"], ["mime_type", "image/png"]]
793
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.361465"], ["updated_at", "2015-04-29 16:46:32.361465"], ["file_ext", "png"], ["mime_type", "image/png"]]
851
794
   (0.1ms) RELEASE SAVEPOINT active_record_2
852
795
   (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", "168"], ["created_at", "2015-04-23 12:28:03.030745"], ["updated_at", "2015-04-23 12:28:03.030745"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-04-29 16:46:32.363760"], ["updated_at", "2015-04-29 16:46:32.363760"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
797
   (0.1ms) RELEASE SAVEPOINT active_record_2
855
- 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
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_0003_anonymous
862
- -----------------------------------------------------------------------
863
-  (0.1ms) SAVEPOINT active_record_1
864
-  (0.1ms) RELEASE SAVEPOINT active_record_1
865
-  (0.0ms) SAVEPOINT active_record_1
866
798
   (0.1ms) SAVEPOINT active_record_2
867
- 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", "169"], ["created_at", "2015-04-23 12:28:03.040471"], ["updated_at", "2015-04-23 12:28:03.040471"], ["file_ext", "png"], ["mime_type", "image/png"]]
799
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-04-29 16:46:32.366037"], ["updated_at", "2015-04-29 16:46:32.366037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
868
800
   (0.1ms) RELEASE SAVEPOINT active_record_2
869
801
   (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", "170"], ["created_at", "2015-04-23 12:28:03.043120"], ["updated_at", "2015-04-23 12:28:03.043120"], ["file_ext", "png"], ["mime_type", "image/png"]]
802
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-04-29 16:46:32.368219"], ["updated_at", "2015-04-29 16:46:32.368219"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
871
803
   (0.1ms) RELEASE SAVEPOINT active_record_2
872
804
   (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", "171"], ["created_at", "2015-04-23 12:28:03.045519"], ["updated_at", "2015-04-23 12:28:03.045519"], ["file_ext", "png"], ["mime_type", "image/png"]]
805
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-04-29 16:46:32.370375"], ["updated_at", "2015-04-29 16:46:32.370375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
874
806
   (0.1ms) RELEASE SAVEPOINT active_record_2
875
807
   (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", "172"], ["created_at", "2015-04-23 12:28:03.047846"], ["updated_at", "2015-04-23 12:28:03.047846"], ["file_ext", "png"], ["mime_type", "image/png"]]
808
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-04-29 16:46:32.372497"], ["updated_at", "2015-04-29 16:46:32.372497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
877
809
   (0.1ms) RELEASE SAVEPOINT active_record_2
878
- 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
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_meta: test_0004_anonymous
885
- -----------------------------------------------------------------------
886
-  (0.1ms) SAVEPOINT active_record_1
887
-  (0.1ms) RELEASE SAVEPOINT active_record_1
888
-  (0.1ms) SAVEPOINT active_record_1
889
810
   (0.1ms) SAVEPOINT active_record_2
890
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-04-23 12:28:03.060274"], ["updated_at", "2015-04-23 12:28:03.060274"], ["file_ext", "png"], ["mime_type", "image/png"]]
811
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-04-29 16:46:32.374723"], ["updated_at", "2015-04-29 16:46:32.374723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
891
812
   (0.1ms) RELEASE SAVEPOINT active_record_2
892
813
   (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", "174"], ["created_at", "2015-04-23 12:28:03.062941"], ["updated_at", "2015-04-23 12:28:03.062941"], ["file_ext", "png"], ["mime_type", "image/png"]]
814
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "175"], ["created_at", "2015-04-29 16:46:32.376891"], ["updated_at", "2015-04-29 16:46:32.376891"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
894
815
   (0.1ms) RELEASE SAVEPOINT active_record_2
895
816
   (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", "175"], ["created_at", "2015-04-23 12:28:03.065566"], ["updated_at", "2015-04-23 12:28:03.065566"], ["file_ext", "png"], ["mime_type", "image/png"]]
817
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "176"], ["created_at", "2015-04-29 16:46:32.379058"], ["updated_at", "2015-04-29 16:46:32.379058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
897
818
   (0.1ms) RELEASE SAVEPOINT active_record_2
898
819
   (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", "176"], ["created_at", "2015-04-23 12:28:03.067958"], ["updated_at", "2015-04-23 12:28:03.067958"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-04-29 16:46:32.381271"], ["updated_at", "2015-04-29 16:46:32.381271"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
900
821
   (0.1ms) RELEASE SAVEPOINT active_record_2
901
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
902
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
822
+  (0.1ms) SAVEPOINT active_record_2
823
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2015-04-29 16:46:32.383297"], ["updated_at", "2015-04-29 16:46:32.383297"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
824
+  (0.1ms) RELEASE SAVEPOINT active_record_2
825
+  (0.1ms) SAVEPOINT active_record_2
826
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2015-04-29 16:46:32.385696"], ["updated_at", "2015-04-29 16:46:32.385696"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
827
+  (0.1ms) RELEASE SAVEPOINT active_record_2
828
+  (0.1ms) SAVEPOINT active_record_2
829
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-04-29 16:46:32.388027"], ["updated_at", "2015-04-29 16:46:32.388027"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
830
+  (0.1ms) RELEASE SAVEPOINT active_record_2
831
+  (0.1ms) SAVEPOINT active_record_2
832
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-04-29 16:46:32.390157"], ["updated_at", "2015-04-29 16:46:32.390157"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
833
+  (0.1ms) RELEASE SAVEPOINT active_record_2
834
+  (0.1ms) SAVEPOINT active_record_2
835
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-04-29 16:46:32.392407"], ["updated_at", "2015-04-29 16:46:32.392407"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
836
+  (0.1ms) RELEASE SAVEPOINT active_record_2
837
+ Processing by PushType::WysiwygMediaController#index as JSON
838
+ Parameters: {"filter"=>"file"}
839
+ 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
840
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
841
+ Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
842
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
903
843
   (0.1ms) ROLLBACK
904
844
   (0.1ms) BEGIN
905
- -----------------------------------------------------------------------
906
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
907
- -----------------------------------------------------------------------
845
+ --------------------------------------------------------------------------------------
846
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
847
+ --------------------------------------------------------------------------------------
908
848
   (0.0ms) SAVEPOINT active_record_1
909
849
   (0.0ms) RELEASE SAVEPOINT active_record_1
910
850
   (0.0ms) SAVEPOINT active_record_1
911
851
   (0.1ms) SAVEPOINT active_record_2
912
- 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", "177"], ["created_at", "2015-04-23 12:28:03.073164"], ["updated_at", "2015-04-23 12:28:03.073164"], ["file_ext", "png"], ["mime_type", "image/png"]]
852
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.410310"], ["updated_at", "2015-04-29 16:46:32.410310"], ["file_ext", "png"], ["mime_type", "image/png"]]
913
853
   (0.1ms) RELEASE SAVEPOINT active_record_2
914
854
   (0.1ms) SAVEPOINT active_record_2
915
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-04-23 12:28:03.075907"], ["updated_at", "2015-04-23 12:28:03.075907"], ["file_ext", "png"], ["mime_type", "image/png"]]
855
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.412893"], ["updated_at", "2015-04-29 16:46:32.412893"], ["file_ext", "png"], ["mime_type", "image/png"]]
916
856
   (0.1ms) RELEASE SAVEPOINT active_record_2
917
857
   (0.1ms) SAVEPOINT active_record_2
918
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-04-23 12:28:03.078466"], ["updated_at", "2015-04-23 12:28:03.078466"], ["file_ext", "png"], ["mime_type", "image/png"]]
858
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.415248"], ["updated_at", "2015-04-29 16:46:32.415248"], ["file_ext", "png"], ["mime_type", "image/png"]]
919
859
   (0.1ms) RELEASE SAVEPOINT active_record_2
920
860
   (0.1ms) SAVEPOINT active_record_2
921
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-04-23 12:28:03.080972"], ["updated_at", "2015-04-23 12:28:03.080972"], ["file_ext", "png"], ["mime_type", "image/png"]]
922
-  (0.1ms) RELEASE SAVEPOINT active_record_2
923
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
924
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
925
-  (0.1ms) ROLLBACK
926
-  (0.1ms) BEGIN
927
- -----------------------------------------------------------------------
928
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
929
- -----------------------------------------------------------------------
930
-  (0.0ms) SAVEPOINT active_record_1
931
-  (0.0ms) RELEASE SAVEPOINT active_record_1
932
-  (0.0ms) SAVEPOINT active_record_1
933
-  (0.1ms) SAVEPOINT active_record_2
934
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.085938"], ["updated_at", "2015-04-23 12:28:03.085938"], ["file_ext", "png"], ["mime_type", "image/png"]]
861
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.417556"], ["updated_at", "2015-04-29 16:46:32.417556"], ["file_ext", "png"], ["mime_type", "image/png"]]
935
862
   (0.1ms) RELEASE SAVEPOINT active_record_2
936
863
   (0.1ms) SAVEPOINT active_record_2
937
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.088518"], ["updated_at", "2015-04-23 12:28:03.088518"], ["file_ext", "png"], ["mime_type", "image/png"]]
864
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.419794"], ["updated_at", "2015-04-29 16:46:32.419794"], ["file_ext", "png"], ["mime_type", "image/png"]]
938
865
   (0.1ms) RELEASE SAVEPOINT active_record_2
939
866
   (0.1ms) SAVEPOINT active_record_2
940
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.091121"], ["updated_at", "2015-04-23 12:28:03.091121"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-04-29 16:46:32.422214"], ["updated_at", "2015-04-29 16:46:32.422214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
941
868
   (0.1ms) RELEASE SAVEPOINT active_record_2
942
869
   (0.1ms) SAVEPOINT active_record_2
943
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.093570"], ["updated_at", "2015-04-23 12:28:03.093570"], ["file_ext", "png"], ["mime_type", "image/png"]]
944
-  (0.1ms) RELEASE SAVEPOINT active_record_2
945
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
946
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
947
-  (0.1ms) ROLLBACK
948
-  (0.1ms) BEGIN
949
- -----------------------------------------------------------------------
950
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
951
- -----------------------------------------------------------------------
952
-  (0.0ms) SAVEPOINT active_record_1
953
-  (0.0ms) RELEASE SAVEPOINT active_record_1
954
-  (0.0ms) SAVEPOINT active_record_1
955
-  (0.1ms) SAVEPOINT active_record_2
956
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-04-23 12:28:03.098520"], ["updated_at", "2015-04-23 12:28:03.098520"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-04-29 16:46:32.424599"], ["updated_at", "2015-04-29 16:46:32.424599"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
957
871
   (0.1ms) RELEASE SAVEPOINT active_record_2
958
872
   (0.1ms) SAVEPOINT active_record_2
959
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-04-23 12:28:03.101017"], ["updated_at", "2015-04-23 12:28:03.101017"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-04-29 16:46:32.426839"], ["updated_at", "2015-04-29 16:46:32.426839"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
960
874
   (0.1ms) RELEASE SAVEPOINT active_record_2
961
875
   (0.1ms) SAVEPOINT active_record_2
962
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-04-23 12:28:03.103385"], ["updated_at", "2015-04-23 12:28:03.103385"], ["file_ext", "png"], ["mime_type", "image/png"]]
876
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-04-29 16:46:32.429131"], ["updated_at", "2015-04-29 16:46:32.429131"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
963
877
   (0.1ms) RELEASE SAVEPOINT active_record_2
964
878
   (0.1ms) SAVEPOINT active_record_2
965
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-04-23 12:28:03.105899"], ["updated_at", "2015-04-23 12:28:03.105899"], ["file_ext", "png"], ["mime_type", "image/png"]]
879
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-04-29 16:46:32.431271"], ["updated_at", "2015-04-29 16:46:32.431271"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
880
   (0.1ms) RELEASE SAVEPOINT active_record_2
967
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
968
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
969
-  (0.1ms) ROLLBACK
970
-  (0.1ms) BEGIN
971
- -----------------------------------------------------------------------
972
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
973
- -----------------------------------------------------------------------
974
-  (0.1ms) SAVEPOINT active_record_1
975
-  (0.0ms) RELEASE SAVEPOINT active_record_1
976
-  (0.0ms) SAVEPOINT active_record_1
881
+  (0.1ms) SAVEPOINT active_record_2
882
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-04-29 16:46:32.433541"], ["updated_at", "2015-04-29 16:46:32.433541"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
883
+  (0.1ms) RELEASE SAVEPOINT active_record_2
977
884
   (0.1ms) SAVEPOINT active_record_2
978
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.111199"], ["updated_at", "2015-04-23 12:28:03.111199"], ["file_ext", "png"], ["mime_type", "image/png"]]
885
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-04-29 16:46:32.435717"], ["updated_at", "2015-04-29 16:46:32.435717"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
979
886
   (0.1ms) RELEASE SAVEPOINT active_record_2
980
887
   (0.1ms) SAVEPOINT active_record_2
981
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.113770"], ["updated_at", "2015-04-23 12:28:03.113770"], ["file_ext", "png"], ["mime_type", "image/png"]]
888
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-04-29 16:46:32.437814"], ["updated_at", "2015-04-29 16:46:32.437814"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
982
889
   (0.1ms) RELEASE SAVEPOINT active_record_2
983
890
   (0.1ms) SAVEPOINT active_record_2
984
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.116315"], ["updated_at", "2015-04-23 12:28:03.116315"], ["file_ext", "png"], ["mime_type", "image/png"]]
891
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "196"], ["created_at", "2015-04-29 16:46:32.440068"], ["updated_at", "2015-04-29 16:46:32.440068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
985
892
   (0.1ms) RELEASE SAVEPOINT active_record_2
986
893
   (0.1ms) SAVEPOINT active_record_2
987
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.118869"], ["updated_at", "2015-04-23 12:28:03.118869"], ["file_ext", "png"], ["mime_type", "image/png"]]
894
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "197"], ["created_at", "2015-04-29 16:46:32.442281"], ["updated_at", "2015-04-29 16:46:32.442281"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
988
895
   (0.1ms) RELEASE SAVEPOINT active_record_2
989
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
990
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
991
-  (0.1ms) ROLLBACK
992
-  (0.1ms) BEGIN
993
- -------------------------------------------------------------------------------------
994
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
995
- -------------------------------------------------------------------------------------
996
-  (0.1ms) SAVEPOINT active_record_1
997
-  (0.1ms) RELEASE SAVEPOINT active_record_1
998
-  (0.1ms) SAVEPOINT active_record_1
999
- Processing by PushType::WysiwygMediaController#create as JSON
1000
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f80bfe86830 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150423-5516-xcvi2m>>}}
896
+  (0.1ms) SAVEPOINT active_record_2
897
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-04-29 16:46:32.444578"], ["updated_at", "2015-04-29 16:46:32.444578"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
898
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1001
899
   (0.1ms) SAVEPOINT active_record_2
1002
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.129336"], ["updated_at", "2015-04-23 12:28:03.129336"], ["file_ext", "png"], ["mime_type", "image/png"]]
900
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-04-29 16:46:32.446789"], ["updated_at", "2015-04-29 16:46:32.446789"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1003
901
   (0.1ms) RELEASE SAVEPOINT active_record_2
1004
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1005
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1006
-  (0.1ms) ROLLBACK
1007
-  (0.1ms) BEGIN
1008
- -------------------------------------------------------------------------------------
1009
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1010
- -------------------------------------------------------------------------------------
1011
-  (0.1ms) SAVEPOINT active_record_1
1012
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1013
-  (0.1ms) SAVEPOINT active_record_1
1014
- Processing by PushType::WysiwygMediaController#create as JSON
1015
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f80c39c22c8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150423-5516-1glpgr1>>}}
1016
902
   (0.1ms) SAVEPOINT active_record_2
1017
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.137512"], ["updated_at", "2015-04-23 12:28:03.137512"], ["file_ext", "png"], ["mime_type", "image/png"]]
903
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-04-29 16:46:32.448847"], ["updated_at", "2015-04-29 16:46:32.448847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1018
904
   (0.1ms) RELEASE SAVEPOINT active_record_2
1019
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
905
+ Processing by PushType::WysiwygMediaController#index as JSON
906
+ Parameters: {"filter"=>"file"}
907
+ 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
908
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
909
+ Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms)
1020
910
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1021
911
   (0.1ms) ROLLBACK
1022
912
   (0.1ms) BEGIN
1023
- -------------------------------------------------------------------------------------
1024
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1025
- -------------------------------------------------------------------------------------
913
+ --------------------------------------------------------------------------------------
914
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
915
+ --------------------------------------------------------------------------------------
1026
916
   (0.1ms) SAVEPOINT active_record_1
1027
917
   (0.0ms) RELEASE SAVEPOINT active_record_1
1028
918
   (0.0ms) SAVEPOINT active_record_1
1029
- Processing by PushType::WysiwygMediaController#create as JSON
1030
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f80c1fb9b60 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150423-5516-4pheju>>}}
1031
919
   (0.1ms) SAVEPOINT active_record_2
1032
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.145867"], ["updated_at", "2015-04-23 12:28:03.145867"], ["file_ext", "png"], ["mime_type", "image/png"]]
920
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "201"], ["created_at", "2015-04-29 16:46:32.464576"], ["updated_at", "2015-04-29 16:46:32.464576"], ["file_ext", "png"], ["mime_type", "image/png"]]
1033
921
   (0.1ms) RELEASE SAVEPOINT active_record_2
1034
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1035
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1036
-  (0.1ms) ROLLBACK
1037
-  (0.0ms) BEGIN
1038
- --------------------------------------------------------------------------------------
1039
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1040
- --------------------------------------------------------------------------------------
1041
-  (0.0ms) SAVEPOINT active_record_1
1042
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1043
-  (0.0ms) SAVEPOINT active_record_1
1044
922
   (0.1ms) SAVEPOINT active_record_2
1045
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-04-23 12:28:03.151780"], ["updated_at", "2015-04-23 12:28:03.151780"], ["file_ext", "png"], ["mime_type", "image/png"]]
923
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "202"], ["created_at", "2015-04-29 16:46:32.466726"], ["updated_at", "2015-04-29 16:46:32.466726"], ["file_ext", "png"], ["mime_type", "image/png"]]
1046
924
   (0.1ms) RELEASE SAVEPOINT active_record_2
1047
925
   (0.1ms) SAVEPOINT active_record_2
1048
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-04-23 12:28:03.154757"], ["updated_at", "2015-04-23 12:28:03.154757"], ["file_ext", "png"], ["mime_type", "image/png"]]
926
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "203"], ["created_at", "2015-04-29 16:46:32.468754"], ["updated_at", "2015-04-29 16:46:32.468754"], ["file_ext", "png"], ["mime_type", "image/png"]]
1049
927
   (0.1ms) RELEASE SAVEPOINT active_record_2
1050
928
   (0.1ms) SAVEPOINT active_record_2
1051
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-04-23 12:28:03.157243"], ["updated_at", "2015-04-23 12:28:03.157243"], ["file_ext", "png"], ["mime_type", "image/png"]]
929
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "204"], ["created_at", "2015-04-29 16:46:32.470989"], ["updated_at", "2015-04-29 16:46:32.470989"], ["file_ext", "png"], ["mime_type", "image/png"]]
1052
930
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
931
   (0.1ms) SAVEPOINT active_record_2
1054
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-04-23 12:28:03.159975"], ["updated_at", "2015-04-23 12:28:03.159975"], ["file_ext", "png"], ["mime_type", "image/png"]]
932
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "205"], ["created_at", "2015-04-29 16:46:32.473021"], ["updated_at", "2015-04-29 16:46:32.473021"], ["file_ext", "png"], ["mime_type", "image/png"]]
1055
933
   (0.1ms) RELEASE SAVEPOINT active_record_2
1056
934
   (0.1ms) SAVEPOINT active_record_2
1057
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-04-23 12:28:03.162540"], ["updated_at", "2015-04-23 12:28:03.162540"], ["file_ext", "png"], ["mime_type", "image/png"]]
935
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-04-29 16:46:32.475273"], ["updated_at", "2015-04-29 16:46:32.475273"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1058
936
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
937
   (0.1ms) SAVEPOINT active_record_2
1060
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-04-23 12:28:03.165076"], ["updated_at", "2015-04-23 12:28:03.165076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
938
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-04-29 16:46:32.477318"], ["updated_at", "2015-04-29 16:46:32.477318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
939
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
940
   (0.1ms) SAVEPOINT active_record_2
1063
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-04-23 12:28:03.167637"], ["updated_at", "2015-04-23 12:28:03.167637"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
941
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-04-29 16:46:32.479323"], ["updated_at", "2015-04-29 16:46:32.479323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
942
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
943
   (0.1ms) SAVEPOINT active_record_2
1066
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-04-23 12:28:03.170326"], ["updated_at", "2015-04-23 12:28:03.170326"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
944
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-04-29 16:46:32.481304"], ["updated_at", "2015-04-29 16:46:32.481304"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
945
   (0.1ms) RELEASE SAVEPOINT active_record_2
1068
946
   (0.1ms) SAVEPOINT active_record_2
1069
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-04-23 12:28:03.172881"], ["updated_at", "2015-04-23 12:28:03.172881"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
947
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-04-29 16:46:32.483275"], ["updated_at", "2015-04-29 16:46:32.483275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1070
948
   (0.1ms) RELEASE SAVEPOINT active_record_2
1071
949
   (0.1ms) SAVEPOINT active_record_2
1072
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-04-23 12:28:03.175520"], ["updated_at", "2015-04-23 12:28:03.175520"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
950
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-04-29 16:46:32.485262"], ["updated_at", "2015-04-29 16:46:32.485262"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1073
951
   (0.1ms) RELEASE SAVEPOINT active_record_2
1074
952
   (0.1ms) SAVEPOINT active_record_2
1075
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-04-23 12:28:03.178256"], ["updated_at", "2015-04-23 12:28:03.178256"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
953
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-04-29 16:46:32.487256"], ["updated_at", "2015-04-29 16:46:32.487256"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1076
954
   (0.1ms) RELEASE SAVEPOINT active_record_2
1077
955
   (0.1ms) SAVEPOINT active_record_2
1078
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-04-23 12:28:03.180776"], ["updated_at", "2015-04-23 12:28:03.180776"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
956
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-04-29 16:46:32.489202"], ["updated_at", "2015-04-29 16:46:32.489202"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1079
957
   (0.1ms) RELEASE SAVEPOINT active_record_2
1080
958
   (0.1ms) SAVEPOINT active_record_2
1081
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-04-23 12:28:03.183238"], ["updated_at", "2015-04-23 12:28:03.183238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
959
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "214"], ["created_at", "2015-04-29 16:46:32.491153"], ["updated_at", "2015-04-29 16:46:32.491153"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1082
960
   (0.1ms) RELEASE SAVEPOINT active_record_2
1083
961
   (0.1ms) SAVEPOINT active_record_2
1084
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-04-23 12:28:03.185676"], ["updated_at", "2015-04-23 12:28:03.185676"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
962
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "215"], ["created_at", "2015-04-29 16:46:32.493094"], ["updated_at", "2015-04-29 16:46:32.493094"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1085
963
   (0.1ms) RELEASE SAVEPOINT active_record_2
1086
964
   (0.1ms) SAVEPOINT active_record_2
1087
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-04-23 12:28:03.188274"], ["updated_at", "2015-04-23 12:28:03.188274"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
965
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-04-29 16:46:32.495086"], ["updated_at", "2015-04-29 16:46:32.495086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1088
966
   (0.1ms) RELEASE SAVEPOINT active_record_2
1089
967
   (0.1ms) SAVEPOINT active_record_2
1090
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-04-23 12:28:03.190753"], ["updated_at", "2015-04-23 12:28:03.190753"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
968
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-04-29 16:46:32.497232"], ["updated_at", "2015-04-29 16:46:32.497232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1091
969
   (0.1ms) RELEASE SAVEPOINT active_record_2
1092
970
   (0.1ms) SAVEPOINT active_record_2
1093
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-04-23 12:28:03.193396"], ["updated_at", "2015-04-23 12:28:03.193396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
971
+ 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", "218"], ["created_at", "2015-04-29 16:46:32.533250"], ["updated_at", "2015-04-29 16:46:32.533250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1094
972
   (0.1ms) RELEASE SAVEPOINT active_record_2
1095
-  (0.1ms) SAVEPOINT active_record_2
1096
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-04-23 12:28:03.195987"], ["updated_at", "2015-04-23 12:28:03.195987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1097
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1098
973
  Processing by PushType::WysiwygMediaController#index as JSON
1099
974
  Parameters: {"filter"=>"file"}
1100
- 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
1101
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1102
- Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.6ms)
1103
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1104
-  (0.1ms) ROLLBACK
1105
-  (0.1ms) BEGIN
975
+ 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
976
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
977
+ Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms)
978
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
979
+  (0.1ms) ROLLBACK
980
+  (0.1ms) BEGIN
1106
981
  --------------------------------------------------------------------------------------
1107
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
982
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1108
983
  --------------------------------------------------------------------------------------
1109
-  (0.0ms) SAVEPOINT active_record_1
1110
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1111
-  (0.0ms) SAVEPOINT active_record_1
1112
-  (0.1ms) SAVEPOINT active_record_2
1113
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-04-23 12:28:03.217146"], ["updated_at", "2015-04-23 12:28:03.217146"], ["file_ext", "png"], ["mime_type", "image/png"]]
1114
-  (0.1ms) RELEASE SAVEPOINT active_record_2
984
+  (0.1ms) SAVEPOINT active_record_1
985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
986
+  (0.0ms) SAVEPOINT active_record_1
1115
987
   (0.1ms) SAVEPOINT active_record_2
1116
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-04-23 12:28:03.219924"], ["updated_at", "2015-04-23 12:28:03.219924"], ["file_ext", "png"], ["mime_type", "image/png"]]
988
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "219"], ["created_at", "2015-04-29 16:46:32.548749"], ["updated_at", "2015-04-29 16:46:32.548749"], ["file_ext", "png"], ["mime_type", "image/png"]]
1117
989
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
990
   (0.1ms) SAVEPOINT active_record_2
1119
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-04-23 12:28:03.222437"], ["updated_at", "2015-04-23 12:28:03.222437"], ["file_ext", "png"], ["mime_type", "image/png"]]
991
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "220"], ["created_at", "2015-04-29 16:46:32.550860"], ["updated_at", "2015-04-29 16:46:32.550860"], ["file_ext", "png"], ["mime_type", "image/png"]]
1120
992
   (0.1ms) RELEASE SAVEPOINT active_record_2
1121
993
   (0.1ms) SAVEPOINT active_record_2
1122
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-04-23 12:28:03.224895"], ["updated_at", "2015-04-23 12:28:03.224895"], ["file_ext", "png"], ["mime_type", "image/png"]]
994
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "221"], ["created_at", "2015-04-29 16:46:32.552845"], ["updated_at", "2015-04-29 16:46:32.552845"], ["file_ext", "png"], ["mime_type", "image/png"]]
1123
995
   (0.1ms) RELEASE SAVEPOINT active_record_2
1124
996
   (0.1ms) SAVEPOINT active_record_2
1125
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "218"], ["created_at", "2015-04-23 12:28:03.227662"], ["updated_at", "2015-04-23 12:28:03.227662"], ["file_ext", "png"], ["mime_type", "image/png"]]
997
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "222"], ["created_at", "2015-04-29 16:46:32.554836"], ["updated_at", "2015-04-29 16:46:32.554836"], ["file_ext", "png"], ["mime_type", "image/png"]]
1126
998
   (0.1ms) RELEASE SAVEPOINT active_record_2
1127
999
   (0.1ms) SAVEPOINT active_record_2
1128
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-04-23 12:28:03.230386"], ["updated_at", "2015-04-23 12:28:03.230386"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1000
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "223"], ["created_at", "2015-04-29 16:46:32.557713"], ["updated_at", "2015-04-29 16:46:32.557713"], ["file_ext", "png"], ["mime_type", "image/png"]]
1129
1001
   (0.1ms) RELEASE SAVEPOINT active_record_2
1130
1002
   (0.1ms) SAVEPOINT active_record_2
1131
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-04-23 12:28:03.232913"], ["updated_at", "2015-04-23 12:28:03.232913"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1003
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-04-29 16:46:32.560441"], ["updated_at", "2015-04-29 16:46:32.560441"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1132
1004
   (0.1ms) RELEASE SAVEPOINT active_record_2
1133
1005
   (0.1ms) SAVEPOINT active_record_2
1134
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-04-23 12:28:03.235428"], ["updated_at", "2015-04-23 12:28:03.235428"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1006
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-04-29 16:46:32.562768"], ["updated_at", "2015-04-29 16:46:32.562768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1135
1007
   (0.1ms) RELEASE SAVEPOINT active_record_2
1136
1008
   (0.1ms) SAVEPOINT active_record_2
1137
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-04-23 12:28:03.237788"], ["updated_at", "2015-04-23 12:28:03.237788"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1009
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-04-29 16:46:32.565379"], ["updated_at", "2015-04-29 16:46:32.565379"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1138
1010
   (0.1ms) RELEASE SAVEPOINT active_record_2
1139
1011
   (0.1ms) SAVEPOINT active_record_2
1140
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-04-23 12:28:03.240378"], ["updated_at", "2015-04-23 12:28:03.240378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1012
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-04-29 16:46:32.567802"], ["updated_at", "2015-04-29 16:46:32.567802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1141
1013
   (0.1ms) RELEASE SAVEPOINT active_record_2
1142
1014
   (0.1ms) SAVEPOINT active_record_2
1143
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-04-23 12:28:03.242821"], ["updated_at", "2015-04-23 12:28:03.242821"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1015
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-04-29 16:46:32.570074"], ["updated_at", "2015-04-29 16:46:32.570074"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1144
1016
   (0.1ms) RELEASE SAVEPOINT active_record_2
1145
1017
   (0.1ms) SAVEPOINT active_record_2
1146
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-04-23 12:28:03.245574"], ["updated_at", "2015-04-23 12:28:03.245574"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1018
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-04-29 16:46:32.572540"], ["updated_at", "2015-04-29 16:46:32.572540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1147
1019
   (0.1ms) RELEASE SAVEPOINT active_record_2
1148
1020
   (0.1ms) SAVEPOINT active_record_2
1149
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-04-23 12:28:03.248069"], ["updated_at", "2015-04-23 12:28:03.248069"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1021
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-04-29 16:46:32.574956"], ["updated_at", "2015-04-29 16:46:32.574956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1150
1022
   (0.1ms) RELEASE SAVEPOINT active_record_2
1151
1023
   (0.1ms) SAVEPOINT active_record_2
1152
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-04-23 12:28:03.250627"], ["updated_at", "2015-04-23 12:28:03.250627"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1024
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-04-29 16:46:32.577298"], ["updated_at", "2015-04-29 16:46:32.577298"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1153
1025
   (0.1ms) RELEASE SAVEPOINT active_record_2
1154
1026
   (0.1ms) SAVEPOINT active_record_2
1155
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-04-23 12:28:03.253230"], ["updated_at", "2015-04-23 12:28:03.253230"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1027
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "232"], ["created_at", "2015-04-29 16:46:32.579549"], ["updated_at", "2015-04-29 16:46:32.579549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1156
1028
   (0.1ms) RELEASE SAVEPOINT active_record_2
1157
1029
   (0.1ms) SAVEPOINT active_record_2
1158
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-04-23 12:28:03.255777"], ["updated_at", "2015-04-23 12:28:03.255777"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1030
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "233"], ["created_at", "2015-04-29 16:46:32.581934"], ["updated_at", "2015-04-29 16:46:32.581934"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1159
1031
   (0.1ms) RELEASE SAVEPOINT active_record_2
1160
1032
   (0.1ms) SAVEPOINT active_record_2
1161
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-04-23 12:28:03.264731"], ["updated_at", "2015-04-23 12:28:03.264731"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1033
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "234"], ["created_at", "2015-04-29 16:46:32.584215"], ["updated_at", "2015-04-29 16:46:32.584215"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1162
1034
   (0.1ms) RELEASE SAVEPOINT active_record_2
1163
1035
   (0.1ms) SAVEPOINT active_record_2
1164
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-04-23 12:28:03.267687"], ["updated_at", "2015-04-23 12:28:03.267687"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1036
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "235"], ["created_at", "2015-04-29 16:46:32.586294"], ["updated_at", "2015-04-29 16:46:32.586294"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1165
1037
   (0.1ms) RELEASE SAVEPOINT active_record_2
1038
+  (0.1ms) SAVEPOINT active_record_2
1039
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-04-29 16:46:32.588511"], ["updated_at", "2015-04-29 16:46:32.588511"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1166
1041
  Processing by PushType::WysiwygMediaController#index as JSON
1167
1042
  Parameters: {"filter"=>"file"}
1168
- 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
1169
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1170
- Completed 200 OK in 14ms (Views: 0.7ms | ActiveRecord: 0.6ms)
1043
+ 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
1044
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1045
+ Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1046
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1047
+  (0.1ms) ROLLBACK
1048
+  (0.1ms) BEGIN
1049
+ ----------------------------------------------------------------------
1050
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
1051
+ ----------------------------------------------------------------------
1052
+  (0.1ms) SAVEPOINT active_record_1
1053
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1054
+  (0.1ms) SAVEPOINT active_record_1
1055
+  (0.1ms) SAVEPOINT active_record_2
1056
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "237"], ["created_at", "2015-04-29 16:46:32.607494"], ["updated_at", "2015-04-29 16:46:32.607494"], ["file_ext", "png"], ["mime_type", "image/png"]]
1057
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1171
1058
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1172
1059
   (0.1ms) ROLLBACK
1173
1060
   (0.1ms) BEGIN
1174
- --------------------------------------------------------------------------------------
1175
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1176
- --------------------------------------------------------------------------------------
1061
+ ----------------------------------------------------------------------
1062
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
1063
+ ----------------------------------------------------------------------
1177
1064
   (0.1ms) SAVEPOINT active_record_1
1178
1065
   (0.0ms) RELEASE SAVEPOINT active_record_1
1179
1066
   (0.0ms) SAVEPOINT active_record_1
1180
1067
   (0.1ms) SAVEPOINT active_record_2
1181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-04-23 12:28:03.289230"], ["updated_at", "2015-04-23 12:28:03.289230"], ["file_ext", "png"], ["mime_type", "image/png"]]
1182
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1183
-  (0.1ms) SAVEPOINT active_record_2
1184
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-04-23 12:28:03.291864"], ["updated_at", "2015-04-23 12:28:03.291864"], ["file_ext", "png"], ["mime_type", "image/png"]]
1185
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1186
-  (0.1ms) SAVEPOINT active_record_2
1187
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-04-23 12:28:03.294261"], ["updated_at", "2015-04-23 12:28:03.294261"], ["file_ext", "png"], ["mime_type", "image/png"]]
1068
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "238"], ["created_at", "2015-04-29 16:46:32.611462"], ["updated_at", "2015-04-29 16:46:32.611462"], ["file_ext", "png"], ["mime_type", "image/png"]]
1188
1069
   (0.1ms) RELEASE SAVEPOINT active_record_2
1070
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1071
+  (0.1ms) ROLLBACK
1072
+  (0.1ms) BEGIN
1073
+ ----------------------------------------------------------------------
1074
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
1075
+ ----------------------------------------------------------------------
1076
+  (0.1ms) SAVEPOINT active_record_1
1077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1078
+  (0.1ms) SAVEPOINT active_record_1
1189
1079
   (0.1ms) SAVEPOINT active_record_2
1190
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-04-23 12:28:03.296864"], ["updated_at", "2015-04-23 12:28:03.296864"], ["file_ext", "png"], ["mime_type", "image/png"]]
1080
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-04-29 16:46:32.615448"], ["updated_at", "2015-04-29 16:46:32.615448"], ["file_ext", "png"], ["mime_type", "image/png"]]
1191
1081
   (0.1ms) RELEASE SAVEPOINT active_record_2
1082
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1083
+  (0.1ms) ROLLBACK
1084
+  (0.1ms) BEGIN
1085
+ ----------------------------------------------------------------------
1086
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
1087
+ ----------------------------------------------------------------------
1088
+  (0.0ms) SAVEPOINT active_record_1
1089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1090
+  (0.0ms) SAVEPOINT active_record_1
1192
1091
   (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", "236"], ["created_at", "2015-04-23 12:28:03.299527"], ["updated_at", "2015-04-23 12:28:03.299527"], ["file_ext", "png"], ["mime_type", "image/png"]]
1092
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "240"], ["created_at", "2015-04-29 16:46:32.619245"], ["updated_at", "2015-04-29 16:46:32.619245"], ["file_ext", "png"], ["mime_type", "image/png"]]
1194
1093
   (0.1ms) RELEASE SAVEPOINT active_record_2
1094
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1095
+  (0.1ms) ROLLBACK
1096
+  (0.1ms) BEGIN
1097
+ ----------------------------------------------------------------------
1098
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
1099
+ ----------------------------------------------------------------------
1100
+  (0.0ms) SAVEPOINT active_record_1
1101
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1102
+  (0.0ms) SAVEPOINT active_record_1
1195
1103
   (0.1ms) SAVEPOINT active_record_2
1196
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.302093"], ["updated_at", "2015-04-23 12:28:03.302093"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1104
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-04-29 16:46:32.622922"], ["updated_at", "2015-04-29 16:46:32.622922"], ["file_ext", "png"], ["mime_type", "image/png"]]
1197
1105
   (0.1ms) RELEASE SAVEPOINT active_record_2
1106
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1107
+  (0.1ms) ROLLBACK
1108
+  (0.1ms) BEGIN
1109
+ ----------------------------------------------------------------------
1110
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
1111
+ ----------------------------------------------------------------------
1112
+  (0.1ms) SAVEPOINT active_record_1
1113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1114
+  (0.0ms) SAVEPOINT active_record_1
1198
1115
   (0.1ms) SAVEPOINT active_record_2
1199
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.304668"], ["updated_at", "2015-04-23 12:28:03.304668"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1116
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-04-29 16:46:32.626874"], ["updated_at", "2015-04-29 16:46:32.626874"], ["file_ext", "png"], ["mime_type", "image/png"]]
1200
1117
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1119
+  (0.1ms) ROLLBACK
1120
+  (0.1ms) BEGIN
1121
+ ----------------------------------------------------------------------
1122
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
1123
+ ----------------------------------------------------------------------
1124
+  (0.0ms) SAVEPOINT active_record_1
1125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1126
+  (0.0ms) SAVEPOINT active_record_1
1201
1127
   (0.1ms) SAVEPOINT active_record_2
1202
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.307105"], ["updated_at", "2015-04-23 12:28:03.307105"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "243"], ["created_at", "2015-04-29 16:46:32.630653"], ["updated_at", "2015-04-29 16:46:32.630653"], ["file_ext", "png"], ["mime_type", "image/png"]]
1203
1129
   (0.1ms) RELEASE SAVEPOINT active_record_2
1130
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1131
+  (0.1ms) ROLLBACK
1132
+  (0.1ms) BEGIN
1133
+ ----------------------------------------------------------------------------------------
1134
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
1135
+ ----------------------------------------------------------------------------------------
1136
+  (0.1ms) SAVEPOINT active_record_1
1137
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1138
+  (0.1ms) SAVEPOINT active_record_1
1139
+ Processing by PushType::WysiwygMediaController#create as JSON
1140
+ Parameters: {"asset"=>{}}
1204
1141
   (0.1ms) SAVEPOINT active_record_2
1205
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.310552"], ["updated_at", "2015-04-23 12:28:03.310552"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1206
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1207
-  (0.1ms) SAVEPOINT active_record_2
1208
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.313557"], ["updated_at", "2015-04-23 12:28:03.313557"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1209
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1142
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1143
+ Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1144
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1145
+  (0.1ms) ROLLBACK
1146
+  (0.1ms) BEGIN
1147
+ ----------------------------------------------------------------------------------------
1148
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
1149
+ ----------------------------------------------------------------------------------------
1150
+  (0.1ms) SAVEPOINT active_record_1
1151
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1152
+  (0.0ms) SAVEPOINT active_record_1
1153
+ Processing by PushType::WysiwygMediaController#create as JSON
1154
+ Parameters: {"asset"=>{}}
1210
1155
   (0.1ms) SAVEPOINT active_record_2
1211
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.316241"], ["updated_at", "2015-04-23 12:28:03.316241"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1212
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1213
-  (0.1ms) SAVEPOINT active_record_2
1214
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.319060"], ["updated_at", "2015-04-23 12:28:03.319060"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1215
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1156
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1157
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1158
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1159
+  (0.1ms) ROLLBACK
1160
+  (0.1ms) BEGIN
1161
+ ----------------------------------------------------------------------------------------
1162
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
1163
+ ----------------------------------------------------------------------------------------
1164
+  (0.1ms) SAVEPOINT active_record_1
1165
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1166
+  (0.1ms) SAVEPOINT active_record_1
1167
+ Processing by PushType::WysiwygMediaController#create as JSON
1168
+ Parameters: {"asset"=>{}}
1216
1169
   (0.1ms) SAVEPOINT active_record_2
1217
- 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-04-23 12:28:03.322598"], ["updated_at", "2015-04-23 12:28:03.322598"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1218
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1219
-  (0.1ms) SAVEPOINT active_record_2
1220
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-04-23 12:28:03.326016"], ["updated_at", "2015-04-23 12:28:03.326016"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1221
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1170
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1171
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1172
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1173
+  (0.1ms) ROLLBACK
1174
+  (0.1ms) BEGIN
1175
+ -----------------------------------------------------------------------
1176
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1177
+ -----------------------------------------------------------------------
1178
+  (0.1ms) SAVEPOINT active_record_1
1179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1180
+  (0.0ms) SAVEPOINT active_record_1
1222
1181
   (0.1ms) SAVEPOINT active_record_2
1223
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-04-23 12:28:03.328763"], ["updated_at", "2015-04-23 12:28:03.328763"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "244"], ["created_at", "2015-04-29 16:46:32.658483"], ["updated_at", "2015-04-29 16:46:32.658483"], ["file_ext", "png"], ["mime_type", "image/png"]]
1224
1183
   (0.1ms) RELEASE SAVEPOINT active_record_2
1225
1184
   (0.1ms) SAVEPOINT active_record_2
1226
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-04-23 12:28:03.331714"], ["updated_at", "2015-04-23 12:28:03.331714"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "245"], ["created_at", "2015-04-29 16:46:32.660978"], ["updated_at", "2015-04-29 16:46:32.660978"], ["file_ext", "png"], ["mime_type", "image/png"]]
1227
1186
   (0.1ms) RELEASE SAVEPOINT active_record_2
1228
1187
   (0.1ms) SAVEPOINT active_record_2
1229
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.334861"], ["updated_at", "2015-04-23 12:28:03.334861"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "246"], ["created_at", "2015-04-29 16:46:32.663133"], ["updated_at", "2015-04-29 16:46:32.663133"], ["file_ext", "png"], ["mime_type", "image/png"]]
1230
1189
   (0.1ms) RELEASE SAVEPOINT active_record_2
1231
1190
   (0.1ms) SAVEPOINT active_record_2
1232
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.337537"], ["updated_at", "2015-04-23 12:28:03.337537"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1191
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.665289"], ["updated_at", "2015-04-29 16:46:32.665289"], ["file_ext", "png"], ["mime_type", "image/png"]]
1233
1192
   (0.1ms) RELEASE SAVEPOINT active_record_2
1234
- Processing by PushType::WysiwygMediaController#index as JSON
1235
- Parameters: {"filter"=>"file"}
1236
- 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
1237
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1238
- Completed 200 OK in 15ms (Views: 0.9ms | ActiveRecord: 0.6ms)
1193
+ 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
1194
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1239
1195
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1240
1196
   (0.1ms) ROLLBACK
1241
1197
   (0.1ms) BEGIN
1242
- --------------------------------------------------------------------------------------
1243
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
1244
- --------------------------------------------------------------------------------------
1245
-  (0.1ms) SAVEPOINT active_record_1
1246
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1198
+ -----------------------------------------------------------------------
1199
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1200
+ -----------------------------------------------------------------------
1247
1201
   (0.1ms) SAVEPOINT active_record_1
1202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1203
+  (0.0ms) SAVEPOINT active_record_1
1248
1204
   (0.1ms) SAVEPOINT active_record_2
1249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.361458"], ["updated_at", "2015-04-23 12:28:03.361458"], ["file_ext", "png"], ["mime_type", "image/png"]]
1250
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1251
-  (0.1ms) SAVEPOINT active_record_2
1252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.364340"], ["updated_at", "2015-04-23 12:28:03.364340"], ["file_ext", "png"], ["mime_type", "image/png"]]
1253
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1254
-  (0.1ms) SAVEPOINT active_record_2
1255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.367437"], ["updated_at", "2015-04-23 12:28:03.367437"], ["file_ext", "png"], ["mime_type", "image/png"]]
1205
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.671011"], ["updated_at", "2015-04-29 16:46:32.671011"], ["file_ext", "png"], ["mime_type", "image/png"]]
1256
1206
   (0.1ms) RELEASE SAVEPOINT active_record_2
1257
1207
   (0.1ms) SAVEPOINT active_record_2
1258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.370433"], ["updated_at", "2015-04-23 12:28:03.370433"], ["file_ext", "png"], ["mime_type", "image/png"]]
1208
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.673406"], ["updated_at", "2015-04-29 16:46:32.673406"], ["file_ext", "png"], ["mime_type", "image/png"]]
1259
1209
   (0.1ms) RELEASE SAVEPOINT active_record_2
1260
1210
   (0.1ms) SAVEPOINT active_record_2
1261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-04-23 12:28:03.373101"], ["updated_at", "2015-04-23 12:28:03.373101"], ["file_ext", "png"], ["mime_type", "image/png"]]
1211
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.675540"], ["updated_at", "2015-04-29 16:46:32.675540"], ["file_ext", "png"], ["mime_type", "image/png"]]
1262
1212
   (0.1ms) RELEASE SAVEPOINT active_record_2
1263
1213
   (0.1ms) SAVEPOINT active_record_2
1264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-04-23 12:28:03.376030"], ["updated_at", "2015-04-23 12:28:03.376030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1214
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.677841"], ["updated_at", "2015-04-29 16:46:32.677841"], ["file_ext", "png"], ["mime_type", "image/png"]]
1265
1215
   (0.1ms) RELEASE SAVEPOINT active_record_2
1216
+ 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
1217
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1218
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1219
+  (0.1ms) ROLLBACK
1220
+  (0.0ms) BEGIN
1221
+ -----------------------------------------------------------------------
1222
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1223
+ -----------------------------------------------------------------------
1224
+  (0.1ms) SAVEPOINT active_record_1
1225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1226
+  (0.0ms) SAVEPOINT active_record_1
1266
1227
   (0.1ms) SAVEPOINT active_record_2
1267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-04-23 12:28:03.378786"], ["updated_at", "2015-04-23 12:28:03.378786"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1228
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.683694"], ["updated_at", "2015-04-29 16:46:32.683694"], ["file_ext", "png"], ["mime_type", "image/png"]]
1268
1229
   (0.1ms) RELEASE SAVEPOINT active_record_2
1269
1230
   (0.1ms) SAVEPOINT active_record_2
1270
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.381766"], ["updated_at", "2015-04-23 12:28:03.381766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1231
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.686123"], ["updated_at", "2015-04-29 16:46:32.686123"], ["file_ext", "png"], ["mime_type", "image/png"]]
1271
1232
   (0.1ms) RELEASE SAVEPOINT active_record_2
1272
1233
   (0.1ms) SAVEPOINT active_record_2
1273
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.384730"], ["updated_at", "2015-04-23 12:28:03.384730"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1234
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.688232"], ["updated_at", "2015-04-29 16:46:32.688232"], ["file_ext", "png"], ["mime_type", "image/png"]]
1274
1235
   (0.1ms) RELEASE SAVEPOINT active_record_2
1275
1236
   (0.1ms) SAVEPOINT active_record_2
1276
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-04-23 12:28:03.387625"], ["updated_at", "2015-04-23 12:28:03.387625"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.690341"], ["updated_at", "2015-04-29 16:46:32.690341"], ["file_ext", "png"], ["mime_type", "image/png"]]
1277
1238
   (0.1ms) RELEASE SAVEPOINT active_record_2
1239
+ 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
1240
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1241
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1242
+  (0.1ms) ROLLBACK
1243
+  (0.1ms) BEGIN
1244
+ -----------------------------------------------------------------------
1245
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1246
+ -----------------------------------------------------------------------
1247
+  (0.0ms) SAVEPOINT active_record_1
1248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1249
+  (0.0ms) SAVEPOINT active_record_1
1278
1250
   (0.1ms) SAVEPOINT active_record_2
1279
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-04-23 12:28:03.390323"], ["updated_at", "2015-04-23 12:28:03.390323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1251
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.696173"], ["updated_at", "2015-04-29 16:46:32.696173"], ["file_ext", "png"], ["mime_type", "image/png"]]
1280
1252
   (0.1ms) RELEASE SAVEPOINT active_record_2
1281
1253
   (0.1ms) SAVEPOINT active_record_2
1282
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-04-23 12:28:03.393519"], ["updated_at", "2015-04-23 12:28:03.393519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1254
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.698519"], ["updated_at", "2015-04-29 16:46:32.698519"], ["file_ext", "png"], ["mime_type", "image/png"]]
1283
1255
   (0.1ms) RELEASE SAVEPOINT active_record_2
1284
1256
   (0.1ms) SAVEPOINT active_record_2
1285
- 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", "262"], ["created_at", "2015-04-23 12:28:03.396394"], ["updated_at", "2015-04-23 12:28:03.396394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1257
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.700700"], ["updated_at", "2015-04-29 16:46:32.700700"], ["file_ext", "png"], ["mime_type", "image/png"]]
1286
1258
   (0.1ms) RELEASE SAVEPOINT active_record_2
1287
1259
   (0.1ms) SAVEPOINT active_record_2
1288
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.399555"], ["updated_at", "2015-04-23 12:28:03.399555"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1260
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.702804"], ["updated_at", "2015-04-29 16:46:32.702804"], ["file_ext", "png"], ["mime_type", "image/png"]]
1289
1261
   (0.1ms) RELEASE SAVEPOINT active_record_2
1262
+ 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
1263
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1264
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1265
+  (0.2ms) ROLLBACK
1266
+  (0.1ms) BEGIN
1267
+ -----------------------------------------------------------------------
1268
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1269
+ -----------------------------------------------------------------------
1270
+  (0.0ms) SAVEPOINT active_record_1
1271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
+  (0.1ms) SAVEPOINT active_record_1
1290
1273
   (0.1ms) SAVEPOINT active_record_2
1291
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.402548"], ["updated_at", "2015-04-23 12:28:03.402548"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-04-29 16:46:32.708473"], ["updated_at", "2015-04-29 16:46:32.708473"], ["file_ext", "png"], ["mime_type", "image/png"]]
1292
1275
   (0.1ms) RELEASE SAVEPOINT active_record_2
1293
1276
   (0.1ms) SAVEPOINT active_record_2
1294
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.405360"], ["updated_at", "2015-04-23 12:28:03.405360"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-04-29 16:46:32.710810"], ["updated_at", "2015-04-29 16:46:32.710810"], ["file_ext", "png"], ["mime_type", "image/png"]]
1295
1278
   (0.1ms) RELEASE SAVEPOINT active_record_2
1296
1279
   (0.1ms) SAVEPOINT active_record_2
1297
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.408109"], ["updated_at", "2015-04-23 12:28:03.408109"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-04-29 16:46:32.713075"], ["updated_at", "2015-04-29 16:46:32.713075"], ["file_ext", "png"], ["mime_type", "image/png"]]
1298
1281
   (0.1ms) RELEASE SAVEPOINT active_record_2
1299
1282
   (0.1ms) SAVEPOINT active_record_2
1300
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-23 12:28:03.410693"], ["updated_at", "2015-04-23 12:28:03.410693"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-04-29 16:46:32.715260"], ["updated_at", "2015-04-29 16:46:32.715260"], ["file_ext", "png"], ["mime_type", "image/png"]]
1301
1284
   (0.1ms) RELEASE SAVEPOINT active_record_2
1302
- Processing by PushType::WysiwygMediaController#index as JSON
1303
- Parameters: {"filter"=>"file"}
1304
- 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
1305
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1306
- Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 0.6ms)
1285
+ 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
1286
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1307
1287
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1308
1288
   (0.1ms) ROLLBACK
1309
1289
   (0.1ms) BEGIN
1310
- ----------------------------------------------------------------------------------------
1311
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
1312
- ----------------------------------------------------------------------------------------
1313
-  (0.1ms) SAVEPOINT active_record_1
1290
+ -------------------------------------------------------------------------------------
1291
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
1292
+ -------------------------------------------------------------------------------------
1293
+  (0.0ms) SAVEPOINT active_record_1
1314
1294
   (0.1ms) RELEASE SAVEPOINT active_record_1
1315
-  (0.1ms) SAVEPOINT active_record_1
1295
+  (0.0ms) SAVEPOINT active_record_1
1316
1296
  Processing by PushType::WysiwygMediaController#create as JSON
1317
- Parameters: {"asset"=>{}}
1297
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff595d17b20 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-z2jhqq>>}}
1318
1298
   (0.1ms) SAVEPOINT active_record_2
1319
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1320
- Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-04-29 16:46:32.723504"], ["updated_at", "2015-04-29 16:46:32.723504"], ["file_ext", "png"], ["mime_type", "image/png"]]
1300
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1301
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1302
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1303
+  (0.1ms) ROLLBACK
1304
+  (0.1ms) BEGIN
1305
+ -------------------------------------------------------------------------------------
1306
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1307
+ -------------------------------------------------------------------------------------
1308
+  (0.1ms) SAVEPOINT active_record_1
1309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1310
+  (0.1ms) SAVEPOINT active_record_1
1311
+ Processing by PushType::WysiwygMediaController#create as JSON
1312
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff595c86eb8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-1ghipio>>}}
1313
+  (0.1ms) SAVEPOINT active_record_2
1314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.729492"], ["updated_at", "2015-04-29 16:46:32.729492"], ["file_ext", "png"], ["mime_type", "image/png"]]
1315
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1316
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1321
1317
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1322
1318
   (0.1ms) ROLLBACK
1323
1319
   (0.1ms) BEGIN
1324
- ----------------------------------------------------------------------------------------
1325
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
1326
- ----------------------------------------------------------------------------------------
1327
-  (0.1ms) SAVEPOINT active_record_1
1328
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1329
-  (0.1ms) SAVEPOINT active_record_1
1320
+ -------------------------------------------------------------------------------------
1321
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1322
+ -------------------------------------------------------------------------------------
1323
+  (0.0ms) SAVEPOINT active_record_1
1324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1325
+  (0.0ms) SAVEPOINT active_record_1
1330
1326
  Processing by PushType::WysiwygMediaController#create as JSON
1331
- Parameters: {"asset"=>{}}
1327
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff595bf6638 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-17uf5z1>>}}
1332
1328
   (0.1ms) SAVEPOINT active_record_2
1333
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1329
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.735292"], ["updated_at", "2015-04-29 16:46:32.735292"], ["file_ext", "png"], ["mime_type", "image/png"]]
1330
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1334
1331
  Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1335
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1336
-  (0.1ms) ROLLBACK
1337
-  (0.1ms) BEGIN
1338
- ----------------------------------------------------------------------------------------
1339
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
1340
- ----------------------------------------------------------------------------------------
1341
-  (0.1ms) SAVEPOINT active_record_1
1342
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1343
-  (0.1ms) SAVEPOINT active_record_1
1332
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1333
+  (0.1ms) ROLLBACK
1334
+  (0.1ms) BEGIN
1335
+ --------------------------------------------------------------------------------
1336
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1337
+ --------------------------------------------------------------------------------
1338
+  (0.1ms) SAVEPOINT active_record_1
1339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1340
+  (0.0ms) SAVEPOINT active_record_1
1341
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1344
1342
  Processing by PushType::WysiwygMediaController#create as JSON
1345
- Parameters: {"asset"=>{}}
1343
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff59596a158 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-1tde7t3>>}}
1346
1344
   (0.1ms) SAVEPOINT active_record_2
1347
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1348
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1345
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-04-29 16:46:32.742356"], ["updated_at", "2015-04-29 16:46:32.742356"], ["file_ext", "png"], ["mime_type", "image/png"]]
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1347
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1348
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1349
1349
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1350
1350
   (0.1ms) ROLLBACK