push_type_wysiwyg 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (16) hide show
  1. checksums.yaml +4 -4
  2. data/test/dummy/config/initializers/push_type.rb +1 -1
  3. data/test/dummy/config/secrets.yml +2 -2
  4. data/test/dummy/db/migrate/{20150716155055_create_push_type_users.push_type.rb → 20150816155521_create_push_type_users.push_type.rb} +0 -0
  5. data/test/dummy/db/migrate/{20150716155056_create_push_type_nodes.push_type.rb → 20150816155522_create_push_type_nodes.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20150716155057_create_push_type_node_hierarchies.push_type.rb → 20150816155523_create_push_type_node_hierarchies.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150716155058_create_push_type_assets.push_type.rb → 20150816155524_create_push_type_assets.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150716155059_create_push_type_taxonomies.push_type.rb → 20150816155525_create_push_type_taxonomies.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20150716155060_create_push_type_taxonomy_hierarchies.push_type.rb → 20150816155526_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20150716155061_add_field_store_default_values.push_type.rb → 20150816155527_add_field_store_default_values.push_type.rb} +0 -0
  11. data/test/dummy/db/schema.rb +1 -1
  12. data/test/dummy/log/test.log +588 -588
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/BbvLT7G9ojUvtI0HU7G_rmPrIv82rlBK6mQyu158MwU.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/{Ei2L0uIaXjgl1f2cOn_RAqHa0efsfucFVRKEI72Scpw.cache → iEI8WixZrgmiB_zh_BWlKL7CuC2q7ssPJvlwnAQECoE.cache} +2 -3
  15. metadata +28 -29
  16. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yQyCExmcScF55PbC62h3j4_x1X37cPjB6OM0Mt9BVP4.cache +0 -1
@@ -1,56 +1,56 @@
1
-  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (12.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150716155055)
4
+ Migrating to CreatePushTypeUsers (20150816155521)
5
5
   (0.1ms) BEGIN
6
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.2ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155055"]]
6
+ SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.6ms) 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", "20150816155521"]]
9
9
   (0.6ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150716155056)
10
+ Migrating to CreatePushTypeNodes (20150816155522)
11
11
   (0.1ms) BEGIN
12
12
   (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155056"]]
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155522"]]
14
14
   (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150716155057)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150816155523)
16
16
   (0.1ms) BEGIN
17
-  (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
17
+  (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
+  (0.7ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155057"]]
21
-  (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150716155058)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155523"]]
21
+  (0.3ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150816155524)
23
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.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155058"]]
26
-  (0.5ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150716155059)
24
+  (2.7ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155524"]]
26
+  (0.4ms) COMMIT
27
+ Migrating to CreatePushTypeTaxonomies (20150816155525)
28
28
   (0.1ms) BEGIN
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)
29
+  (2.0ms) 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", "20150716155059"]]
32
-  (0.4ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150716155060)
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155525"]]
32
+  (0.3ms) COMMIT
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150816155526)
34
34
   (0.1ms) BEGIN
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.7ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
35
+  (0.6ms) 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
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", "20150716155060"]]
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155526"]]
39
39
   (0.4ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20150716155061)
40
+ Migrating to AddFieldStoreDefaultValues (20150816155527)
41
41
   (0.1ms) BEGIN
42
42
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
-  (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
43
+  (0.3ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
44
44
   (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
45
45
   (0.1ms) ALTER TABLE "push_type_nodes" ALTER "field_store" SET NOT NULL
46
-  (0.2ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
46
+  (0.3ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" TYPE jsonb
47
47
   (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
49
   (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155061"]]
51
-  (0.4ms) COMMIT
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150816155527"]]
51
+  (0.5ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
-  (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
53
+  (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
54
54
  FROM pg_constraint c
55
55
  JOIN pg_class t1 ON c.conrelid = t1.oid
56
56
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -98,7 +98,7 @@ WHERE c.contype = 'f'
98
98
  AND t3.nspname = ANY (current_schemas(false))
99
99
  ORDER BY c.conname
100
100
  
101
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
101
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
102
102
  FROM pg_constraint c
103
103
  JOIN pg_class t1 ON c.conrelid = t1.oid
104
104
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -110,7 +110,7 @@ WHERE c.contype = 'f'
110
110
  AND t3.nspname = ANY (current_schemas(false))
111
111
  ORDER BY c.conname
112
112
 
113
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
113
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
114
114
  FROM pg_constraint c
115
115
  JOIN pg_class t1 ON c.conrelid = t1.oid
116
116
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -122,616 +122,683 @@ WHERE c.contype = 'f'
122
122
  AND t3.nspname = ANY (current_schemas(false))
123
123
  ORDER BY c.conname
124
124
  
125
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
126
   (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
127
-  (1.0ms)  SELECT schemaname || '.' || tablename
127
+  (0.9ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
129
  WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
130
130
  
131
131
   (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
132
-  (10.5ms) 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;
133
-  (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
132
+  (13.0ms) 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;
133
+  (0.5ms) 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
134
134
   (0.1ms) BEGIN
135
- ----------------------------------------------------------------------------------
136
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
137
- ----------------------------------------------------------------------------------
135
+ ---------------------------------------------------------------------------------------
136
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
137
+ ---------------------------------------------------------------------------------------
138
138
   (0.1ms) SAVEPOINT active_record_1
139
139
   (0.1ms) RELEASE SAVEPOINT active_record_1
140
140
   (0.1ms) SAVEPOINT active_record_1
141
141
   (0.1ms) SAVEPOINT active_record_2
142
- 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-07-16 15:51:01.218748"], ["updated_at", "2015-07-16 15:51:01.218748"], ["file_ext", "png"], ["mime_type", "image/png"]]
142
+ 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-08-16 15:55:26.774308"], ["updated_at", "2015-08-16 15:55:26.774308"], ["file_ext", "png"], ["mime_type", "image/png"]]
143
143
   (0.1ms) RELEASE SAVEPOINT active_record_2
144
144
   (0.1ms) SAVEPOINT active_record_2
145
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.223803"], ["updated_at", "2015-07-16 15:51:01.223803"], ["file_ext", "png"], ["mime_type", "image/png"]]
145
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.779610"], ["updated_at", "2015-08-16 15:55:26.779610"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
147
   (0.1ms) SAVEPOINT active_record_2
148
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-07-16 15:51:01.226012"], ["updated_at", "2015-07-16 15:51:01.226012"], ["file_ext", "png"], ["mime_type", "image/png"]]
148
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.781927"], ["updated_at", "2015-08-16 15:55:26.781927"], ["file_ext", "png"], ["mime_type", "image/png"]]
149
149
   (0.1ms) RELEASE SAVEPOINT active_record_2
150
150
   (0.1ms) SAVEPOINT active_record_2
151
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.228394"], ["updated_at", "2015-07-16 15:51:01.228394"], ["file_ext", "png"], ["mime_type", "image/png"]]
151
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.784174"], ["updated_at", "2015-08-16 15:55:26.784174"], ["file_ext", "png"], ["mime_type", "image/png"]]
152
152
   (0.1ms) RELEASE SAVEPOINT active_record_2
153
153
   (0.1ms) SAVEPOINT active_record_2
154
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.230427"], ["updated_at", "2015-07-16 15:51:01.230427"], ["file_ext", "png"], ["mime_type", "image/png"]]
154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.786359"], ["updated_at", "2015-08-16 15:55:26.786359"], ["file_ext", "png"], ["mime_type", "image/png"]]
155
155
   (0.1ms) RELEASE SAVEPOINT active_record_2
156
156
   (0.1ms) SAVEPOINT active_record_2
157
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-07-16 15:51:01.232607"], ["updated_at", "2015-07-16 15:51:01.232607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
157
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-08-16 15:55:26.788871"], ["updated_at", "2015-08-16 15:55:26.788871"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
158
158
   (0.1ms) RELEASE SAVEPOINT active_record_2
159
159
   (0.1ms) SAVEPOINT active_record_2
160
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-07-16 15:51:01.234590"], ["updated_at", "2015-07-16 15:51:01.234590"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
160
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-08-16 15:55:26.791547"], ["updated_at", "2015-08-16 15:55:26.791547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
161
161
   (0.1ms) RELEASE SAVEPOINT active_record_2
162
162
   (0.1ms) SAVEPOINT active_record_2
163
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-07-16 15:51:01.236547"], ["updated_at", "2015-07-16 15:51:01.236547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
163
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-08-16 15:55:26.794015"], ["updated_at", "2015-08-16 15:55:26.794015"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
164
164
   (0.1ms) RELEASE SAVEPOINT active_record_2
165
165
   (0.1ms) SAVEPOINT active_record_2
166
- 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-07-16 15:51:01.238986"], ["updated_at", "2015-07-16 15:51:01.238986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
166
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-08-16 15:55:26.796565"], ["updated_at", "2015-08-16 15:55:26.796565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
167
167
   (0.1ms) RELEASE SAVEPOINT active_record_2
168
168
   (0.1ms) SAVEPOINT active_record_2
169
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-07-16 15:51:01.241397"], ["updated_at", "2015-07-16 15:51:01.241397"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-08-16 15:55:26.798885"], ["updated_at", "2015-08-16 15:55:26.798885"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
170
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
171
171
   (0.1ms) SAVEPOINT active_record_2
172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-07-16 15:51:01.243682"], ["updated_at", "2015-07-16 15:51:01.243682"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-08-16 15:55:26.801055"], ["updated_at", "2015-08-16 15:55:26.801055"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
173
173
   (0.1ms) RELEASE SAVEPOINT active_record_2
174
174
   (0.1ms) SAVEPOINT active_record_2
175
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-07-16 15:51:01.245956"], ["updated_at", "2015-07-16 15:51:01.245956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-08-16 15:55:26.803591"], ["updated_at", "2015-08-16 15:55:26.803591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
176
176
   (0.1ms) RELEASE SAVEPOINT active_record_2
177
177
   (0.1ms) SAVEPOINT active_record_2
178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-07-16 15:51:01.248032"], ["updated_at", "2015-07-16 15:51:01.248032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-08-16 15:55:26.806450"], ["updated_at", "2015-08-16 15:55:26.806450"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
179
179
   (0.1ms) RELEASE SAVEPOINT active_record_2
180
180
   (0.1ms) SAVEPOINT active_record_2
181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-07-16 15:51:01.250191"], ["updated_at", "2015-07-16 15:51:01.250191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
181
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-08-16 15:55:26.808982"], ["updated_at", "2015-08-16 15:55:26.808982"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
182
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
183
183
   (0.1ms) SAVEPOINT active_record_2
184
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-07-16 15:51:01.252215"], ["updated_at", "2015-07-16 15:51:01.252215"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
184
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-08-16 15:55:26.811173"], ["updated_at", "2015-08-16 15:55:26.811173"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
185
185
   (0.1ms) RELEASE SAVEPOINT active_record_2
186
186
   (0.1ms) SAVEPOINT active_record_2
187
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-07-16 15:51:01.254201"], ["updated_at", "2015-07-16 15:51:01.254201"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
187
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-08-16 15:55:26.813189"], ["updated_at", "2015-08-16 15:55:26.813189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
188
188
   (0.1ms) RELEASE SAVEPOINT active_record_2
189
189
   (0.1ms) SAVEPOINT active_record_2
190
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-07-16 15:51:01.256183"], ["updated_at", "2015-07-16 15:51:01.256183"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
190
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-08-16 15:55:26.815205"], ["updated_at", "2015-08-16 15:55:26.815205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
191
191
   (0.1ms) RELEASE SAVEPOINT active_record_2
192
192
   (0.1ms) SAVEPOINT active_record_2
193
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-07-16 15:51:01.258205"], ["updated_at", "2015-07-16 15:51:01.258205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
193
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-08-16 15:55:26.817462"], ["updated_at", "2015-08-16 15:55:26.817462"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
194
194
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
195
  Processing by PushType::WysiwygMediaController#index as JSON
196
- Parameters: {"filter"=>"file", "page"=>2}
197
- 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
198
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
199
- Completed 200 OK in 115ms (Views: 0.3ms | ActiveRecord: 0.9ms)
196
+ Parameters: {"filter"=>"image"}
197
+ PushType::Asset Load (0.7ms) 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
198
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
199
+ Completed 200 OK in 12ms (Views: 0.5ms | ActiveRecord: 1.0ms)
200
200
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
201
201
   (0.1ms) ROLLBACK
202
-  (0.0ms) BEGIN
203
- ----------------------------------------------------------------------------------
204
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
205
- ----------------------------------------------------------------------------------
206
-  (0.0ms) SAVEPOINT active_record_1
202
+  (0.1ms) BEGIN
203
+ ---------------------------------------------------------------------------------------
204
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
205
+ ---------------------------------------------------------------------------------------
206
+  (0.1ms) SAVEPOINT active_record_1
207
207
   (0.0ms) RELEASE SAVEPOINT active_record_1
208
208
   (0.0ms) SAVEPOINT active_record_1
209
209
   (0.1ms) SAVEPOINT active_record_2
210
- 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", "19"], ["created_at", "2015-07-16 15:51:01.380792"], ["updated_at", "2015-07-16 15:51:01.380792"], ["file_ext", "png"], ["mime_type", "image/png"]]
210
+ 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", "19"], ["created_at", "2015-08-16 15:55:26.837074"], ["updated_at", "2015-08-16 15:55:26.837074"], ["file_ext", "png"], ["mime_type", "image/png"]]
211
211
   (0.1ms) RELEASE SAVEPOINT active_record_2
212
212
   (0.1ms) SAVEPOINT active_record_2
213
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.383425"], ["updated_at", "2015-07-16 15:51:01.383425"], ["file_ext", "png"], ["mime_type", "image/png"]]
213
+ 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", "20"], ["created_at", "2015-08-16 15:55:26.839705"], ["updated_at", "2015-08-16 15:55:26.839705"], ["file_ext", "png"], ["mime_type", "image/png"]]
214
214
   (0.1ms) RELEASE SAVEPOINT active_record_2
215
215
   (0.1ms) SAVEPOINT active_record_2
216
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.386534"], ["updated_at", "2015-07-16 15:51:01.386534"], ["file_ext", "png"], ["mime_type", "image/png"]]
216
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.841974"], ["updated_at", "2015-08-16 15:55:26.841974"], ["file_ext", "png"], ["mime_type", "image/png"]]
217
217
   (0.1ms) RELEASE SAVEPOINT active_record_2
218
218
   (0.1ms) SAVEPOINT active_record_2
219
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-07-16 15:51:01.388512"], ["updated_at", "2015-07-16 15:51:01.388512"], ["file_ext", "png"], ["mime_type", "image/png"]]
219
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-08-16 15:55:26.844082"], ["updated_at", "2015-08-16 15:55:26.844082"], ["file_ext", "png"], ["mime_type", "image/png"]]
220
220
   (0.1ms) RELEASE SAVEPOINT active_record_2
221
221
   (0.1ms) SAVEPOINT active_record_2
222
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-07-16 15:51:01.390481"], ["updated_at", "2015-07-16 15:51:01.390481"], ["file_ext", "png"], ["mime_type", "image/png"]]
222
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-08-16 15:55:26.846146"], ["updated_at", "2015-08-16 15:55:26.846146"], ["file_ext", "png"], ["mime_type", "image/png"]]
223
223
   (0.1ms) RELEASE SAVEPOINT active_record_2
224
224
   (0.1ms) SAVEPOINT active_record_2
225
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-07-16 15:51:01.392505"], ["updated_at", "2015-07-16 15:51:01.392505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
225
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-08-16 15:55:26.848396"], ["updated_at", "2015-08-16 15:55:26.848396"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
226
226
   (0.1ms) RELEASE SAVEPOINT active_record_2
227
227
   (0.1ms) SAVEPOINT active_record_2
228
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-07-16 15:51:01.394829"], ["updated_at", "2015-07-16 15:51:01.394829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
228
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-08-16 15:55:26.850471"], ["updated_at", "2015-08-16 15:55:26.850471"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
229
229
   (0.1ms) RELEASE SAVEPOINT active_record_2
230
230
   (0.1ms) SAVEPOINT active_record_2
231
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-07-16 15:51:01.397121"], ["updated_at", "2015-07-16 15:51:01.397121"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
231
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-08-16 15:55:26.852784"], ["updated_at", "2015-08-16 15:55:26.852784"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
232
232
   (0.1ms) RELEASE SAVEPOINT active_record_2
233
233
   (0.1ms) SAVEPOINT active_record_2
234
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-07-16 15:51:01.399210"], ["updated_at", "2015-07-16 15:51:01.399210"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
234
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-08-16 15:55:26.855175"], ["updated_at", "2015-08-16 15:55:26.855175"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
235
235
   (0.1ms) RELEASE SAVEPOINT active_record_2
236
236
   (0.1ms) SAVEPOINT active_record_2
237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-07-16 15:51:01.401260"], ["updated_at", "2015-07-16 15:51:01.401260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-08-16 15:55:26.857395"], ["updated_at", "2015-08-16 15:55:26.857395"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
238
238
   (0.1ms) RELEASE SAVEPOINT active_record_2
239
239
   (0.1ms) SAVEPOINT active_record_2
240
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-07-16 15:51:01.403306"], ["updated_at", "2015-07-16 15:51:01.403306"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
240
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-08-16 15:55:26.859807"], ["updated_at", "2015-08-16 15:55:26.859807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
241
   (0.1ms) RELEASE SAVEPOINT active_record_2
242
242
   (0.1ms) SAVEPOINT active_record_2
243
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-07-16 15:51:01.405334"], ["updated_at", "2015-07-16 15:51:01.405334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
243
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-08-16 15:55:26.861927"], ["updated_at", "2015-08-16 15:55:26.861927"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
244
   (0.1ms) RELEASE SAVEPOINT active_record_2
245
245
   (0.1ms) SAVEPOINT active_record_2
246
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-07-16 15:51:01.407276"], ["updated_at", "2015-07-16 15:51:01.407276"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
246
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-08-16 15:55:26.864151"], ["updated_at", "2015-08-16 15:55:26.864151"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
248
248
   (0.1ms) SAVEPOINT active_record_2
249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-07-16 15:51:01.409250"], ["updated_at", "2015-07-16 15:51:01.409250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
249
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-08-16 15:55:26.866428"], ["updated_at", "2015-08-16 15:55:26.866428"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
251
   (0.1ms) SAVEPOINT active_record_2
252
- 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", "33"], ["created_at", "2015-07-16 15:51:01.411189"], ["updated_at", "2015-07-16 15:51:01.411189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
252
+ 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", "33"], ["created_at", "2015-08-16 15:55:26.868900"], ["updated_at", "2015-08-16 15:55:26.868900"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
254
   (0.1ms) SAVEPOINT active_record_2
255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-07-16 15:51:01.413531"], ["updated_at", "2015-07-16 15:51:01.413531"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
255
+ 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", "34"], ["created_at", "2015-08-16 15:55:26.871806"], ["updated_at", "2015-08-16 15:55:26.871806"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
257
   (0.1ms) SAVEPOINT active_record_2
258
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-07-16 15:51:01.415778"], ["updated_at", "2015-07-16 15:51:01.415778"], ["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", "35"], ["created_at", "2015-08-16 15:55:26.874100"], ["updated_at", "2015-08-16 15:55:26.874100"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
259
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
260
   (0.1ms) SAVEPOINT active_record_2
261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-07-16 15:51:01.417751"], ["updated_at", "2015-07-16 15:51:01.417751"], ["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", "36"], ["created_at", "2015-08-16 15:55:26.876196"], ["updated_at", "2015-08-16 15:55:26.876196"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
262
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
263
  Processing by PushType::WysiwygMediaController#index as JSON
264
- Parameters: {"filter"=>"file", "page"=>2}
265
- 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
266
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
267
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
264
+ Parameters: {"filter"=>"image"}
265
+ 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
266
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
267
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
268
268
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
269
269
   (0.1ms) ROLLBACK
270
270
   (0.1ms) BEGIN
271
- ----------------------------------------------------------------------------------
272
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
273
- ----------------------------------------------------------------------------------
274
-  (0.1ms) SAVEPOINT active_record_1
271
+ ---------------------------------------------------------------------------------------
272
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
273
+ ---------------------------------------------------------------------------------------
274
+  (0.0ms) SAVEPOINT active_record_1
275
275
   (0.0ms) RELEASE SAVEPOINT active_record_1
276
276
   (0.0ms) SAVEPOINT active_record_1
277
277
   (0.1ms) SAVEPOINT active_record_2
278
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-07-16 15:51:01.425087"], ["updated_at", "2015-07-16 15:51:01.425087"], ["file_ext", "png"], ["mime_type", "image/png"]]
278
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-08-16 15:55:26.884352"], ["updated_at", "2015-08-16 15:55:26.884352"], ["file_ext", "png"], ["mime_type", "image/png"]]
279
279
   (0.1ms) RELEASE SAVEPOINT active_record_2
280
280
   (0.1ms) SAVEPOINT active_record_2
281
- 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", "38"], ["created_at", "2015-07-16 15:51:01.427407"], ["updated_at", "2015-07-16 15:51:01.427407"], ["file_ext", "png"], ["mime_type", "image/png"]]
281
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.886558"], ["updated_at", "2015-08-16 15:55:26.886558"], ["file_ext", "png"], ["mime_type", "image/png"]]
282
282
   (0.1ms) RELEASE SAVEPOINT active_record_2
283
283
   (0.1ms) SAVEPOINT active_record_2
284
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.429748"], ["updated_at", "2015-07-16 15:51:01.429748"], ["file_ext", "png"], ["mime_type", "image/png"]]
284
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.889023"], ["updated_at", "2015-08-16 15:55:26.889023"], ["file_ext", "png"], ["mime_type", "image/png"]]
285
285
   (0.1ms) RELEASE SAVEPOINT active_record_2
286
286
   (0.1ms) SAVEPOINT active_record_2
287
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-07-16 15:51:01.431851"], ["updated_at", "2015-07-16 15:51:01.431851"], ["file_ext", "png"], ["mime_type", "image/png"]]
287
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-08-16 15:55:26.891182"], ["updated_at", "2015-08-16 15:55:26.891182"], ["file_ext", "png"], ["mime_type", "image/png"]]
288
288
   (0.1ms) RELEASE SAVEPOINT active_record_2
289
289
   (0.1ms) SAVEPOINT active_record_2
290
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-07-16 15:51:01.433822"], ["updated_at", "2015-07-16 15:51:01.433822"], ["file_ext", "png"], ["mime_type", "image/png"]]
290
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-08-16 15:55:26.893218"], ["updated_at", "2015-08-16 15:55:26.893218"], ["file_ext", "png"], ["mime_type", "image/png"]]
291
291
   (0.1ms) RELEASE SAVEPOINT active_record_2
292
292
   (0.1ms) SAVEPOINT active_record_2
293
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-07-16 15:51:01.435901"], ["updated_at", "2015-07-16 15:51:01.435901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
293
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-08-16 15:55:26.895433"], ["updated_at", "2015-08-16 15:55:26.895433"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
294
294
   (0.1ms) RELEASE SAVEPOINT active_record_2
295
295
   (0.1ms) SAVEPOINT active_record_2
296
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-07-16 15:51:01.437864"], ["updated_at", "2015-07-16 15:51:01.437864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
296
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-08-16 15:55:26.897632"], ["updated_at", "2015-08-16 15:55:26.897632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
297
297
   (0.1ms) RELEASE SAVEPOINT active_record_2
298
298
   (0.1ms) SAVEPOINT active_record_2
299
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-07-16 15:51:01.440050"], ["updated_at", "2015-07-16 15:51:01.440050"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-08-16 15:55:26.899888"], ["updated_at", "2015-08-16 15:55:26.899888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
300
300
   (0.1ms) RELEASE SAVEPOINT active_record_2
301
301
   (0.1ms) SAVEPOINT active_record_2
302
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-07-16 15:51:01.442166"], ["updated_at", "2015-07-16 15:51:01.442166"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-08-16 15:55:26.901917"], ["updated_at", "2015-08-16 15:55:26.901917"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
303
303
   (0.1ms) RELEASE SAVEPOINT active_record_2
304
304
   (0.1ms) SAVEPOINT active_record_2
305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-07-16 15:51:01.444199"], ["updated_at", "2015-07-16 15:51:01.444199"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-08-16 15:55:26.904071"], ["updated_at", "2015-08-16 15:55:26.904071"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
306
306
   (0.1ms) RELEASE SAVEPOINT active_record_2
307
307
   (0.1ms) SAVEPOINT active_record_2
308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-07-16 15:51:01.446281"], ["updated_at", "2015-07-16 15:51:01.446281"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-08-16 15:55:26.906544"], ["updated_at", "2015-08-16 15:55:26.906544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
309
   (0.1ms) RELEASE SAVEPOINT active_record_2
310
310
   (0.1ms) SAVEPOINT active_record_2
311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-07-16 15:51:01.448350"], ["updated_at", "2015-07-16 15:51:01.448350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-08-16 15:55:26.908686"], ["updated_at", "2015-08-16 15:55:26.908686"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
312
   (0.1ms) RELEASE SAVEPOINT active_record_2
313
313
   (0.1ms) SAVEPOINT active_record_2
314
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-07-16 15:51:01.450333"], ["updated_at", "2015-07-16 15:51:01.450333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-08-16 15:55:26.910888"], ["updated_at", "2015-08-16 15:55:26.910888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
315
   (0.1ms) RELEASE SAVEPOINT active_record_2
316
316
   (0.1ms) SAVEPOINT active_record_2
317
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-07-16 15:51:01.452457"], ["updated_at", "2015-07-16 15:51:01.452457"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
317
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-08-16 15:55:26.912949"], ["updated_at", "2015-08-16 15:55:26.912949"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
318
   (0.1ms) RELEASE SAVEPOINT active_record_2
319
319
   (0.1ms) SAVEPOINT active_record_2
320
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-07-16 15:51:01.454412"], ["updated_at", "2015-07-16 15:51:01.454412"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
320
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-08-16 15:55:26.915023"], ["updated_at", "2015-08-16 15:55:26.915023"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
321
   (0.1ms) RELEASE SAVEPOINT active_record_2
322
322
   (0.1ms) SAVEPOINT active_record_2
323
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-07-16 15:51:01.456330"], ["updated_at", "2015-07-16 15:51:01.456330"], ["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", "52"], ["created_at", "2015-08-16 15:55:26.917262"], ["updated_at", "2015-08-16 15:55:26.917262"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
324
   (0.1ms) RELEASE SAVEPOINT active_record_2
325
325
   (0.1ms) SAVEPOINT active_record_2
326
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-07-16 15:51:01.458409"], ["updated_at", "2015-07-16 15:51:01.458409"], ["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", "53"], ["created_at", "2015-08-16 15:55:26.919289"], ["updated_at", "2015-08-16 15:55:26.919289"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
327
   (0.1ms) RELEASE SAVEPOINT active_record_2
328
328
   (0.1ms) SAVEPOINT active_record_2
329
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-07-16 15:51:01.460820"], ["updated_at", "2015-07-16 15:51:01.460820"], ["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", "54"], ["created_at", "2015-08-16 15:55:26.921460"], ["updated_at", "2015-08-16 15:55:26.921460"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
330
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
331
  Processing by PushType::WysiwygMediaController#index as JSON
332
- Parameters: {"filter"=>"file", "page"=>2}
333
- 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
334
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
335
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
332
+ Parameters: {"filter"=>"image"}
333
+ 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
334
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
335
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
336
336
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
337
-  (0.2ms) ROLLBACK
337
+  (0.1ms) ROLLBACK
338
338
   (0.1ms) BEGIN
339
- ----------------------------------------------------------------------------------
340
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
341
- ----------------------------------------------------------------------------------
342
-  (0.0ms) SAVEPOINT active_record_1
343
-  (0.0ms) RELEASE SAVEPOINT active_record_1
344
-  (0.0ms) SAVEPOINT active_record_1
339
+ ---------------------------------------------------------------------------------------
340
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
341
+ ---------------------------------------------------------------------------------------
342
+  (0.1ms) SAVEPOINT active_record_1
343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
344
+  (0.1ms) SAVEPOINT active_record_1
345
345
   (0.1ms) SAVEPOINT active_record_2
346
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-07-16 15:51:01.468264"], ["updated_at", "2015-07-16 15:51:01.468264"], ["file_ext", "png"], ["mime_type", "image/png"]]
346
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-08-16 15:55:26.929927"], ["updated_at", "2015-08-16 15:55:26.929927"], ["file_ext", "png"], ["mime_type", "image/png"]]
347
347
   (0.1ms) RELEASE SAVEPOINT active_record_2
348
348
   (0.1ms) SAVEPOINT active_record_2
349
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.470468"], ["updated_at", "2015-07-16 15:51:01.470468"], ["file_ext", "png"], ["mime_type", "image/png"]]
349
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.932119"], ["updated_at", "2015-08-16 15:55:26.932119"], ["file_ext", "png"], ["mime_type", "image/png"]]
350
350
   (0.1ms) RELEASE SAVEPOINT active_record_2
351
351
   (0.1ms) SAVEPOINT active_record_2
352
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.472399"], ["updated_at", "2015-07-16 15:51:01.472399"], ["file_ext", "png"], ["mime_type", "image/png"]]
352
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:26.934220"], ["updated_at", "2015-08-16 15:55:26.934220"], ["file_ext", "png"], ["mime_type", "image/png"]]
353
353
   (0.1ms) RELEASE SAVEPOINT active_record_2
354
354
   (0.1ms) SAVEPOINT active_record_2
355
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-07-16 15:51:01.474377"], ["updated_at", "2015-07-16 15:51:01.474377"], ["file_ext", "png"], ["mime_type", "image/png"]]
355
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-08-16 15:55:26.936269"], ["updated_at", "2015-08-16 15:55:26.936269"], ["file_ext", "png"], ["mime_type", "image/png"]]
356
356
   (0.1ms) RELEASE SAVEPOINT active_record_2
357
357
   (0.1ms) SAVEPOINT active_record_2
358
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-07-16 15:51:01.476644"], ["updated_at", "2015-07-16 15:51:01.476644"], ["file_ext", "png"], ["mime_type", "image/png"]]
358
+ 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", "59"], ["created_at", "2015-08-16 15:55:26.938492"], ["updated_at", "2015-08-16 15:55:26.938492"], ["file_ext", "png"], ["mime_type", "image/png"]]
359
359
   (0.1ms) RELEASE SAVEPOINT active_record_2
360
360
   (0.1ms) SAVEPOINT active_record_2
361
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-07-16 15:51:01.478941"], ["updated_at", "2015-07-16 15:51:01.478941"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
361
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-08-16 15:55:26.940990"], ["updated_at", "2015-08-16 15:55:26.940990"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
362
362
   (0.1ms) RELEASE SAVEPOINT active_record_2
363
363
   (0.1ms) SAVEPOINT active_record_2
364
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-07-16 15:51:01.480990"], ["updated_at", "2015-07-16 15:51:01.480990"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
364
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-08-16 15:55:26.943127"], ["updated_at", "2015-08-16 15:55:26.943127"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
365
365
   (0.1ms) RELEASE SAVEPOINT active_record_2
366
366
   (0.1ms) SAVEPOINT active_record_2
367
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-07-16 15:51:01.483127"], ["updated_at", "2015-07-16 15:51:01.483127"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
367
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-08-16 15:55:26.945177"], ["updated_at", "2015-08-16 15:55:26.945177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
368
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
369
369
   (0.1ms) SAVEPOINT active_record_2
370
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-07-16 15:51:01.485162"], ["updated_at", "2015-07-16 15:51:01.485162"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
370
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-08-16 15:55:26.947286"], ["updated_at", "2015-08-16 15:55:26.947286"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
371
371
   (0.1ms) RELEASE SAVEPOINT active_record_2
372
372
   (0.1ms) SAVEPOINT active_record_2
373
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-07-16 15:51:01.487178"], ["updated_at", "2015-07-16 15:51:01.487178"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
373
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-08-16 15:55:26.949447"], ["updated_at", "2015-08-16 15:55:26.949447"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
374
374
   (0.1ms) RELEASE SAVEPOINT active_record_2
375
375
   (0.1ms) SAVEPOINT active_record_2
376
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-07-16 15:51:01.489278"], ["updated_at", "2015-07-16 15:51:01.489278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
376
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-08-16 15:55:26.951663"], ["updated_at", "2015-08-16 15:55:26.951663"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
377
   (0.1ms) RELEASE SAVEPOINT active_record_2
378
378
   (0.1ms) SAVEPOINT active_record_2
379
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-07-16 15:51:01.491342"], ["updated_at", "2015-07-16 15:51:01.491342"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
379
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-08-16 15:55:26.953888"], ["updated_at", "2015-08-16 15:55:26.953888"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
380
   (0.1ms) RELEASE SAVEPOINT active_record_2
381
381
   (0.1ms) SAVEPOINT active_record_2
382
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-07-16 15:51:01.493486"], ["updated_at", "2015-07-16 15:51:01.493486"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-08-16 15:55:26.956031"], ["updated_at", "2015-08-16 15:55:26.956031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
384
   (0.1ms) SAVEPOINT active_record_2
385
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-07-16 15:51:01.495769"], ["updated_at", "2015-07-16 15:51:01.495769"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
385
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-08-16 15:55:26.958168"], ["updated_at", "2015-08-16 15:55:26.958168"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
386
   (0.1ms) RELEASE SAVEPOINT active_record_2
387
387
   (0.1ms) SAVEPOINT active_record_2
388
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-07-16 15:51:01.497949"], ["updated_at", "2015-07-16 15:51:01.497949"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-08-16 15:55:26.960197"], ["updated_at", "2015-08-16 15:55:26.960197"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
389
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
390
   (0.1ms) SAVEPOINT active_record_2
391
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-07-16 15:51:01.499977"], ["updated_at", "2015-07-16 15:51:01.499977"], ["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", "70"], ["created_at", "2015-08-16 15:55:26.962352"], ["updated_at", "2015-08-16 15:55:26.962352"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
392
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
393
   (0.1ms) SAVEPOINT active_record_2
394
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-07-16 15:51:01.502162"], ["updated_at", "2015-07-16 15:51:01.502162"], ["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", "71"], ["created_at", "2015-08-16 15:55:26.964358"], ["updated_at", "2015-08-16 15:55:26.964358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
395
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
396
   (0.1ms) SAVEPOINT active_record_2
397
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-07-16 15:51:01.504399"], ["updated_at", "2015-07-16 15:51:01.504399"], ["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", "72"], ["created_at", "2015-08-16 15:55:26.966362"], ["updated_at", "2015-08-16 15:55:26.966362"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
398
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
399
  Processing by PushType::WysiwygMediaController#index as JSON
400
- Parameters: {"filter"=>"file", "page"=>2}
401
- 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
402
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
403
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
400
+ Parameters: {"filter"=>"image"}
401
+ 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
402
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
403
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
404
404
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
405
405
   (0.1ms) ROLLBACK
406
406
   (0.1ms) BEGIN
407
- ----------------------------------------------------------------------------------------
408
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
409
- ----------------------------------------------------------------------------------------
410
-  (0.0ms) SAVEPOINT active_record_1
407
+ ----------------------------------------------------------------------
408
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
409
+ ----------------------------------------------------------------------
410
+  (0.1ms) SAVEPOINT active_record_1
411
411
   (0.0ms) RELEASE SAVEPOINT active_record_1
412
412
   (0.0ms) SAVEPOINT active_record_1
413
- Processing by PushType::WysiwygMediaController#create as JSON
414
- Parameters: {"asset"=>{}}
415
413
   (0.1ms) SAVEPOINT active_record_2
416
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
417
- Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.2ms)
414
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-08-16 15:55:26.975832"], ["updated_at", "2015-08-16 15:55:26.975832"], ["file_ext", "png"], ["mime_type", "image/png"]]
415
+  (0.1ms) RELEASE SAVEPOINT active_record_2
416
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
417
+  (0.2ms) ROLLBACK
418
+  (0.0ms) BEGIN
419
+ ----------------------------------------------------------------------
420
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
421
+ ----------------------------------------------------------------------
422
+  (0.0ms) SAVEPOINT active_record_1
423
+  (0.0ms) RELEASE SAVEPOINT active_record_1
424
+  (0.0ms) SAVEPOINT active_record_1
425
+  (0.1ms) SAVEPOINT active_record_2
426
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-08-16 15:55:26.980044"], ["updated_at", "2015-08-16 15:55:26.980044"], ["file_ext", "png"], ["mime_type", "image/png"]]
427
+  (0.1ms) RELEASE SAVEPOINT active_record_2
418
428
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
419
429
   (0.1ms) ROLLBACK
420
430
   (0.1ms) BEGIN
421
- ----------------------------------------------------------------------------------------
422
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
423
- ----------------------------------------------------------------------------------------
424
-  (0.0ms) SAVEPOINT active_record_1
431
+ ----------------------------------------------------------------------
432
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
433
+ ----------------------------------------------------------------------
434
+  (0.1ms) SAVEPOINT active_record_1
425
435
   (0.0ms) RELEASE SAVEPOINT active_record_1
426
436
   (0.0ms) SAVEPOINT active_record_1
427
- Processing by PushType::WysiwygMediaController#create as JSON
428
- Parameters: {"asset"=>{}}
429
437
   (0.1ms) SAVEPOINT active_record_2
430
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
431
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
438
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-08-16 15:55:26.983713"], ["updated_at", "2015-08-16 15:55:26.983713"], ["file_ext", "png"], ["mime_type", "image/png"]]
439
+  (0.1ms) RELEASE SAVEPOINT active_record_2
440
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
441
+  (0.1ms) ROLLBACK
442
+  (0.1ms) BEGIN
443
+ ----------------------------------------------------------------------
444
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
445
+ ----------------------------------------------------------------------
446
+  (0.1ms) SAVEPOINT active_record_1
447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
448
+  (0.0ms) SAVEPOINT active_record_1
449
+  (0.1ms) SAVEPOINT active_record_2
450
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-08-16 15:55:26.987677"], ["updated_at", "2015-08-16 15:55:26.987677"], ["file_ext", "png"], ["mime_type", "image/png"]]
451
+  (0.1ms) RELEASE SAVEPOINT active_record_2
432
452
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
433
453
   (0.1ms) ROLLBACK
434
-  (0.2ms) BEGIN
435
- ----------------------------------------------------------------------------------------
436
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
437
- ----------------------------------------------------------------------------------------
454
+  (0.1ms) BEGIN
455
+ ----------------------------------------------------------------------
456
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
457
+ ----------------------------------------------------------------------
438
458
   (0.1ms) SAVEPOINT active_record_1
439
-  (0.0ms) RELEASE SAVEPOINT active_record_1
459
+  (0.1ms) RELEASE SAVEPOINT active_record_1
440
460
   (0.0ms) SAVEPOINT active_record_1
441
- Processing by PushType::WysiwygMediaController#create as JSON
442
- Parameters: {"asset"=>{}}
443
461
   (0.1ms) SAVEPOINT active_record_2
444
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
445
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
462
+ SQL (0.4ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-08-16 15:55:26.991949"], ["updated_at", "2015-08-16 15:55:26.991949"], ["file_ext", "png"], ["mime_type", "image/png"]]
463
+  (0.1ms) RELEASE SAVEPOINT active_record_2
464
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
465
+  (0.1ms) ROLLBACK
466
+  (0.1ms) BEGIN
467
+ ----------------------------------------------------------------------
468
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
469
+ ----------------------------------------------------------------------
470
+  (0.1ms) SAVEPOINT active_record_1
471
+  (0.0ms) RELEASE SAVEPOINT active_record_1
472
+  (0.0ms) SAVEPOINT active_record_1
473
+  (0.1ms) SAVEPOINT active_record_2
474
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-08-16 15:55:26.996108"], ["updated_at", "2015-08-16 15:55:26.996108"], ["file_ext", "png"], ["mime_type", "image/png"]]
475
+  (0.1ms) RELEASE SAVEPOINT active_record_2
446
476
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
447
477
   (0.1ms) ROLLBACK
448
478
   (0.1ms) BEGIN
449
- --------------------------------------------------------------------------------
450
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
451
- --------------------------------------------------------------------------------
452
-  (0.0ms) SAVEPOINT active_record_1
479
+ ----------------------------------------------------------------------
480
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
481
+ ----------------------------------------------------------------------
482
+  (0.1ms) SAVEPOINT active_record_1
453
483
   (0.0ms) RELEASE SAVEPOINT active_record_1
454
-  (0.0ms) SAVEPOINT active_record_1
455
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
484
+  (0.1ms) SAVEPOINT active_record_1
485
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-08-16 15:55:27.000210"], ["updated_at", "2015-08-16 15:55:27.000210"], ["file_ext", "png"], ["mime_type", "image/png"]]
487
+  (0.1ms) RELEASE SAVEPOINT active_record_2
488
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
489
+  (0.1ms) ROLLBACK
490
+  (0.1ms) BEGIN
491
+ ----------------------------------------------------------------------------------------
492
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
493
+ ----------------------------------------------------------------------------------------
494
+  (0.1ms) SAVEPOINT active_record_1
495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
496
+  (0.0ms) SAVEPOINT active_record_1
456
497
  Processing by PushType::WysiwygMediaController#create as JSON
457
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc24bcee10 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-jk70ef>>}}
498
+ Parameters: {"asset"=>{}}
458
499
   (0.1ms) SAVEPOINT active_record_2
459
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-07-16 15:51:01.534627"], ["updated_at", "2015-07-16 15:51:01.534627"], ["file_ext", "png"], ["mime_type", "image/png"]]
460
-  (0.1ms) RELEASE SAVEPOINT active_record_2
461
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
462
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
500
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
501
+ Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.2ms)
463
502
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
464
503
   (0.1ms) ROLLBACK
465
504
   (0.1ms) BEGIN
466
- ---------------------------------------------------------------------------------------
467
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
468
- ---------------------------------------------------------------------------------------
505
+ ----------------------------------------------------------------------------------------
506
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
507
+ ----------------------------------------------------------------------------------------
469
508
   (0.1ms) SAVEPOINT active_record_1
470
509
   (0.1ms) RELEASE SAVEPOINT active_record_1
471
510
   (0.1ms) SAVEPOINT active_record_1
511
+ Processing by PushType::WysiwygMediaController#create as JSON
512
+ Parameters: {"asset"=>{}}
513
+  (0.1ms) SAVEPOINT active_record_2
514
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
515
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
516
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
517
+  (0.1ms) ROLLBACK
518
+  (0.1ms) BEGIN
519
+ ----------------------------------------------------------------------------------------
520
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
521
+ ----------------------------------------------------------------------------------------
522
+  (0.1ms) SAVEPOINT active_record_1
523
+  (0.1ms) RELEASE SAVEPOINT active_record_1
524
+  (0.0ms) SAVEPOINT active_record_1
525
+ Processing by PushType::WysiwygMediaController#create as JSON
526
+ Parameters: {"asset"=>{}}
527
+  (0.1ms) SAVEPOINT active_record_2
528
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
529
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
530
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
531
+  (0.1ms) ROLLBACK
532
+  (0.1ms) BEGIN
533
+ ----------------------------------------------------------------------------------
534
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
535
+ ----------------------------------------------------------------------------------
536
+  (0.0ms) SAVEPOINT active_record_1
537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
538
+  (0.0ms) SAVEPOINT active_record_1
472
539
   (0.1ms) SAVEPOINT active_record_2
473
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.541810"], ["updated_at", "2015-07-16 15:51:01.541810"], ["file_ext", "png"], ["mime_type", "image/png"]]
540
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-08-16 15:55:27.025523"], ["updated_at", "2015-08-16 15:55:27.025523"], ["file_ext", "png"], ["mime_type", "image/png"]]
474
541
   (0.1ms) RELEASE SAVEPOINT active_record_2
475
542
   (0.1ms) SAVEPOINT active_record_2
476
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-07-16 15:51:01.544022"], ["updated_at", "2015-07-16 15:51:01.544022"], ["file_ext", "png"], ["mime_type", "image/png"]]
543
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "81"], ["created_at", "2015-08-16 15:55:27.027846"], ["updated_at", "2015-08-16 15:55:27.027846"], ["file_ext", "png"], ["mime_type", "image/png"]]
477
544
   (0.1ms) RELEASE SAVEPOINT active_record_2
478
545
   (0.1ms) SAVEPOINT active_record_2
479
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.546334"], ["updated_at", "2015-07-16 15:51:01.546334"], ["file_ext", "png"], ["mime_type", "image/png"]]
546
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2015-08-16 15:55:27.030003"], ["updated_at", "2015-08-16 15:55:27.030003"], ["file_ext", "png"], ["mime_type", "image/png"]]
480
547
   (0.1ms) RELEASE SAVEPOINT active_record_2
481
548
   (0.1ms) SAVEPOINT active_record_2
482
- 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-07-16 15:51:01.548247"], ["updated_at", "2015-07-16 15:51:01.548247"], ["file_ext", "png"], ["mime_type", "image/png"]]
549
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-08-16 15:55:27.032124"], ["updated_at", "2015-08-16 15:55:27.032124"], ["file_ext", "png"], ["mime_type", "image/png"]]
483
550
   (0.1ms) RELEASE SAVEPOINT active_record_2
484
551
   (0.1ms) SAVEPOINT active_record_2
485
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.550373"], ["updated_at", "2015-07-16 15:51:01.550373"], ["file_ext", "png"], ["mime_type", "image/png"]]
552
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-08-16 15:55:27.034129"], ["updated_at", "2015-08-16 15:55:27.034129"], ["file_ext", "png"], ["mime_type", "image/png"]]
486
553
   (0.1ms) RELEASE SAVEPOINT active_record_2
487
554
   (0.1ms) SAVEPOINT active_record_2
488
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-07-16 15:51:01.552449"], ["updated_at", "2015-07-16 15:51:01.552449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
555
+ 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-08-16 15:55:27.036375"], ["updated_at", "2015-08-16 15:55:27.036375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
489
556
   (0.1ms) RELEASE SAVEPOINT active_record_2
490
557
   (0.1ms) SAVEPOINT active_record_2
491
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-07-16 15:51:01.554474"], ["updated_at", "2015-07-16 15:51:01.554474"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
558
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.039052"], ["updated_at", "2015-08-16 15:55:27.039052"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
492
559
   (0.1ms) RELEASE SAVEPOINT active_record_2
493
560
   (0.1ms) SAVEPOINT active_record_2
494
- 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", "81"], ["created_at", "2015-07-16 15:51:01.556704"], ["updated_at", "2015-07-16 15:51:01.556704"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-08-16 15:55:27.041532"], ["updated_at", "2015-08-16 15:55:27.041532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
495
562
   (0.1ms) RELEASE SAVEPOINT active_record_2
496
563
   (0.1ms) SAVEPOINT active_record_2
497
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-07-16 15:51:01.559155"], ["updated_at", "2015-07-16 15:51:01.559155"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-08-16 15:55:27.043701"], ["updated_at", "2015-08-16 15:55:27.043701"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
498
565
   (0.1ms) RELEASE SAVEPOINT active_record_2
499
566
   (0.1ms) SAVEPOINT active_record_2
500
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-07-16 15:51:01.561377"], ["updated_at", "2015-07-16 15:51:01.561377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
567
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-08-16 15:55:27.045985"], ["updated_at", "2015-08-16 15:55:27.045985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
501
568
   (0.1ms) RELEASE SAVEPOINT active_record_2
502
569
   (0.1ms) SAVEPOINT active_record_2
503
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-07-16 15:51:01.563585"], ["updated_at", "2015-07-16 15:51:01.563585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
504
-  (0.1ms) RELEASE 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", "90"], ["created_at", "2015-08-16 15:55:27.048394"], ["updated_at", "2015-08-16 15:55:27.048394"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
571
+  (0.2ms) RELEASE SAVEPOINT active_record_2
505
572
   (0.1ms) SAVEPOINT active_record_2
506
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-07-16 15:51:01.565603"], ["updated_at", "2015-07-16 15:51:01.565603"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "91"], ["created_at", "2015-08-16 15:55:27.050670"], ["updated_at", "2015-08-16 15:55:27.050670"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
507
574
   (0.1ms) RELEASE SAVEPOINT active_record_2
508
575
   (0.1ms) SAVEPOINT active_record_2
509
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-07-16 15:51:01.567726"], ["updated_at", "2015-07-16 15:51:01.567726"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "92"], ["created_at", "2015-08-16 15:55:27.052732"], ["updated_at", "2015-08-16 15:55:27.052732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
510
577
   (0.1ms) RELEASE SAVEPOINT active_record_2
511
578
   (0.1ms) SAVEPOINT active_record_2
512
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-07-16 15:51:01.569781"], ["updated_at", "2015-07-16 15:51:01.569781"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "93"], ["created_at", "2015-08-16 15:55:27.055115"], ["updated_at", "2015-08-16 15:55:27.055115"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
580
   (0.1ms) RELEASE SAVEPOINT active_record_2
514
581
   (0.1ms) SAVEPOINT active_record_2
515
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-07-16 15:51:01.571802"], ["updated_at", "2015-07-16 15:51:01.571802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "94"], ["created_at", "2015-08-16 15:55:27.057432"], ["updated_at", "2015-08-16 15:55:27.057432"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
583
   (0.1ms) RELEASE SAVEPOINT active_record_2
517
584
   (0.1ms) SAVEPOINT active_record_2
518
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-07-16 15:51:01.573725"], ["updated_at", "2015-07-16 15:51:01.573725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "95"], ["created_at", "2015-08-16 15:55:27.059616"], ["updated_at", "2015-08-16 15:55:27.059616"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
586
   (0.1ms) RELEASE SAVEPOINT active_record_2
520
587
   (0.1ms) SAVEPOINT active_record_2
521
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-07-16 15:51:01.575887"], ["updated_at", "2015-07-16 15:51:01.575887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "96"], ["created_at", "2015-08-16 15:55:27.061784"], ["updated_at", "2015-08-16 15:55:27.061784"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
589
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
590
   (0.1ms) SAVEPOINT active_record_2
524
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-07-16 15:51:01.578062"], ["updated_at", "2015-07-16 15:51:01.578062"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
591
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-08-16 15:55:27.063864"], ["updated_at", "2015-08-16 15:55:27.063864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
525
592
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
593
  Processing by PushType::WysiwygMediaController#index as JSON
527
- Parameters: {"filter"=>"image"}
528
- 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
529
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
530
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
594
+ Parameters: {"filter"=>"file", "page"=>2}
595
+ 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
596
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
597
+ Completed 200 OK in 110ms (Views: 0.2ms | ActiveRecord: 0.6ms)
531
598
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
532
599
   (0.1ms) ROLLBACK
533
-  (0.1ms) BEGIN
534
- ---------------------------------------------------------------------------------------
535
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
536
- ---------------------------------------------------------------------------------------
537
-  (0.1ms) SAVEPOINT active_record_1
538
-  (0.1ms) RELEASE SAVEPOINT active_record_1
600
+  (0.0ms) BEGIN
601
+ ----------------------------------------------------------------------------------
602
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
603
+ ----------------------------------------------------------------------------------
604
+  (0.0ms) SAVEPOINT active_record_1
605
+  (0.0ms) RELEASE SAVEPOINT active_record_1
539
606
   (0.0ms) SAVEPOINT active_record_1
540
607
   (0.1ms) SAVEPOINT active_record_2
541
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "92"], ["created_at", "2015-07-16 15:51:01.586177"], ["updated_at", "2015-07-16 15:51:01.586177"], ["file_ext", "png"], ["mime_type", "image/png"]]
608
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-08-16 15:55:27.179346"], ["updated_at", "2015-08-16 15:55:27.179346"], ["file_ext", "png"], ["mime_type", "image/png"]]
542
609
   (0.1ms) RELEASE SAVEPOINT active_record_2
543
610
   (0.1ms) SAVEPOINT active_record_2
544
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.588345"], ["updated_at", "2015-07-16 15:51:01.588345"], ["file_ext", "png"], ["mime_type", "image/png"]]
611
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "99"], ["created_at", "2015-08-16 15:55:27.181725"], ["updated_at", "2015-08-16 15:55:27.181725"], ["file_ext", "png"], ["mime_type", "image/png"]]
545
612
   (0.1ms) RELEASE SAVEPOINT active_record_2
546
613
   (0.1ms) SAVEPOINT active_record_2
547
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.590316"], ["updated_at", "2015-07-16 15:51:01.590316"], ["file_ext", "png"], ["mime_type", "image/png"]]
614
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "100"], ["created_at", "2015-08-16 15:55:27.183891"], ["updated_at", "2015-08-16 15:55:27.183891"], ["file_ext", "png"], ["mime_type", "image/png"]]
548
615
   (0.1ms) RELEASE SAVEPOINT active_record_2
549
616
   (0.1ms) SAVEPOINT active_record_2
550
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.592503"], ["updated_at", "2015-07-16 15:51:01.592503"], ["file_ext", "png"], ["mime_type", "image/png"]]
617
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-08-16 15:55:27.185926"], ["updated_at", "2015-08-16 15:55:27.185926"], ["file_ext", "png"], ["mime_type", "image/png"]]
551
618
   (0.1ms) RELEASE SAVEPOINT active_record_2
552
619
   (0.1ms) SAVEPOINT active_record_2
553
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.594571"], ["updated_at", "2015-07-16 15:51:01.594571"], ["file_ext", "png"], ["mime_type", "image/png"]]
620
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-08-16 15:55:27.188012"], ["updated_at", "2015-08-16 15:55:27.188012"], ["file_ext", "png"], ["mime_type", "image/png"]]
554
621
   (0.1ms) RELEASE SAVEPOINT active_record_2
555
622
   (0.1ms) SAVEPOINT active_record_2
556
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.596708"], ["updated_at", "2015-07-16 15:51:01.596708"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-08-16 15:55:27.190172"], ["updated_at", "2015-08-16 15:55:27.190172"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
624
   (0.1ms) RELEASE SAVEPOINT active_record_2
558
625
   (0.1ms) SAVEPOINT active_record_2
559
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-07-16 15:51:01.598852"], ["updated_at", "2015-07-16 15:51:01.598852"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-08-16 15:55:27.192190"], ["updated_at", "2015-08-16 15:55:27.192190"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
560
627
   (0.1ms) RELEASE SAVEPOINT active_record_2
561
628
   (0.1ms) SAVEPOINT active_record_2
562
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-07-16 15:51:01.600925"], ["updated_at", "2015-07-16 15:51:01.600925"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-08-16 15:55:27.194253"], ["updated_at", "2015-08-16 15:55:27.194253"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
563
630
   (0.1ms) RELEASE SAVEPOINT active_record_2
564
631
   (0.1ms) SAVEPOINT active_record_2
565
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-07-16 15:51:01.602986"], ["updated_at", "2015-07-16 15:51:01.602986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-08-16 15:55:27.196447"], ["updated_at", "2015-08-16 15:55:27.196447"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
566
633
   (0.1ms) RELEASE SAVEPOINT active_record_2
567
634
   (0.1ms) SAVEPOINT active_record_2
568
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-07-16 15:51:01.605030"], ["updated_at", "2015-07-16 15:51:01.605030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-08-16 15:55:27.198443"], ["updated_at", "2015-08-16 15:55:27.198443"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
569
636
   (0.1ms) RELEASE SAVEPOINT active_record_2
570
637
   (0.1ms) SAVEPOINT active_record_2
571
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-07-16 15:51:01.607104"], ["updated_at", "2015-07-16 15:51:01.607104"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "108"], ["created_at", "2015-08-16 15:55:27.200421"], ["updated_at", "2015-08-16 15:55:27.200421"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
572
639
   (0.1ms) RELEASE SAVEPOINT active_record_2
573
640
   (0.1ms) SAVEPOINT active_record_2
574
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-07-16 15:51:01.609252"], ["updated_at", "2015-07-16 15:51:01.609252"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "109"], ["created_at", "2015-08-16 15:55:27.202443"], ["updated_at", "2015-08-16 15:55:27.202443"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
575
642
   (0.1ms) RELEASE SAVEPOINT active_record_2
576
643
   (0.1ms) SAVEPOINT active_record_2
577
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-07-16 15:51:01.611293"], ["updated_at", "2015-07-16 15:51:01.611293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "110"], ["created_at", "2015-08-16 15:55:27.204571"], ["updated_at", "2015-08-16 15:55:27.204571"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
578
645
   (0.1ms) RELEASE SAVEPOINT active_record_2
579
646
   (0.1ms) SAVEPOINT active_record_2
580
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-07-16 15:51:01.613417"], ["updated_at", "2015-07-16 15:51:01.613417"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "111"], ["created_at", "2015-08-16 15:55:27.206824"], ["updated_at", "2015-08-16 15:55:27.206824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
648
   (0.1ms) RELEASE SAVEPOINT active_record_2
582
649
   (0.1ms) SAVEPOINT active_record_2
583
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-07-16 15:51:01.615427"], ["updated_at", "2015-07-16 15:51:01.615427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "112"], ["created_at", "2015-08-16 15:55:27.208971"], ["updated_at", "2015-08-16 15:55:27.208971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
651
   (0.1ms) RELEASE SAVEPOINT active_record_2
585
652
   (0.1ms) SAVEPOINT active_record_2
586
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-07-16 15:51:01.617401"], ["updated_at", "2015-07-16 15:51:01.617401"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "113"], ["created_at", "2015-08-16 15:55:27.211020"], ["updated_at", "2015-08-16 15:55:27.211020"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
654
   (0.1ms) RELEASE SAVEPOINT active_record_2
588
655
   (0.1ms) SAVEPOINT active_record_2
589
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-07-16 15:51:01.619747"], ["updated_at", "2015-07-16 15:51:01.619747"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "114"], ["created_at", "2015-08-16 15:55:27.213193"], ["updated_at", "2015-08-16 15:55:27.213193"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
657
   (0.1ms) RELEASE SAVEPOINT active_record_2
591
658
   (0.1ms) SAVEPOINT active_record_2
592
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-07-16 15:51:01.622004"], ["updated_at", "2015-07-16 15:51:01.622004"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
659
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-08-16 15:55:27.215279"], ["updated_at", "2015-08-16 15:55:27.215279"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
593
660
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
661
  Processing by PushType::WysiwygMediaController#index as JSON
595
- Parameters: {"filter"=>"image"}
596
- 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
597
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
598
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
662
+ Parameters: {"filter"=>"file", "page"=>2}
663
+ 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
664
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
665
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
599
666
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
600
667
   (0.1ms) ROLLBACK
601
668
   (0.1ms) BEGIN
602
- ---------------------------------------------------------------------------------------
603
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
604
- ---------------------------------------------------------------------------------------
669
+ ----------------------------------------------------------------------------------
670
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
671
+ ----------------------------------------------------------------------------------
605
672
   (0.1ms) SAVEPOINT active_record_1
606
673
   (0.0ms) RELEASE SAVEPOINT active_record_1
607
-  (0.1ms) SAVEPOINT active_record_1
674
+  (0.0ms) SAVEPOINT active_record_1
608
675
   (0.1ms) SAVEPOINT active_record_2
609
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "110"], ["created_at", "2015-07-16 15:51:01.630234"], ["updated_at", "2015-07-16 15:51:01.630234"], ["file_ext", "png"], ["mime_type", "image/png"]]
676
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "116"], ["created_at", "2015-08-16 15:55:27.222629"], ["updated_at", "2015-08-16 15:55:27.222629"], ["file_ext", "png"], ["mime_type", "image/png"]]
610
677
   (0.1ms) RELEASE SAVEPOINT active_record_2
611
678
   (0.1ms) SAVEPOINT active_record_2
612
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-07-16 15:51:01.632513"], ["updated_at", "2015-07-16 15:51:01.632513"], ["file_ext", "png"], ["mime_type", "image/png"]]
679
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "117"], ["created_at", "2015-08-16 15:55:27.224866"], ["updated_at", "2015-08-16 15:55:27.224866"], ["file_ext", "png"], ["mime_type", "image/png"]]
613
680
   (0.1ms) RELEASE SAVEPOINT active_record_2
614
681
   (0.1ms) SAVEPOINT active_record_2
615
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-07-16 15:51:01.634524"], ["updated_at", "2015-07-16 15:51:01.634524"], ["file_ext", "png"], ["mime_type", "image/png"]]
682
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "118"], ["created_at", "2015-08-16 15:55:27.226965"], ["updated_at", "2015-08-16 15:55:27.226965"], ["file_ext", "png"], ["mime_type", "image/png"]]
616
683
   (0.1ms) RELEASE SAVEPOINT active_record_2
617
684
   (0.1ms) SAVEPOINT active_record_2
618
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-07-16 15:51:01.636607"], ["updated_at", "2015-07-16 15:51:01.636607"], ["file_ext", "png"], ["mime_type", "image/png"]]
685
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-08-16 15:55:27.228936"], ["updated_at", "2015-08-16 15:55:27.228936"], ["file_ext", "png"], ["mime_type", "image/png"]]
619
686
   (0.1ms) RELEASE SAVEPOINT active_record_2
620
687
   (0.1ms) SAVEPOINT active_record_2
621
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-07-16 15:51:01.638559"], ["updated_at", "2015-07-16 15:51:01.638559"], ["file_ext", "png"], ["mime_type", "image/png"]]
688
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-08-16 15:55:27.230928"], ["updated_at", "2015-08-16 15:55:27.230928"], ["file_ext", "png"], ["mime_type", "image/png"]]
622
689
   (0.1ms) RELEASE SAVEPOINT active_record_2
623
690
   (0.1ms) SAVEPOINT active_record_2
624
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-07-16 15:51:01.640870"], ["updated_at", "2015-07-16 15:51:01.640870"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-08-16 15:55:27.233011"], ["updated_at", "2015-08-16 15:55:27.233011"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
625
692
   (0.1ms) RELEASE SAVEPOINT active_record_2
626
693
   (0.1ms) SAVEPOINT active_record_2
627
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-07-16 15:51:01.642919"], ["updated_at", "2015-07-16 15:51:01.642919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
694
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.234967"], ["updated_at", "2015-08-16 15:55:27.234967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
628
695
   (0.1ms) RELEASE SAVEPOINT active_record_2
629
696
   (0.1ms) SAVEPOINT active_record_2
630
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-07-16 15:51:01.645300"], ["updated_at", "2015-07-16 15:51:01.645300"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
697
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.237086"], ["updated_at", "2015-08-16 15:55:27.237086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
631
698
   (0.1ms) RELEASE SAVEPOINT active_record_2
632
699
   (0.1ms) SAVEPOINT active_record_2
633
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-07-16 15:51:01.647475"], ["updated_at", "2015-07-16 15:51:01.647475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
700
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.239162"], ["updated_at", "2015-08-16 15:55:27.239162"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
634
701
   (0.1ms) RELEASE SAVEPOINT active_record_2
635
702
   (0.1ms) SAVEPOINT active_record_2
636
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-07-16 15:51:01.649497"], ["updated_at", "2015-07-16 15:51:01.649497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-08-16 15:55:27.241261"], ["updated_at", "2015-08-16 15:55:27.241261"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
637
704
   (0.1ms) RELEASE SAVEPOINT active_record_2
638
705
   (0.1ms) SAVEPOINT active_record_2
639
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-07-16 15:51:01.687303"], ["updated_at", "2015-07-16 15:51:01.687303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
706
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.243358"], ["updated_at", "2015-08-16 15:55:27.243358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
640
707
   (0.1ms) RELEASE SAVEPOINT active_record_2
641
708
   (0.1ms) SAVEPOINT active_record_2
642
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-07-16 15:51:01.689592"], ["updated_at", "2015-07-16 15:51:01.689592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
709
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.245375"], ["updated_at", "2015-08-16 15:55:27.245375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
643
710
   (0.1ms) RELEASE SAVEPOINT active_record_2
644
711
   (0.1ms) SAVEPOINT active_record_2
645
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-07-16 15:51:01.692126"], ["updated_at", "2015-07-16 15:51:01.692126"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
712
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.247328"], ["updated_at", "2015-08-16 15:55:27.247328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
646
713
   (0.1ms) RELEASE SAVEPOINT active_record_2
647
714
   (0.1ms) SAVEPOINT active_record_2
648
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-07-16 15:51:01.694540"], ["updated_at", "2015-07-16 15:51:01.694540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-08-16 15:55:27.249237"], ["updated_at", "2015-08-16 15:55:27.249237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
649
716
   (0.1ms) RELEASE SAVEPOINT active_record_2
650
717
   (0.1ms) SAVEPOINT active_record_2
651
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-07-16 15:51:01.697125"], ["updated_at", "2015-07-16 15:51:01.697125"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
718
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-08-16 15:55:27.251342"], ["updated_at", "2015-08-16 15:55:27.251342"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
652
719
   (0.1ms) RELEASE SAVEPOINT active_record_2
653
720
   (0.1ms) SAVEPOINT active_record_2
654
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-07-16 15:51:01.699484"], ["updated_at", "2015-07-16 15:51:01.699484"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
721
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-08-16 15:55:27.253679"], ["updated_at", "2015-08-16 15:55:27.253679"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
722
   (0.1ms) RELEASE SAVEPOINT active_record_2
656
723
   (0.1ms) SAVEPOINT active_record_2
657
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-07-16 15:51:01.701914"], ["updated_at", "2015-07-16 15:51:01.701914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
724
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-08-16 15:55:27.255966"], ["updated_at", "2015-08-16 15:55:27.255966"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
658
725
   (0.1ms) RELEASE SAVEPOINT active_record_2
659
726
   (0.1ms) SAVEPOINT active_record_2
660
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-07-16 15:51:01.704163"], ["updated_at", "2015-07-16 15:51:01.704163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
727
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-08-16 15:55:27.258303"], ["updated_at", "2015-08-16 15:55:27.258303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
661
728
   (0.1ms) RELEASE SAVEPOINT active_record_2
662
729
  Processing by PushType::WysiwygMediaController#index as JSON
663
- Parameters: {"filter"=>"image"}
664
- 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
665
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
666
- Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
730
+ Parameters: {"filter"=>"file", "page"=>2}
731
+ 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
732
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
733
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
667
734
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
668
735
   (0.1ms) ROLLBACK
669
736
   (0.1ms) BEGIN
670
- ---------------------------------------------------------------------------------------
671
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
672
- ---------------------------------------------------------------------------------------
737
+ ----------------------------------------------------------------------------------
738
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
739
+ ----------------------------------------------------------------------------------
740
+  (0.1ms) SAVEPOINT active_record_1
741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
673
742
   (0.1ms) SAVEPOINT active_record_1
674
-  (0.0ms) RELEASE SAVEPOINT active_record_1
675
-  (0.0ms) SAVEPOINT active_record_1
676
743
   (0.1ms) SAVEPOINT active_record_2
677
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-07-16 15:51:01.713447"], ["updated_at", "2015-07-16 15:51:01.713447"], ["file_ext", "png"], ["mime_type", "image/png"]]
744
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "134"], ["created_at", "2015-08-16 15:55:27.265678"], ["updated_at", "2015-08-16 15:55:27.265678"], ["file_ext", "png"], ["mime_type", "image/png"]]
678
745
   (0.1ms) RELEASE SAVEPOINT active_record_2
679
746
   (0.1ms) SAVEPOINT active_record_2
680
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-07-16 15:51:01.715834"], ["updated_at", "2015-07-16 15:51:01.715834"], ["file_ext", "png"], ["mime_type", "image/png"]]
747
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "135"], ["created_at", "2015-08-16 15:55:27.267784"], ["updated_at", "2015-08-16 15:55:27.267784"], ["file_ext", "png"], ["mime_type", "image/png"]]
681
748
   (0.1ms) RELEASE SAVEPOINT active_record_2
682
749
   (0.1ms) SAVEPOINT active_record_2
683
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-07-16 15:51:01.718096"], ["updated_at", "2015-07-16 15:51:01.718096"], ["file_ext", "png"], ["mime_type", "image/png"]]
750
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "136"], ["created_at", "2015-08-16 15:55:27.270092"], ["updated_at", "2015-08-16 15:55:27.270092"], ["file_ext", "png"], ["mime_type", "image/png"]]
684
751
   (0.1ms) RELEASE SAVEPOINT active_record_2
685
752
   (0.1ms) SAVEPOINT active_record_2
686
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-07-16 15:51:01.720569"], ["updated_at", "2015-07-16 15:51:01.720569"], ["file_ext", "png"], ["mime_type", "image/png"]]
753
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-08-16 15:55:27.272336"], ["updated_at", "2015-08-16 15:55:27.272336"], ["file_ext", "png"], ["mime_type", "image/png"]]
687
754
   (0.1ms) RELEASE SAVEPOINT active_record_2
688
755
   (0.1ms) SAVEPOINT active_record_2
689
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "132"], ["created_at", "2015-07-16 15:51:01.722745"], ["updated_at", "2015-07-16 15:51:01.722745"], ["file_ext", "png"], ["mime_type", "image/png"]]
756
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-08-16 15:55:27.274427"], ["updated_at", "2015-08-16 15:55:27.274427"], ["file_ext", "png"], ["mime_type", "image/png"]]
690
757
   (0.1ms) RELEASE SAVEPOINT active_record_2
691
758
   (0.1ms) SAVEPOINT active_record_2
692
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.725381"], ["updated_at", "2015-07-16 15:51:01.725381"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
759
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.276564"], ["updated_at", "2015-08-16 15:55:27.276564"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
693
760
   (0.1ms) RELEASE SAVEPOINT active_record_2
694
761
   (0.1ms) SAVEPOINT active_record_2
695
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-07-16 15:51:01.727996"], ["updated_at", "2015-07-16 15:51:01.727996"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
762
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.278567"], ["updated_at", "2015-08-16 15:55:27.278567"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
696
763
   (0.1ms) RELEASE SAVEPOINT active_record_2
697
764
   (0.1ms) SAVEPOINT active_record_2
698
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-07-16 15:51:01.730439"], ["updated_at", "2015-07-16 15:51:01.730439"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
765
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.280661"], ["updated_at", "2015-08-16 15:55:27.280661"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
699
766
   (0.1ms) RELEASE SAVEPOINT active_record_2
700
767
   (0.1ms) SAVEPOINT active_record_2
701
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-07-16 15:51:01.732864"], ["updated_at", "2015-07-16 15:51:01.732864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
768
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.282631"], ["updated_at", "2015-08-16 15:55:27.282631"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
702
769
   (0.1ms) RELEASE SAVEPOINT active_record_2
703
770
   (0.1ms) SAVEPOINT active_record_2
704
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-07-16 15:51:01.735087"], ["updated_at", "2015-07-16 15:51:01.735087"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
771
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.284581"], ["updated_at", "2015-08-16 15:55:27.284581"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
705
772
   (0.1ms) RELEASE SAVEPOINT active_record_2
706
773
   (0.1ms) SAVEPOINT active_record_2
707
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-07-16 15:51:01.737264"], ["updated_at", "2015-07-16 15:51:01.737264"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
774
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.286650"], ["updated_at", "2015-08-16 15:55:27.286650"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
708
775
   (0.1ms) RELEASE SAVEPOINT active_record_2
709
776
   (0.1ms) SAVEPOINT active_record_2
710
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-07-16 15:51:01.739420"], ["updated_at", "2015-07-16 15:51:01.739420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
777
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.288887"], ["updated_at", "2015-08-16 15:55:27.288887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
711
778
   (0.1ms) RELEASE SAVEPOINT active_record_2
712
779
   (0.1ms) SAVEPOINT active_record_2
713
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-07-16 15:51:01.741802"], ["updated_at", "2015-07-16 15:51:01.741802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
780
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-08-16 15:55:27.291022"], ["updated_at", "2015-08-16 15:55:27.291022"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
714
781
   (0.1ms) RELEASE SAVEPOINT active_record_2
715
782
   (0.1ms) SAVEPOINT active_record_2
716
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-07-16 15:51:01.744214"], ["updated_at", "2015-07-16 15:51:01.744214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
783
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-08-16 15:55:27.293060"], ["updated_at", "2015-08-16 15:55:27.293060"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
717
784
   (0.1ms) RELEASE SAVEPOINT active_record_2
718
785
   (0.1ms) SAVEPOINT active_record_2
719
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-07-16 15:51:01.746683"], ["updated_at", "2015-07-16 15:51:01.746683"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
786
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-08-16 15:55:27.295328"], ["updated_at", "2015-08-16 15:55:27.295328"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
720
787
   (0.1ms) RELEASE SAVEPOINT active_record_2
721
788
   (0.1ms) SAVEPOINT active_record_2
722
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-07-16 15:51:01.748954"], ["updated_at", "2015-07-16 15:51:01.748954"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
789
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-08-16 15:55:27.297624"], ["updated_at", "2015-08-16 15:55:27.297624"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
723
790
   (0.1ms) RELEASE SAVEPOINT active_record_2
724
791
   (0.1ms) SAVEPOINT active_record_2
725
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-07-16 15:51:01.751103"], ["updated_at", "2015-07-16 15:51:01.751103"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
792
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-08-16 15:55:27.299688"], ["updated_at", "2015-08-16 15:55:27.299688"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
726
793
   (0.1ms) RELEASE SAVEPOINT active_record_2
727
794
   (0.1ms) SAVEPOINT active_record_2
728
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-07-16 15:51:01.753332"], ["updated_at", "2015-07-16 15:51:01.753332"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
795
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-08-16 15:55:27.301680"], ["updated_at", "2015-08-16 15:55:27.301680"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
729
796
   (0.1ms) RELEASE SAVEPOINT active_record_2
730
797
  Processing by PushType::WysiwygMediaController#index as JSON
731
- Parameters: {"filter"=>"image"}
732
- 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
733
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
734
- Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)
798
+ Parameters: {"filter"=>"file", "page"=>2}
799
+ 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
800
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
801
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
735
802
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
736
803
   (0.1ms) ROLLBACK
737
804
   (0.1ms) BEGIN
@@ -739,624 +806,557 @@ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)
739
806
  PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
740
807
  --------------------------------------------------------------------------------------
741
808
   (0.1ms) SAVEPOINT active_record_1
742
-  (0.1ms) RELEASE SAVEPOINT active_record_1
809
+  (0.0ms) RELEASE SAVEPOINT active_record_1
743
810
   (0.0ms) SAVEPOINT active_record_1
744
811
   (0.1ms) SAVEPOINT active_record_2
745
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-07-16 15:51:01.762949"], ["updated_at", "2015-07-16 15:51:01.762949"], ["file_ext", "png"], ["mime_type", "image/png"]]
812
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.310085"], ["updated_at", "2015-08-16 15:55:27.310085"], ["file_ext", "png"], ["mime_type", "image/png"]]
746
813
   (0.1ms) RELEASE SAVEPOINT active_record_2
747
814
   (0.1ms) SAVEPOINT active_record_2
748
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-07-16 15:51:01.765168"], ["updated_at", "2015-07-16 15:51:01.765168"], ["file_ext", "png"], ["mime_type", "image/png"]]
815
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.312252"], ["updated_at", "2015-08-16 15:55:27.312252"], ["file_ext", "png"], ["mime_type", "image/png"]]
749
816
   (0.1ms) RELEASE SAVEPOINT active_record_2
750
817
   (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", "148"], ["created_at", "2015-07-16 15:51:01.767398"], ["updated_at", "2015-07-16 15:51:01.767398"], ["file_ext", "png"], ["mime_type", "image/png"]]
818
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.314183"], ["updated_at", "2015-08-16 15:55:27.314183"], ["file_ext", "png"], ["mime_type", "image/png"]]
752
819
   (0.1ms) RELEASE SAVEPOINT active_record_2
753
820
   (0.1ms) SAVEPOINT active_record_2
754
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.769487"], ["updated_at", "2015-07-16 15:51:01.769487"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "155"], ["created_at", "2015-08-16 15:55:27.316092"], ["updated_at", "2015-08-16 15:55:27.316092"], ["file_ext", "png"], ["mime_type", "image/png"]]
755
822
   (0.1ms) RELEASE SAVEPOINT active_record_2
756
823
   (0.1ms) SAVEPOINT active_record_2
757
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-07-16 15:51:01.771674"], ["updated_at", "2015-07-16 15:51:01.771674"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "156"], ["created_at", "2015-08-16 15:55:27.318059"], ["updated_at", "2015-08-16 15:55:27.318059"], ["file_ext", "png"], ["mime_type", "image/png"]]
758
825
   (0.1ms) RELEASE SAVEPOINT active_record_2
759
826
   (0.1ms) SAVEPOINT active_record_2
760
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-07-16 15:51:01.773739"], ["updated_at", "2015-07-16 15:51:01.773739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-08-16 15:55:27.320301"], ["updated_at", "2015-08-16 15:55:27.320301"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
761
828
   (0.1ms) RELEASE SAVEPOINT active_record_2
762
829
   (0.1ms) SAVEPOINT active_record_2
763
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-07-16 15:51:01.775854"], ["updated_at", "2015-07-16 15:51:01.775854"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-08-16 15:55:27.322699"], ["updated_at", "2015-08-16 15:55:27.322699"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
764
831
   (0.1ms) RELEASE SAVEPOINT active_record_2
765
832
   (0.1ms) SAVEPOINT active_record_2
766
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-07-16 15:51:01.778223"], ["updated_at", "2015-07-16 15:51:01.778223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
833
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.324726"], ["updated_at", "2015-08-16 15:55:27.324726"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
767
834
   (0.1ms) RELEASE SAVEPOINT active_record_2
768
835
   (0.1ms) SAVEPOINT active_record_2
769
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-07-16 15:51:01.780456"], ["updated_at", "2015-07-16 15:51:01.780456"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
836
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.326689"], ["updated_at", "2015-08-16 15:55:27.326689"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
770
837
   (0.1ms) RELEASE SAVEPOINT active_record_2
771
838
   (0.1ms) SAVEPOINT active_record_2
772
- 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", "155"], ["created_at", "2015-07-16 15:51:01.782646"], ["updated_at", "2015-07-16 15:51:01.782646"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
839
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.328720"], ["updated_at", "2015-08-16 15:55:27.328720"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
773
840
   (0.1ms) RELEASE SAVEPOINT active_record_2
774
841
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-07-16 15:51:01.784989"], ["updated_at", "2015-07-16 15:51:01.784989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
842
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.330701"], ["updated_at", "2015-08-16 15:55:27.330701"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
776
843
   (0.1ms) RELEASE SAVEPOINT active_record_2
777
844
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-07-16 15:51:01.787058"], ["updated_at", "2015-07-16 15:51:01.787058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
845
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.332817"], ["updated_at", "2015-08-16 15:55:27.332817"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
779
846
   (0.1ms) RELEASE SAVEPOINT active_record_2
780
847
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-07-16 15:51:01.789427"], ["updated_at", "2015-07-16 15:51:01.789427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
848
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.334894"], ["updated_at", "2015-08-16 15:55:27.334894"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
782
849
   (0.1ms) RELEASE SAVEPOINT active_record_2
783
850
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-07-16 15:51:01.791661"], ["updated_at", "2015-07-16 15:51:01.791661"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
851
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-08-16 15:55:27.336984"], ["updated_at", "2015-08-16 15:55:27.336984"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
785
852
   (0.1ms) RELEASE SAVEPOINT active_record_2
786
853
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-07-16 15:51:01.793853"], ["updated_at", "2015-07-16 15:51:01.793853"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
854
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-08-16 15:55:27.339055"], ["updated_at", "2015-08-16 15:55:27.339055"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
788
855
   (0.1ms) RELEASE SAVEPOINT active_record_2
789
856
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-07-16 15:51:01.796384"], ["updated_at", "2015-07-16 15:51:01.796384"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
857
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-08-16 15:55:27.341117"], ["updated_at", "2015-08-16 15:55:27.341117"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
791
858
   (0.1ms) RELEASE SAVEPOINT active_record_2
792
859
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-07-16 15:51:01.798580"], ["updated_at", "2015-07-16 15:51:01.798580"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
860
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-08-16 15:55:27.343120"], ["updated_at", "2015-08-16 15:55:27.343120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
794
861
   (0.1ms) RELEASE SAVEPOINT active_record_2
795
862
   (0.1ms) SAVEPOINT active_record_2
796
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-07-16 15:51:01.800732"], ["updated_at", "2015-07-16 15:51:01.800732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
863
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-08-16 15:55:27.345187"], ["updated_at", "2015-08-16 15:55:27.345187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
797
864
   (0.1ms) RELEASE SAVEPOINT active_record_2
798
865
  Processing by PushType::WysiwygMediaController#index as JSON
799
866
  Parameters: {"filter"=>"file"}
800
867
  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
801
868
   (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
802
- Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.6ms)
869
+ Completed 200 OK in 25ms (Views: 0.9ms | ActiveRecord: 0.6ms)
803
870
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
804
871
   (0.1ms) ROLLBACK
805
872
   (0.1ms) BEGIN
806
873
  --------------------------------------------------------------------------------------
807
874
  PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
808
875
  --------------------------------------------------------------------------------------
809
-  (0.0ms) SAVEPOINT active_record_1
876
+  (0.1ms) SAVEPOINT active_record_1
810
877
   (0.0ms) RELEASE SAVEPOINT active_record_1
811
878
   (0.0ms) SAVEPOINT active_record_1
812
879
   (0.1ms) SAVEPOINT active_record_2
813
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-07-16 15:51:01.817637"], ["updated_at", "2015-07-16 15:51:01.817637"], ["file_ext", "png"], ["mime_type", "image/png"]]
880
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.374960"], ["updated_at", "2015-08-16 15:55:27.374960"], ["file_ext", "png"], ["mime_type", "image/png"]]
814
881
   (0.1ms) RELEASE SAVEPOINT active_record_2
815
882
   (0.1ms) SAVEPOINT active_record_2
816
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-07-16 15:51:01.819874"], ["updated_at", "2015-07-16 15:51:01.819874"], ["file_ext", "png"], ["mime_type", "image/png"]]
883
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.377526"], ["updated_at", "2015-08-16 15:55:27.377526"], ["file_ext", "png"], ["mime_type", "image/png"]]
817
884
   (0.1ms) RELEASE SAVEPOINT active_record_2
818
885
   (0.1ms) SAVEPOINT active_record_2
819
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-07-16 15:51:01.822258"], ["updated_at", "2015-07-16 15:51:01.822258"], ["file_ext", "png"], ["mime_type", "image/png"]]
886
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.379829"], ["updated_at", "2015-08-16 15:55:27.379829"], ["file_ext", "png"], ["mime_type", "image/png"]]
820
887
   (0.1ms) RELEASE SAVEPOINT active_record_2
821
888
   (0.1ms) SAVEPOINT active_record_2
822
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-07-16 15:51:01.824471"], ["updated_at", "2015-07-16 15:51:01.824471"], ["file_ext", "png"], ["mime_type", "image/png"]]
889
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.382264"], ["updated_at", "2015-08-16 15:55:27.382264"], ["file_ext", "png"], ["mime_type", "image/png"]]
823
890
   (0.1ms) RELEASE SAVEPOINT active_record_2
824
891
   (0.1ms) SAVEPOINT active_record_2
825
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-07-16 15:51:01.826761"], ["updated_at", "2015-07-16 15:51:01.826761"], ["file_ext", "png"], ["mime_type", "image/png"]]
892
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-08-16 15:55:27.384903"], ["updated_at", "2015-08-16 15:55:27.384903"], ["file_ext", "png"], ["mime_type", "image/png"]]
826
893
   (0.1ms) RELEASE SAVEPOINT active_record_2
827
894
   (0.1ms) SAVEPOINT active_record_2
828
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-07-16 15:51:01.829078"], ["updated_at", "2015-07-16 15:51:01.829078"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
895
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.387455"], ["updated_at", "2015-08-16 15:55:27.387455"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
829
896
   (0.1ms) RELEASE SAVEPOINT active_record_2
830
897
   (0.1ms) SAVEPOINT active_record_2
831
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-07-16 15:51:01.831413"], ["updated_at", "2015-07-16 15:51:01.831413"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
898
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.390025"], ["updated_at", "2015-08-16 15:55:27.390025"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
832
899
   (0.1ms) RELEASE SAVEPOINT active_record_2
833
900
   (0.1ms) SAVEPOINT active_record_2
834
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.833749"], ["updated_at", "2015-07-16 15:51:01.833749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
901
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.392565"], ["updated_at", "2015-08-16 15:55:27.392565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
835
902
   (0.1ms) RELEASE SAVEPOINT active_record_2
836
903
   (0.1ms) SAVEPOINT active_record_2
837
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.835962"], ["updated_at", "2015-07-16 15:51:01.835962"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
904
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.394723"], ["updated_at", "2015-08-16 15:55:27.394723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
838
905
   (0.1ms) RELEASE SAVEPOINT active_record_2
839
906
   (0.1ms) SAVEPOINT active_record_2
840
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.838043"], ["updated_at", "2015-07-16 15:51:01.838043"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
841
-  (0.1ms) RELEASE SAVEPOINT active_record_2
907
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.397376"], ["updated_at", "2015-08-16 15:55:27.397376"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
908
+  (0.2ms) RELEASE SAVEPOINT active_record_2
842
909
   (0.1ms) SAVEPOINT active_record_2
843
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.840149"], ["updated_at", "2015-07-16 15:51:01.840149"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
910
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.399878"], ["updated_at", "2015-08-16 15:55:27.399878"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
844
911
   (0.1ms) RELEASE SAVEPOINT active_record_2
845
912
   (0.1ms) SAVEPOINT active_record_2
846
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.842586"], ["updated_at", "2015-07-16 15:51:01.842586"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
913
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-08-16 15:55:27.402238"], ["updated_at", "2015-08-16 15:55:27.402238"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
847
914
   (0.1ms) RELEASE SAVEPOINT active_record_2
848
915
   (0.1ms) SAVEPOINT active_record_2
849
- 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", "176"], ["created_at", "2015-07-16 15:51:01.845038"], ["updated_at", "2015-07-16 15:51:01.845038"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
916
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-08-16 15:55:27.404989"], ["updated_at", "2015-08-16 15:55:27.404989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
850
917
   (0.1ms) RELEASE SAVEPOINT active_record_2
851
918
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-07-16 15:51:01.847436"], ["updated_at", "2015-07-16 15:51:01.847436"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
919
+ 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", "183"], ["created_at", "2015-08-16 15:55:27.407821"], ["updated_at", "2015-08-16 15:55:27.407821"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
853
920
   (0.1ms) RELEASE SAVEPOINT active_record_2
854
921
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2015-07-16 15:51:01.849584"], ["updated_at", "2015-07-16 15:51:01.849584"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
922
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-08-16 15:55:27.410419"], ["updated_at", "2015-08-16 15:55:27.410419"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
856
923
   (0.1ms) RELEASE SAVEPOINT active_record_2
857
924
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2015-07-16 15:51:01.851860"], ["updated_at", "2015-07-16 15:51:01.851860"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
925
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-08-16 15:55:27.412782"], ["updated_at", "2015-08-16 15:55:27.412782"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
859
926
   (0.1ms) RELEASE SAVEPOINT active_record_2
860
927
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-07-16 15:51:01.854095"], ["updated_at", "2015-07-16 15:51:01.854095"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
928
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-08-16 15:55:27.415709"], ["updated_at", "2015-08-16 15:55:27.415709"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
862
929
   (0.1ms) RELEASE SAVEPOINT active_record_2
863
930
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-07-16 15:51:01.856534"], ["updated_at", "2015-07-16 15:51:01.856534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
931
+ 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", "187"], ["created_at", "2015-08-16 15:55:27.418106"], ["updated_at", "2015-08-16 15:55:27.418106"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
865
932
   (0.1ms) RELEASE SAVEPOINT active_record_2
866
933
  Processing by PushType::WysiwygMediaController#index as JSON
867
934
  Parameters: {"filter"=>"file"}
868
935
  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
869
936
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
870
- Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 0.5ms)
937
+ Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.5ms)
871
938
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
872
939
   (0.1ms) ROLLBACK
873
940
   (0.1ms) BEGIN
874
941
  --------------------------------------------------------------------------------------
875
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
942
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
876
943
  --------------------------------------------------------------------------------------
877
944
   (0.1ms) SAVEPOINT active_record_1
878
945
   (0.0ms) RELEASE SAVEPOINT active_record_1
879
946
   (0.1ms) SAVEPOINT active_record_1
880
947
   (0.1ms) SAVEPOINT active_record_2
881
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.873978"], ["updated_at", "2015-07-16 15:51:01.873978"], ["file_ext", "png"], ["mime_type", "image/png"]]
948
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-08-16 15:55:27.435857"], ["updated_at", "2015-08-16 15:55:27.435857"], ["file_ext", "png"], ["mime_type", "image/png"]]
882
949
   (0.1ms) RELEASE SAVEPOINT active_record_2
883
950
   (0.1ms) SAVEPOINT active_record_2
884
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.876446"], ["updated_at", "2015-07-16 15:51:01.876446"], ["file_ext", "png"], ["mime_type", "image/png"]]
951
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-08-16 15:55:27.438126"], ["updated_at", "2015-08-16 15:55:27.438126"], ["file_ext", "png"], ["mime_type", "image/png"]]
885
952
   (0.1ms) RELEASE SAVEPOINT active_record_2
886
953
   (0.1ms) SAVEPOINT active_record_2
887
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.878795"], ["updated_at", "2015-07-16 15:51:01.878795"], ["file_ext", "png"], ["mime_type", "image/png"]]
954
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-08-16 15:55:27.440592"], ["updated_at", "2015-08-16 15:55:27.440592"], ["file_ext", "png"], ["mime_type", "image/png"]]
888
955
   (0.1ms) RELEASE SAVEPOINT active_record_2
889
956
   (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", "185"], ["created_at", "2015-07-16 15:51:01.880943"], ["updated_at", "2015-07-16 15:51:01.880943"], ["file_ext", "png"], ["mime_type", "image/png"]]
957
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-08-16 15:55:27.442816"], ["updated_at", "2015-08-16 15:55:27.442816"], ["file_ext", "png"], ["mime_type", "image/png"]]
891
958
   (0.1ms) RELEASE SAVEPOINT active_record_2
892
959
   (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", "186"], ["created_at", "2015-07-16 15:51:01.883849"], ["updated_at", "2015-07-16 15:51:01.883849"], ["file_ext", "png"], ["mime_type", "image/png"]]
960
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-08-16 15:55:27.445034"], ["updated_at", "2015-08-16 15:55:27.445034"], ["file_ext", "png"], ["mime_type", "image/png"]]
894
961
   (0.1ms) RELEASE SAVEPOINT active_record_2
895
962
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-07-16 15:51:01.886427"], ["updated_at", "2015-07-16 15:51:01.886427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
963
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-08-16 15:55:27.447204"], ["updated_at", "2015-08-16 15:55:27.447204"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
897
964
   (0.1ms) RELEASE SAVEPOINT active_record_2
898
965
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-07-16 15:51:01.888718"], ["updated_at", "2015-07-16 15:51:01.888718"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-08-16 15:55:27.449269"], ["updated_at", "2015-08-16 15:55:27.449269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
900
967
   (0.1ms) RELEASE SAVEPOINT active_record_2
901
968
   (0.1ms) SAVEPOINT active_record_2
902
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.890922"], ["updated_at", "2015-07-16 15:51:01.890922"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
969
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-08-16 15:55:27.451413"], ["updated_at", "2015-08-16 15:55:27.451413"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
903
970
   (0.1ms) RELEASE SAVEPOINT active_record_2
904
971
   (0.1ms) SAVEPOINT active_record_2
905
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.893288"], ["updated_at", "2015-07-16 15:51:01.893288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
972
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.453904"], ["updated_at", "2015-08-16 15:55:27.453904"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
906
973
   (0.1ms) RELEASE SAVEPOINT active_record_2
907
974
   (0.1ms) SAVEPOINT active_record_2
908
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.896534"], ["updated_at", "2015-07-16 15:51:01.896534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
975
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.456451"], ["updated_at", "2015-08-16 15:55:27.456451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
909
976
   (0.1ms) RELEASE SAVEPOINT active_record_2
910
977
   (0.1ms) SAVEPOINT active_record_2
911
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.898887"], ["updated_at", "2015-07-16 15:51:01.898887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-08-16 15:55:27.458696"], ["updated_at", "2015-08-16 15:55:27.458696"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
912
979
   (0.1ms) RELEASE SAVEPOINT active_record_2
913
980
   (0.1ms) SAVEPOINT active_record_2
914
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.901187"], ["updated_at", "2015-07-16 15:51:01.901187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-08-16 15:55:27.460833"], ["updated_at", "2015-08-16 15:55:27.460833"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
915
982
   (0.1ms) RELEASE SAVEPOINT active_record_2
916
983
   (0.1ms) SAVEPOINT active_record_2
917
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.903438"], ["updated_at", "2015-07-16 15:51:01.903438"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-08-16 15:55:27.462967"], ["updated_at", "2015-08-16 15:55:27.462967"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
918
985
   (0.1ms) RELEASE SAVEPOINT active_record_2
919
986
   (0.1ms) SAVEPOINT active_record_2
920
- 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", "195"], ["created_at", "2015-07-16 15:51:01.906140"], ["updated_at", "2015-07-16 15:51:01.906140"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-08-16 15:55:27.465178"], ["updated_at", "2015-08-16 15:55:27.465178"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
921
988
   (0.1ms) RELEASE SAVEPOINT active_record_2
922
989
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "196"], ["created_at", "2015-07-16 15:51:01.908626"], ["updated_at", "2015-07-16 15:51:01.908626"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
990
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.467539"], ["updated_at", "2015-08-16 15:55:27.467539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
924
991
   (0.1ms) RELEASE SAVEPOINT active_record_2
925
992
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "197"], ["created_at", "2015-07-16 15:51:01.910954"], ["updated_at", "2015-07-16 15:51:01.910954"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
993
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.469872"], ["updated_at", "2015-08-16 15:55:27.469872"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
927
994
   (0.1ms) RELEASE SAVEPOINT active_record_2
928
995
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-07-16 15:51:01.913732"], ["updated_at", "2015-07-16 15:51:01.913732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
996
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.472212"], ["updated_at", "2015-08-16 15:55:27.472212"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
930
997
   (0.1ms) RELEASE SAVEPOINT active_record_2
931
998
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-07-16 15:51:01.916062"], ["updated_at", "2015-07-16 15:51:01.916062"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
999
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.474532"], ["updated_at", "2015-08-16 15:55:27.474532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
933
1000
   (0.1ms) RELEASE SAVEPOINT active_record_2
934
1001
  Processing by PushType::WysiwygMediaController#index as JSON
935
1002
  Parameters: {"filter"=>"file"}
936
1003
  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
937
1004
   (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
938
- Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 0.6ms)
1005
+ Completed 200 OK in 13ms (Views: 0.9ms | ActiveRecord: 0.6ms)
939
1006
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
940
1007
   (0.1ms) ROLLBACK
941
1008
   (0.1ms) BEGIN
942
1009
  --------------------------------------------------------------------------------------
943
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
1010
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
944
1011
  --------------------------------------------------------------------------------------
945
1012
   (0.1ms) SAVEPOINT active_record_1
946
1013
   (0.1ms) RELEASE SAVEPOINT active_record_1
947
1014
   (0.1ms) SAVEPOINT active_record_1
948
1015
   (0.1ms) SAVEPOINT active_record_2
949
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.934678"], ["updated_at", "2015-07-16 15:51:01.934678"], ["file_ext", "png"], ["mime_type", "image/png"]]
1016
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "206"], ["created_at", "2015-08-16 15:55:27.492275"], ["updated_at", "2015-08-16 15:55:27.492275"], ["file_ext", "png"], ["mime_type", "image/png"]]
950
1017
   (0.1ms) RELEASE SAVEPOINT active_record_2
951
1018
   (0.1ms) SAVEPOINT active_record_2
952
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.937651"], ["updated_at", "2015-07-16 15:51:01.937651"], ["file_ext", "png"], ["mime_type", "image/png"]]
1019
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "207"], ["created_at", "2015-08-16 15:55:27.494540"], ["updated_at", "2015-08-16 15:55:27.494540"], ["file_ext", "png"], ["mime_type", "image/png"]]
953
1020
   (0.1ms) RELEASE SAVEPOINT active_record_2
954
1021
   (0.1ms) SAVEPOINT active_record_2
955
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.940264"], ["updated_at", "2015-07-16 15:51:01.940264"], ["file_ext", "png"], ["mime_type", "image/png"]]
1022
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "208"], ["created_at", "2015-08-16 15:55:27.496773"], ["updated_at", "2015-08-16 15:55:27.496773"], ["file_ext", "png"], ["mime_type", "image/png"]]
956
1023
   (0.1ms) RELEASE SAVEPOINT active_record_2
957
1024
   (0.1ms) SAVEPOINT active_record_2
958
- 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", "203"], ["created_at", "2015-07-16 15:51:01.942972"], ["updated_at", "2015-07-16 15:51:01.942972"], ["file_ext", "png"], ["mime_type", "image/png"]]
1025
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "209"], ["created_at", "2015-08-16 15:55:27.499189"], ["updated_at", "2015-08-16 15:55:27.499189"], ["file_ext", "png"], ["mime_type", "image/png"]]
959
1026
   (0.1ms) RELEASE SAVEPOINT active_record_2
960
1027
   (0.1ms) SAVEPOINT active_record_2
961
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.946746"], ["updated_at", "2015-07-16 15:51:01.946746"], ["file_ext", "png"], ["mime_type", "image/png"]]
1028
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "210"], ["created_at", "2015-08-16 15:55:27.501322"], ["updated_at", "2015-08-16 15:55:27.501322"], ["file_ext", "png"], ["mime_type", "image/png"]]
962
1029
   (0.1ms) RELEASE SAVEPOINT active_record_2
963
1030
   (0.1ms) SAVEPOINT active_record_2
964
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.949468"], ["updated_at", "2015-07-16 15:51:01.949468"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1031
+ 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", "211"], ["created_at", "2015-08-16 15:55:27.503628"], ["updated_at", "2015-08-16 15:55:27.503628"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
965
1032
   (0.1ms) RELEASE SAVEPOINT active_record_2
966
1033
   (0.1ms) SAVEPOINT active_record_2
967
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.951944"], ["updated_at", "2015-07-16 15:51:01.951944"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-08-16 15:55:27.505982"], ["updated_at", "2015-08-16 15:55:27.505982"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
968
1035
   (0.1ms) RELEASE SAVEPOINT active_record_2
969
1036
   (0.1ms) SAVEPOINT active_record_2
970
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.954187"], ["updated_at", "2015-07-16 15:51:01.954187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-08-16 15:55:27.508287"], ["updated_at", "2015-08-16 15:55:27.508287"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
971
1038
   (0.1ms) RELEASE SAVEPOINT active_record_2
972
1039
   (0.1ms) SAVEPOINT active_record_2
973
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.956695"], ["updated_at", "2015-07-16 15:51:01.956695"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.510576"], ["updated_at", "2015-08-16 15:55:27.510576"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
974
1041
   (0.1ms) RELEASE SAVEPOINT active_record_2
975
1042
   (0.1ms) SAVEPOINT active_record_2
976
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.959187"], ["updated_at", "2015-07-16 15:51:01.959187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1043
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.512740"], ["updated_at", "2015-08-16 15:55:27.512740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
977
1044
   (0.1ms) RELEASE SAVEPOINT active_record_2
978
1045
   (0.1ms) SAVEPOINT active_record_2
979
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.961749"], ["updated_at", "2015-07-16 15:51:01.961749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1046
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-08-16 15:55:27.514997"], ["updated_at", "2015-08-16 15:55:27.514997"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
980
1047
   (0.1ms) RELEASE SAVEPOINT active_record_2
981
1048
   (0.1ms) SAVEPOINT active_record_2
982
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.964216"], ["updated_at", "2015-07-16 15:51:01.964216"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1049
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-08-16 15:55:27.517191"], ["updated_at", "2015-08-16 15:55:27.517191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
983
1050
   (0.1ms) RELEASE SAVEPOINT active_record_2
984
1051
   (0.1ms) SAVEPOINT active_record_2
985
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.966696"], ["updated_at", "2015-07-16 15:51:01.966696"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1052
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-08-16 15:55:27.519463"], ["updated_at", "2015-08-16 15:55:27.519463"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
986
1053
   (0.1ms) RELEASE SAVEPOINT active_record_2
987
1054
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-07-16 15:51:01.969475"], ["updated_at", "2015-07-16 15:51:01.969475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1055
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-08-16 15:55:27.522039"], ["updated_at", "2015-08-16 15:55:27.522039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
989
1056
   (0.1ms) RELEASE SAVEPOINT active_record_2
990
1057
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "214"], ["created_at", "2015-07-16 15:51:01.971938"], ["updated_at", "2015-07-16 15:51:01.971938"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1058
+ 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", "220"], ["created_at", "2015-08-16 15:55:27.524407"], ["updated_at", "2015-08-16 15:55:27.524407"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
992
1059
   (0.1ms) RELEASE SAVEPOINT active_record_2
993
1060
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "215"], ["created_at", "2015-07-16 15:51:01.974296"], ["updated_at", "2015-07-16 15:51:01.974296"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-08-16 15:55:27.526908"], ["updated_at", "2015-08-16 15:55:27.526908"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
995
1062
   (0.1ms) RELEASE SAVEPOINT active_record_2
996
1063
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-07-16 15:51:01.976804"], ["updated_at", "2015-07-16 15:51:01.976804"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-08-16 15:55:27.529124"], ["updated_at", "2015-08-16 15:55:27.529124"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
998
1065
   (0.1ms) RELEASE SAVEPOINT active_record_2
999
1066
   (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-07-16 15:51:01.978848"], ["updated_at", "2015-07-16 15:51:01.978848"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-08-16 15:55:27.531347"], ["updated_at", "2015-08-16 15:55:27.531347"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1001
1068
   (0.1ms) RELEASE SAVEPOINT active_record_2
1002
1069
  Processing by PushType::WysiwygMediaController#index as JSON
1003
1070
  Parameters: {"filter"=>"file"}
1004
1071
  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
1005
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1006
- Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1072
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1073
+ Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.5ms)
1007
1074
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1008
1075
   (0.1ms) ROLLBACK
1009
1076
   (0.1ms) BEGIN
1010
- -----------------------------------------------------------------------
1011
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
1012
- -----------------------------------------------------------------------
1013
-  (0.0ms) SAVEPOINT active_record_1
1014
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1015
-  (0.0ms) SAVEPOINT active_record_1
1077
+ -------------------------------------------------------------------------------------
1078
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1079
+ -------------------------------------------------------------------------------------
1080
+  (0.1ms) SAVEPOINT active_record_1
1081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1082
+  (0.1ms) SAVEPOINT active_record_1
1083
+ Processing by PushType::WysiwygMediaController#create as JSON
1084
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3335f1f40 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-1cxk1o>>}}
1016
1085
   (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", "218"], ["created_at", "2015-07-16 15:51:01.994566"], ["updated_at", "2015-07-16 15:51:01.994566"], ["file_ext", "png"], ["mime_type", "image/png"]]
1086
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "224"], ["created_at", "2015-08-16 15:55:27.551328"], ["updated_at", "2015-08-16 15:55:27.551328"], ["file_ext", "png"], ["mime_type", "image/png"]]
1018
1087
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1089
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1090
+  (0.1ms) ROLLBACK
1091
+  (0.1ms) BEGIN
1092
+ -------------------------------------------------------------------------------------
1093
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1094
+ -------------------------------------------------------------------------------------
1095
+  (0.0ms) SAVEPOINT active_record_1
1096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.0ms) SAVEPOINT active_record_1
1098
+ Processing by PushType::WysiwygMediaController#create as JSON
1099
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe337878058 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-1sllxlq>>}}
1019
1100
   (0.1ms) SAVEPOINT active_record_2
1020
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.996728"], ["updated_at", "2015-07-16 15:51:01.996728"], ["file_ext", "png"], ["mime_type", "image/png"]]
1101
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "225"], ["created_at", "2015-08-16 15:55:27.557320"], ["updated_at", "2015-08-16 15:55:27.557320"], ["file_ext", "png"], ["mime_type", "image/png"]]
1021
1102
   (0.1ms) RELEASE SAVEPOINT active_record_2
1103
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1104
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1105
+  (0.1ms) ROLLBACK
1106
+  (0.1ms) BEGIN
1107
+ -------------------------------------------------------------------------------------
1108
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
1109
+ -------------------------------------------------------------------------------------
1110
+  (0.1ms) SAVEPOINT active_record_1
1111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1112
+  (0.1ms) SAVEPOINT active_record_1
1113
+ Processing by PushType::WysiwygMediaController#create as JSON
1114
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe3317822f8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-hkg9ez>>}}
1022
1115
   (0.1ms) SAVEPOINT active_record_2
1023
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:01.998720"], ["updated_at", "2015-07-16 15:51:01.998720"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "226"], ["created_at", "2015-08-16 15:55:27.563182"], ["updated_at", "2015-08-16 15:55:27.563182"], ["file_ext", "png"], ["mime_type", "image/png"]]
1024
1117
   (0.1ms) RELEASE SAVEPOINT active_record_2
1025
-  (0.1ms) SAVEPOINT active_record_2
1026
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.000748"], ["updated_at", "2015-07-16 15:51:02.000748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1027
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1028
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1118
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1029
1119
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1030
1120
   (0.1ms) ROLLBACK
1031
-  (0.0ms) BEGIN
1121
+  (0.1ms) BEGIN
1032
1122
  -----------------------------------------------------------------------
1033
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
1123
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
1034
1124
  -----------------------------------------------------------------------
1035
-  (0.0ms) SAVEPOINT active_record_1
1036
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1037
-  (0.0ms) SAVEPOINT active_record_1
1125
+  (0.1ms) SAVEPOINT active_record_1
1126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1127
+  (0.1ms) SAVEPOINT active_record_1
1038
1128
   (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", "image.png"], ["file_size", 2643], ["file_uid", "222"], ["created_at", "2015-07-16 15:51:02.013332"], ["updated_at", "2015-07-16 15:51:02.013332"], ["file_ext", "png"], ["mime_type", "image/png"]]
1129
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "227"], ["created_at", "2015-08-16 15:55:27.569187"], ["updated_at", "2015-08-16 15:55:27.569187"], ["file_ext", "png"], ["mime_type", "image/png"]]
1040
1130
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
1131
   (0.1ms) SAVEPOINT active_record_2
1042
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "223"], ["created_at", "2015-07-16 15:51:02.015840"], ["updated_at", "2015-07-16 15:51:02.015840"], ["file_ext", "png"], ["mime_type", "image/png"]]
1132
+ 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", "228"], ["created_at", "2015-08-16 15:55:27.571586"], ["updated_at", "2015-08-16 15:55:27.571586"], ["file_ext", "png"], ["mime_type", "image/png"]]
1043
1133
   (0.1ms) RELEASE SAVEPOINT active_record_2
1044
1134
   (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", "224"], ["created_at", "2015-07-16 15:51:02.018126"], ["updated_at", "2015-07-16 15:51:02.018126"], ["file_ext", "png"], ["mime_type", "image/png"]]
1135
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-08-16 15:55:27.574357"], ["updated_at", "2015-08-16 15:55:27.574357"], ["file_ext", "png"], ["mime_type", "image/png"]]
1046
1136
   (0.1ms) RELEASE SAVEPOINT active_record_2
1047
1137
   (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", "225"], ["created_at", "2015-07-16 15:51:02.020186"], ["updated_at", "2015-07-16 15:51:02.020186"], ["file_ext", "png"], ["mime_type", "image/png"]]
1138
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-08-16 15:55:27.576596"], ["updated_at", "2015-08-16 15:55:27.576596"], ["file_ext", "png"], ["mime_type", "image/png"]]
1049
1139
   (0.1ms) RELEASE SAVEPOINT active_record_2
1050
1140
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1051
1141
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1052
1142
   (0.1ms) ROLLBACK
1053
1143
   (0.1ms) BEGIN
1054
1144
  -----------------------------------------------------------------------
1055
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
1145
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
1056
1146
  -----------------------------------------------------------------------
1057
1147
   (0.0ms) SAVEPOINT active_record_1
1058
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1059
-  (0.0ms) SAVEPOINT active_record_1
1148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
+  (0.1ms) SAVEPOINT active_record_1
1060
1150
   (0.1ms) SAVEPOINT active_record_2
1061
- 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", "226"], ["created_at", "2015-07-16 15:51:02.026184"], ["updated_at", "2015-07-16 15:51:02.026184"], ["file_ext", "png"], ["mime_type", "image/png"]]
1151
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-08-16 15:55:27.581009"], ["updated_at", "2015-08-16 15:55:27.581009"], ["file_ext", "png"], ["mime_type", "image/png"]]
1062
1152
   (0.1ms) RELEASE SAVEPOINT active_record_2
1063
1153
   (0.1ms) SAVEPOINT active_record_2
1064
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "227"], ["created_at", "2015-07-16 15:51:02.029017"], ["updated_at", "2015-07-16 15:51:02.029017"], ["file_ext", "png"], ["mime_type", "image/png"]]
1154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-08-16 15:55:27.583254"], ["updated_at", "2015-08-16 15:55:27.583254"], ["file_ext", "png"], ["mime_type", "image/png"]]
1065
1155
   (0.1ms) RELEASE SAVEPOINT active_record_2
1066
1156
   (0.1ms) SAVEPOINT active_record_2
1067
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "228"], ["created_at", "2015-07-16 15:51:02.031375"], ["updated_at", "2015-07-16 15:51:02.031375"], ["file_ext", "png"], ["mime_type", "image/png"]]
1157
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-08-16 15:55:27.585547"], ["updated_at", "2015-08-16 15:55:27.585547"], ["file_ext", "png"], ["mime_type", "image/png"]]
1068
1158
   (0.1ms) RELEASE SAVEPOINT active_record_2
1069
1159
   (0.1ms) SAVEPOINT active_record_2
1070
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-07-16 15:51:02.033748"], ["updated_at", "2015-07-16 15:51:02.033748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1160
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-08-16 15:55:27.587860"], ["updated_at", "2015-08-16 15:55:27.587860"], ["file_ext", "png"], ["mime_type", "image/png"]]
1071
1161
   (0.1ms) RELEASE SAVEPOINT active_record_2
1072
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1162
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets"
1073
1163
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1074
1164
   (0.1ms) ROLLBACK
1075
1165
   (0.1ms) BEGIN
1076
1166
  -----------------------------------------------------------------------
1077
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
1167
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
1078
1168
  -----------------------------------------------------------------------
1079
1169
   (0.0ms) SAVEPOINT active_record_1
1080
1170
   (0.0ms) RELEASE SAVEPOINT active_record_1
1081
1171
   (0.0ms) SAVEPOINT active_record_1
1082
1172
   (0.1ms) SAVEPOINT active_record_2
1083
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-07-16 15:51:02.038229"], ["updated_at", "2015-07-16 15:51:02.038229"], ["file_ext", "png"], ["mime_type", "image/png"]]
1173
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-08-16 15:55:27.592614"], ["updated_at", "2015-08-16 15:55:27.592614"], ["file_ext", "png"], ["mime_type", "image/png"]]
1084
1174
   (0.1ms) RELEASE SAVEPOINT active_record_2
1085
1175
   (0.1ms) SAVEPOINT active_record_2
1086
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-07-16 15:51:02.040503"], ["updated_at", "2015-07-16 15:51:02.040503"], ["file_ext", "png"], ["mime_type", "image/png"]]
1176
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.594790"], ["updated_at", "2015-08-16 15:55:27.594790"], ["file_ext", "png"], ["mime_type", "image/png"]]
1087
1177
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
1178
   (0.1ms) SAVEPOINT active_record_2
1089
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-07-16 15:51:02.042883"], ["updated_at", "2015-07-16 15:51:02.042883"], ["file_ext", "png"], ["mime_type", "image/png"]]
1179
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.597598"], ["updated_at", "2015-08-16 15:55:27.597598"], ["file_ext", "png"], ["mime_type", "image/png"]]
1090
1180
   (0.1ms) RELEASE SAVEPOINT active_record_2
1091
1181
   (0.1ms) SAVEPOINT active_record_2
1092
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-07-16 15:51:02.045089"], ["updated_at", "2015-07-16 15:51:02.045089"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "238"], ["created_at", "2015-08-16 15:55:27.600088"], ["updated_at", "2015-08-16 15:55:27.600088"], ["file_ext", "png"], ["mime_type", "image/png"]]
1093
1183
   (0.1ms) RELEASE SAVEPOINT active_record_2
1094
1184
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1095
1185
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1096
1186
   (0.1ms) ROLLBACK
1097
-  (0.1ms) BEGIN
1187
+  (0.0ms) BEGIN
1098
1188
  -----------------------------------------------------------------------
1099
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
1189
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
1100
1190
  -----------------------------------------------------------------------
1101
1191
   (0.0ms) SAVEPOINT active_record_1
1102
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1103
1193
   (0.0ms) SAVEPOINT active_record_1
1104
1194
   (0.1ms) SAVEPOINT active_record_2
1105
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-07-16 15:51:02.049526"], ["updated_at", "2015-07-16 15:51:02.049526"], ["file_ext", "png"], ["mime_type", "image/png"]]
1195
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.604482"], ["updated_at", "2015-08-16 15:55:27.604482"], ["file_ext", "png"], ["mime_type", "image/png"]]
1106
1196
   (0.1ms) RELEASE SAVEPOINT active_record_2
1107
1197
   (0.1ms) SAVEPOINT active_record_2
1108
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.051749"], ["updated_at", "2015-07-16 15:51:02.051749"], ["file_ext", "png"], ["mime_type", "image/png"]]
1198
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "240"], ["created_at", "2015-08-16 15:55:27.606660"], ["updated_at", "2015-08-16 15:55:27.606660"], ["file_ext", "png"], ["mime_type", "image/png"]]
1109
1199
   (0.1ms) RELEASE SAVEPOINT active_record_2
1110
1200
   (0.1ms) SAVEPOINT active_record_2
1111
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.053951"], ["updated_at", "2015-07-16 15:51:02.053951"], ["file_ext", "png"], ["mime_type", "image/png"]]
1201
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-08-16 15:55:27.608776"], ["updated_at", "2015-08-16 15:55:27.608776"], ["file_ext", "png"], ["mime_type", "image/png"]]
1112
1202
   (0.1ms) RELEASE SAVEPOINT active_record_2
1113
1203
   (0.1ms) SAVEPOINT active_record_2
1114
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.056024"], ["updated_at", "2015-07-16 15:51:02.056024"], ["file_ext", "png"], ["mime_type", "image/png"]]
1204
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-08-16 15:55:27.610724"], ["updated_at", "2015-08-16 15:55:27.610724"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
1205
   (0.1ms) RELEASE SAVEPOINT active_record_2
1116
1206
   (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1117
1207
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1118
1208
   (0.1ms) ROLLBACK
1119
1209
   (0.1ms) BEGIN
1120
- -------------------------------------------------------------------------------------
1121
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1122
- -------------------------------------------------------------------------------------
1210
+ -----------------------------------------------------------------------
1211
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
1212
+ -----------------------------------------------------------------------
1213
+  (0.1ms) SAVEPOINT active_record_1
1214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1123
1215
   (0.1ms) SAVEPOINT active_record_1
1124
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1125
-  (0.0ms) SAVEPOINT active_record_1
1126
- Processing by PushType::WysiwygMediaController#create as JSON
1127
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc1ac9fbc8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-1r1s8sh>>}}
1128
1216
   (0.1ms) SAVEPOINT active_record_2
1129
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "238"], ["created_at", "2015-07-16 15:51:02.063613"], ["updated_at", "2015-07-16 15:51:02.063613"], ["file_ext", "png"], ["mime_type", "image/png"]]
1217
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-08-16 15:55:27.614889"], ["updated_at", "2015-08-16 15:55:27.614889"], ["file_ext", "png"], ["mime_type", "image/png"]]
1130
1218
   (0.1ms) RELEASE SAVEPOINT active_record_2
1131
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
1132
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1133
-  (0.1ms) ROLLBACK
1134
-  (0.1ms) BEGIN
1135
- -------------------------------------------------------------------------------------
1136
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1137
- -------------------------------------------------------------------------------------
1138
-  (0.1ms) SAVEPOINT active_record_1
1139
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1140
-  (0.0ms) SAVEPOINT active_record_1
1141
- Processing by PushType::WysiwygMediaController#create as JSON
1142
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc24032278 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-vc113j>>}}
1143
1219
   (0.1ms) SAVEPOINT active_record_2
1144
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-07-16 15:51:02.069709"], ["updated_at", "2015-07-16 15:51:02.069709"], ["file_ext", "png"], ["mime_type", "image/png"]]
1220
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2015-08-16 15:55:27.616912"], ["updated_at", "2015-08-16 15:55:27.616912"], ["file_ext", "png"], ["mime_type", "image/png"]]
1145
1221
   (0.1ms) RELEASE SAVEPOINT active_record_2
1146
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1147
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1148
-  (0.1ms) ROLLBACK
1149
-  (0.0ms) BEGIN
1150
- -------------------------------------------------------------------------------------
1151
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
1152
- -------------------------------------------------------------------------------------
1153
-  (0.0ms) SAVEPOINT active_record_1
1154
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1155
-  (0.0ms) SAVEPOINT active_record_1
1156
- Processing by PushType::WysiwygMediaController#create as JSON
1157
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc25860188 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-1jw0s10>>}}
1158
1222
   (0.1ms) SAVEPOINT active_record_2
1159
- 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", "240"], ["created_at", "2015-07-16 15:51:02.076636"], ["updated_at", "2015-07-16 15:51:02.076636"], ["file_ext", "png"], ["mime_type", "image/png"]]
1223
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-08-16 15:55:27.619065"], ["updated_at", "2015-08-16 15:55:27.619065"], ["file_ext", "png"], ["mime_type", "image/png"]]
1160
1224
   (0.1ms) RELEASE SAVEPOINT active_record_2
1161
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
1225
+  (0.1ms) SAVEPOINT active_record_2
1226
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-08-16 15:55:27.621052"], ["updated_at", "2015-08-16 15:55:27.621052"], ["file_ext", "png"], ["mime_type", "image/png"]]
1227
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1228
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1162
1229
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1163
1230
   (0.1ms) ROLLBACK
1164
1231
   (0.1ms) BEGIN
1165
- -----------------------------------------------------------------------
1166
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1167
- -----------------------------------------------------------------------
1232
+ --------------------------------------------------------------------------------
1233
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1234
+ --------------------------------------------------------------------------------
1168
1235
   (0.1ms) SAVEPOINT active_record_1
1169
1236
   (0.1ms) RELEASE SAVEPOINT active_record_1
1170
-  (0.0ms) SAVEPOINT active_record_1
1171
-  (0.1ms) SAVEPOINT active_record_2
1172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-07-16 15:51:02.081935"], ["updated_at", "2015-07-16 15:51:02.081935"], ["file_ext", "png"], ["mime_type", "image/png"]]
1173
-  (0.2ms) RELEASE SAVEPOINT active_record_2
1174
-  (0.1ms) SAVEPOINT active_record_2
1175
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-07-16 15:51:02.084376"], ["updated_at", "2015-07-16 15:51:02.084376"], ["file_ext", "png"], ["mime_type", "image/png"]]
1176
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1177
-  (0.1ms) SAVEPOINT active_record_2
1178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-07-16 15:51:02.086612"], ["updated_at", "2015-07-16 15:51:02.086612"], ["file_ext", "png"], ["mime_type", "image/png"]]
1179
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1237
+  (0.1ms) SAVEPOINT active_record_1
1238
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1239
+ Processing by PushType::WysiwygMediaController#create as JSON
1240
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fe33a901c60 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150816-9169-sttfr3>>}}
1180
1241
   (0.1ms) SAVEPOINT active_record_2
1181
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2015-07-16 15:51:02.088812"], ["updated_at", "2015-07-16 15:51:02.088812"], ["file_ext", "png"], ["mime_type", "image/png"]]
1242
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-08-16 15:55:27.629853"], ["updated_at", "2015-08-16 15:55:27.629853"], ["file_ext", "png"], ["mime_type", "image/png"]]
1182
1243
   (0.1ms) RELEASE SAVEPOINT active_record_2
1183
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1184
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1185
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1186
-  (0.1ms) ROLLBACK
1187
-  (0.1ms) BEGIN
1244
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1245
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1246
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1247
+  (0.1ms) ROLLBACK
1248
+  (0.1ms) BEGIN
1188
1249
  -----------------------------------------------------------------------
1189
1250
  PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1190
1251
  -----------------------------------------------------------------------
1191
-  (0.1ms) SAVEPOINT active_record_1
1192
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1193
-  (0.0ms) SAVEPOINT active_record_1
1194
-  (0.1ms) SAVEPOINT active_record_2
1195
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-07-16 15:51:02.095585"], ["updated_at", "2015-07-16 15:51:02.095585"], ["file_ext", "png"], ["mime_type", "image/png"]]
1196
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1197
-  (0.1ms) SAVEPOINT active_record_2
1198
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-07-16 15:51:02.098177"], ["updated_at", "2015-07-16 15:51:02.098177"], ["file_ext", "png"], ["mime_type", "image/png"]]
1199
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1200
-  (0.1ms) SAVEPOINT active_record_2
1201
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-07-16 15:51:02.100398"], ["updated_at", "2015-07-16 15:51:02.100398"], ["file_ext", "png"], ["mime_type", "image/png"]]
1202
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1252
+  (0.1ms) SAVEPOINT active_record_1
1253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1254
+  (0.0ms) SAVEPOINT active_record_1
1203
1255
   (0.1ms) SAVEPOINT active_record_2
1204
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-07-16 15:51:02.102559"], ["updated_at", "2015-07-16 15:51:02.102559"], ["file_ext", "png"], ["mime_type", "image/png"]]
1256
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-08-16 15:55:27.635219"], ["updated_at", "2015-08-16 15:55:27.635219"], ["file_ext", "png"], ["mime_type", "image/png"]]
1205
1257
   (0.1ms) RELEASE SAVEPOINT active_record_2
1206
- 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
1207
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1208
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1209
-  (0.1ms) ROLLBACK
1210
-  (0.1ms) BEGIN
1211
- -----------------------------------------------------------------------
1212
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1213
- -----------------------------------------------------------------------
1214
-  (0.1ms) SAVEPOINT active_record_1
1215
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1216
-  (0.0ms) SAVEPOINT active_record_1
1217
1258
   (0.1ms) SAVEPOINT active_record_2
1218
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.108389"], ["updated_at", "2015-07-16 15:51:02.108389"], ["file_ext", "png"], ["mime_type", "image/png"]]
1259
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-08-16 15:55:27.637400"], ["updated_at", "2015-08-16 15:55:27.637400"], ["file_ext", "png"], ["mime_type", "image/png"]]
1219
1260
   (0.1ms) RELEASE SAVEPOINT active_record_2
1220
1261
   (0.1ms) SAVEPOINT active_record_2
1221
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.111059"], ["updated_at", "2015-07-16 15:51:02.111059"], ["file_ext", "png"], ["mime_type", "image/png"]]
1262
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-08-16 15:55:27.639621"], ["updated_at", "2015-08-16 15:55:27.639621"], ["file_ext", "png"], ["mime_type", "image/png"]]
1222
1263
   (0.1ms) RELEASE SAVEPOINT active_record_2
1223
1264
   (0.1ms) SAVEPOINT active_record_2
1224
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-07-16 15:51:02.113494"], ["updated_at", "2015-07-16 15:51:02.113494"], ["file_ext", "png"], ["mime_type", "image/png"]]
1265
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-08-16 15:55:27.641728"], ["updated_at", "2015-08-16 15:55:27.641728"], ["file_ext", "png"], ["mime_type", "image/png"]]
1225
1266
   (0.1ms) RELEASE SAVEPOINT active_record_2
1226
-  (0.1ms) SAVEPOINT active_record_2
1227
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-07-16 15:51:02.115695"], ["updated_at", "2015-07-16 15:51:02.115695"], ["file_ext", "png"], ["mime_type", "image/png"]]
1228
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1229
- 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
1230
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1231
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1232
-  (0.1ms) ROLLBACK
1233
-  (0.1ms) BEGIN
1267
+ 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
1268
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1269
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1270
+  (0.1ms) ROLLBACK
1271
+  (0.1ms) BEGIN
1234
1272
  -----------------------------------------------------------------------
1235
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1273
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1236
1274
  -----------------------------------------------------------------------
1237
-  (0.1ms) SAVEPOINT active_record_1
1238
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1239
-  (0.0ms) SAVEPOINT active_record_1
1240
-  (0.1ms) SAVEPOINT active_record_2
1241
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.121584"], ["updated_at", "2015-07-16 15:51:02.121584"], ["file_ext", "png"], ["mime_type", "image/png"]]
1242
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1275
+  (0.1ms) SAVEPOINT active_record_1
1276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1277
+  (0.0ms) SAVEPOINT active_record_1
1243
1278
   (0.1ms) SAVEPOINT active_record_2
1244
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.123785"], ["updated_at", "2015-07-16 15:51:02.123785"], ["file_ext", "png"], ["mime_type", "image/png"]]
1279
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-08-16 15:55:27.646913"], ["updated_at", "2015-08-16 15:55:27.646913"], ["file_ext", "png"], ["mime_type", "image/png"]]
1245
1280
   (0.1ms) RELEASE SAVEPOINT active_record_2
1246
1281
   (0.1ms) SAVEPOINT active_record_2
1247
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.126412"], ["updated_at", "2015-07-16 15:51:02.126412"], ["file_ext", "png"], ["mime_type", "image/png"]]
1282
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-08-16 15:55:27.649025"], ["updated_at", "2015-08-16 15:55:27.649025"], ["file_ext", "png"], ["mime_type", "image/png"]]
1248
1283
   (0.1ms) RELEASE SAVEPOINT active_record_2
1249
1284
   (0.1ms) SAVEPOINT active_record_2
1250
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-07-16 15:51:02.128618"], ["updated_at", "2015-07-16 15:51:02.128618"], ["file_ext", "png"], ["mime_type", "image/png"]]
1285
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-08-16 15:55:27.650950"], ["updated_at", "2015-08-16 15:55:27.650950"], ["file_ext", "png"], ["mime_type", "image/png"]]
1251
1286
   (0.1ms) RELEASE SAVEPOINT active_record_2
1252
- 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
1253
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1254
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1255
-  (0.1ms) ROLLBACK
1256
-  (0.1ms) BEGIN
1257
- -----------------------------------------------------------------------
1258
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1259
- -----------------------------------------------------------------------
1260
-  (0.0ms) SAVEPOINT active_record_1
1261
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1262
-  (0.0ms) SAVEPOINT active_record_1
1263
1287
   (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", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-07-16 15:51:02.134907"], ["updated_at", "2015-07-16 15:51:02.134907"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-08-16 15:55:27.652897"], ["updated_at", "2015-08-16 15:55:27.652897"], ["file_ext", "png"], ["mime_type", "image/png"]]
1265
1289
   (0.1ms) RELEASE SAVEPOINT active_record_2
1290
+ 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
1291
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1292
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1293
+  (0.1ms) ROLLBACK
1294
+  (0.1ms) BEGIN
1295
+ -----------------------------------------------------------------------
1296
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1297
+ -----------------------------------------------------------------------
1298
+  (0.1ms) SAVEPOINT active_record_1
1299
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1300
+  (0.0ms) SAVEPOINT active_record_1
1266
1301
   (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", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-07-16 15:51:02.137110"], ["updated_at", "2015-07-16 15:51:02.137110"], ["file_ext", "png"], ["mime_type", "image/png"]]
1302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-08-16 15:55:27.658445"], ["updated_at", "2015-08-16 15:55:27.658445"], ["file_ext", "png"], ["mime_type", "image/png"]]
1268
1303
   (0.1ms) RELEASE SAVEPOINT active_record_2
1269
1304
   (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", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-07-16 15:51:02.139379"], ["updated_at", "2015-07-16 15:51:02.139379"], ["file_ext", "png"], ["mime_type", "image/png"]]
1305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-08-16 15:55:27.660577"], ["updated_at", "2015-08-16 15:55:27.660577"], ["file_ext", "png"], ["mime_type", "image/png"]]
1271
1306
   (0.1ms) RELEASE SAVEPOINT active_record_2
1272
1307
   (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", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-07-16 15:51:02.141791"], ["updated_at", "2015-07-16 15:51:02.141791"], ["file_ext", "png"], ["mime_type", "image/png"]]
1308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-08-16 15:55:27.662464"], ["updated_at", "2015-08-16 15:55:27.662464"], ["file_ext", "png"], ["mime_type", "image/png"]]
1274
1309
   (0.1ms) RELEASE SAVEPOINT active_record_2
1275
- 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
1276
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1277
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1278
-  (0.1ms) ROLLBACK
1279
-  (0.1ms) BEGIN
1280
- ----------------------------------------------------------------------
1281
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
1282
- ----------------------------------------------------------------------
1283
-  (0.0ms) SAVEPOINT active_record_1
1284
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1285
-  (0.0ms) SAVEPOINT active_record_1
1286
1310
   (0.1ms) SAVEPOINT active_record_2
1287
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.148786"], ["updated_at", "2015-07-16 15:51:02.148786"], ["file_ext", "png"], ["mime_type", "image/png"]]
1311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.664318"], ["updated_at", "2015-08-16 15:55:27.664318"], ["file_ext", "png"], ["mime_type", "image/png"]]
1288
1312
   (0.1ms) RELEASE SAVEPOINT active_record_2
1313
+ 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
1314
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1289
1315
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1290
1316
   (0.1ms) ROLLBACK
1291
1317
   (0.1ms) BEGIN
1292
- ----------------------------------------------------------------------
1293
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
1294
- ----------------------------------------------------------------------
1318
+ -----------------------------------------------------------------------
1319
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1320
+ -----------------------------------------------------------------------
1295
1321
   (0.0ms) SAVEPOINT active_record_1
1296
1322
   (0.0ms) RELEASE SAVEPOINT active_record_1
1297
-  (0.0ms) SAVEPOINT active_record_1
1323
+  (0.1ms) SAVEPOINT active_record_1
1298
1324
   (0.1ms) SAVEPOINT active_record_2
1299
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-07-16 15:51:02.152505"], ["updated_at", "2015-07-16 15:51:02.152505"], ["file_ext", "png"], ["mime_type", "image/png"]]
1325
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.669556"], ["updated_at", "2015-08-16 15:55:27.669556"], ["file_ext", "png"], ["mime_type", "image/png"]]
1300
1326
   (0.1ms) RELEASE SAVEPOINT active_record_2
1301
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1302
-  (0.1ms) ROLLBACK
1303
-  (0.1ms) BEGIN
1304
- ----------------------------------------------------------------------
1305
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
1306
- ----------------------------------------------------------------------
1307
-  (0.0ms) SAVEPOINT active_record_1
1308
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1309
-  (0.0ms) SAVEPOINT active_record_1
1310
-  (0.0ms) SAVEPOINT active_record_2
1311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.156419"], ["updated_at", "2015-07-16 15:51:02.156419"], ["file_ext", "png"], ["mime_type", "image/png"]]
1327
+  (0.1ms) SAVEPOINT active_record_2
1328
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.671841"], ["updated_at", "2015-08-16 15:55:27.671841"], ["file_ext", "png"], ["mime_type", "image/png"]]
1312
1329
   (0.1ms) RELEASE SAVEPOINT active_record_2
1313
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1314
-  (0.1ms) ROLLBACK
1315
-  (0.1ms) BEGIN
1316
- ----------------------------------------------------------------------
1317
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
1318
- ----------------------------------------------------------------------
1319
-  (0.0ms) SAVEPOINT active_record_1
1320
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1321
-  (0.1ms) SAVEPOINT active_record_1
1322
1330
   (0.1ms) SAVEPOINT active_record_2
1323
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.160600"], ["updated_at", "2015-07-16 15:51:02.160600"], ["file_ext", "png"], ["mime_type", "image/png"]]
1331
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.674027"], ["updated_at", "2015-08-16 15:55:27.674027"], ["file_ext", "png"], ["mime_type", "image/png"]]
1324
1332
   (0.1ms) RELEASE SAVEPOINT active_record_2
1325
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1326
-  (0.1ms) ROLLBACK
1327
-  (0.1ms) BEGIN
1328
- ----------------------------------------------------------------------
1329
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
1330
- ----------------------------------------------------------------------
1331
-  (0.1ms) SAVEPOINT active_record_1
1332
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1333
-  (0.1ms) SAVEPOINT active_record_1
1334
1333
   (0.1ms) SAVEPOINT active_record_2
1335
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.165076"], ["updated_at", "2015-07-16 15:51:02.165076"], ["file_ext", "png"], ["mime_type", "image/png"]]
1334
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.676009"], ["updated_at", "2015-08-16 15:55:27.676009"], ["file_ext", "png"], ["mime_type", "image/png"]]
1336
1335
   (0.1ms) RELEASE SAVEPOINT active_record_2
1336
+ 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
1337
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1337
1338
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1338
1339
   (0.1ms) ROLLBACK
1339
-  (0.0ms) BEGIN
1340
- ----------------------------------------------------------------------
1341
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
1342
- ----------------------------------------------------------------------
1340
+  (0.1ms) BEGIN
1341
+ -----------------------------------------------------------------------
1342
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1343
+ -----------------------------------------------------------------------
1343
1344
   (0.0ms) SAVEPOINT active_record_1
1344
1345
   (0.0ms) RELEASE SAVEPOINT active_record_1
1345
1346
   (0.0ms) SAVEPOINT active_record_1
1346
1347
   (0.1ms) SAVEPOINT active_record_2
1347
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.169097"], ["updated_at", "2015-07-16 15:51:02.169097"], ["file_ext", "png"], ["mime_type", "image/png"]]
1348
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.719114"], ["updated_at", "2015-08-16 15:55:27.719114"], ["file_ext", "png"], ["mime_type", "image/png"]]
1349
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1350
+  (0.1ms) SAVEPOINT active_record_2
1351
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.721529"], ["updated_at", "2015-08-16 15:55:27.721529"], ["file_ext", "png"], ["mime_type", "image/png"]]
1352
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1353
+  (0.1ms) SAVEPOINT active_record_2
1354
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.723992"], ["updated_at", "2015-08-16 15:55:27.723992"], ["file_ext", "png"], ["mime_type", "image/png"]]
1348
1355
   (0.1ms) RELEASE SAVEPOINT active_record_2
1349
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1350
-  (0.1ms) ROLLBACK
1351
-  (0.1ms) BEGIN
1352
- ----------------------------------------------------------------------
1353
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
1354
- ----------------------------------------------------------------------
1355
-  (0.0ms) SAVEPOINT active_record_1
1356
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
-  (0.0ms) SAVEPOINT active_record_1
1358
1356
   (0.1ms) SAVEPOINT active_record_2
1359
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-07-16 15:51:02.172688"], ["updated_at", "2015-07-16 15:51:02.172688"], ["file_ext", "png"], ["mime_type", "image/png"]]
1357
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-08-16 15:55:27.726554"], ["updated_at", "2015-08-16 15:55:27.726554"], ["file_ext", "png"], ["mime_type", "image/png"]]
1360
1358
   (0.1ms) RELEASE SAVEPOINT active_record_2
1359
+ 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
1360
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1361
1361
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1362
1362
   (0.1ms) ROLLBACK