push_type_wysiwyg 0.5.0.alpha.2 → 0.5.0.alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,44 +1,56 @@
1
-  (12.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (12.9ms) 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 (20150429164626)
4
+ Migrating to CreatePushTypeUsers (20150601132852)
5
5
   (0.1ms) BEGIN
6
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.4ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164626"]]
6
+ SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132852"]]
9
9
   (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150429164627)
10
+ Migrating to CreatePushTypeNodes (20150601132853)
11
11
   (0.1ms) BEGIN
12
-  (1.8ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164627"]]
14
-  (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150429164628)
12
+  (2.1ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132853"]]
14
+  (0.5ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20150601132854)
16
16
   (0.1ms) BEGIN
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.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
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.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
19
   (0.6ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164628"]]
21
-  (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150429164629)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132854"]]
21
+  (0.5ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150601132855)
23
23
   (0.1ms) BEGIN
24
-  (1.8ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164629"]]
24
+  (2.0ms) 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", "20150601132855"]]
26
26
   (0.5ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150429164630)
27
+ Migrating to CreatePushTypeTaxonomies (20150601132856)
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
+  (1.8ms) 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", "20150429164630"]]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132856"]]
32
32
   (0.4ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150429164631)
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150601132857)
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.6ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
-  (0.5ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150429164631"]]
39
-  (0.4ms) COMMIT
40
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
-  (1.6ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
35
+  (0.5ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
+  (0.8ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
37
+  (0.6ms) CREATE INDEX "taxonomy_desc_idx" ON "push_type_taxonomy_hierarchies" ("descendant_id")
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132857"]]
39
+  (0.5ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20150601132858)
41
+  (0.1ms) BEGIN
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 '{}'
44
+  (0.2ms) UPDATE "push_type_nodes" SET "field_store"='{}' WHERE "field_store" IS NULL
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
47
+  (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
+  (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
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", "20150601132858"]]
51
+  (0.4ms) COMMIT
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
42
54
  FROM pg_constraint c
43
55
  JOIN pg_class t1 ON c.conrelid = t1.oid
44
56
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -49,8 +61,8 @@ WHERE c.contype = 'f'
49
61
  AND t1.relname = 'push_type_assets'
50
62
  AND t3.nspname = ANY (current_schemas(false))
51
63
  ORDER BY c.conname
52
- 
53
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
64
+
65
+  (1.5ms) 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
66
  FROM pg_constraint c
55
67
  JOIN pg_class t1 ON c.conrelid = t1.oid
56
68
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -61,8 +73,8 @@ WHERE c.contype = 'f'
61
73
  AND t1.relname = 'push_type_node_hierarchies'
62
74
  AND t3.nspname = ANY (current_schemas(false))
63
75
  ORDER BY c.conname
64
-
65
-  (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
76
+ 
77
+  (1.5ms) 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
66
78
  FROM pg_constraint c
67
79
  JOIN pg_class t1 ON c.conrelid = t1.oid
68
80
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -73,8 +85,8 @@ WHERE c.contype = 'f'
73
85
  AND t1.relname = 'push_type_nodes'
74
86
  AND t3.nspname = ANY (current_schemas(false))
75
87
  ORDER BY c.conname
76
- 
77
-  (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
88
+
89
+  (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
78
90
  FROM pg_constraint c
79
91
  JOIN pg_class t1 ON c.conrelid = t1.oid
80
92
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -85,8 +97,8 @@ WHERE c.contype = 'f'
85
97
  AND t1.relname = 'push_type_taxonomies'
86
98
  AND t3.nspname = ANY (current_schemas(false))
87
99
  ORDER BY c.conname
88
-
89
-  (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
100
+ 
101
+  (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
90
102
  FROM pg_constraint c
91
103
  JOIN pg_class t1 ON c.conrelid = t1.oid
92
104
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -97,8 +109,8 @@ WHERE c.contype = 'f'
97
109
  AND t1.relname = 'push_type_taxonomy_hierarchies'
98
110
  AND t3.nspname = ANY (current_schemas(false))
99
111
  ORDER BY c.conname
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
112
+
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
102
114
  FROM pg_constraint c
103
115
  JOIN pg_class t1 ON c.conrelid = t1.oid
104
116
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -109,1242 +121,1242 @@ WHERE c.contype = 'f'
109
121
  AND t1.relname = 'push_type_users'
110
122
  AND t3.nspname = ANY (current_schemas(false))
111
123
  ORDER BY c.conname
112
-
113
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
114
-  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
115
-  (1.0ms)  SELECT schemaname || '.' || tablename
124
+ 
125
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
+  (0.9ms)  SELECT schemaname || '.' || tablename
116
128
  FROM pg_tables
117
129
  WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
118
130
  
119
131
   (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
120
-  (10.4ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
132
+  (10.8ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
121
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
122
134
   (0.1ms) BEGIN
123
- -----------------------------------------------------------------------
124
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
125
- -----------------------------------------------------------------------
135
+ ---------------------------------------------------------------------------------------
136
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
137
+ ---------------------------------------------------------------------------------------
126
138
   (0.1ms) SAVEPOINT active_record_1
127
139
   (0.1ms) RELEASE SAVEPOINT active_record_1
128
140
   (0.1ms) SAVEPOINT active_record_1
129
141
   (0.1ms) SAVEPOINT active_record_2
130
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-04-29 16:46:31.807319"], ["updated_at", "2015-04-29 16:46:31.807319"], ["file_ext", "png"], ["mime_type", "image/png"]]
142
+ SQL (0.8ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:57.828751"], ["updated_at", "2015-06-01 13:28:57.828751"], ["file_ext", "png"], ["mime_type", "image/png"]]
131
143
   (0.1ms) RELEASE SAVEPOINT active_record_2
132
144
   (0.1ms) SAVEPOINT active_record_2
133
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-04-29 16:46:31.838604"], ["updated_at", "2015-04-29 16:46:31.838604"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.834360"], ["updated_at", "2015-06-01 13:28:57.834360"], ["file_ext", "png"], ["mime_type", "image/png"]]
134
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
135
147
   (0.1ms) SAVEPOINT active_record_2
136
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-04-29 16:46:31.841290"], ["updated_at", "2015-04-29 16:46:31.841290"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.836813"], ["updated_at", "2015-06-01 13:28:57.836813"], ["file_ext", "png"], ["mime_type", "image/png"]]
137
149
   (0.1ms) RELEASE SAVEPOINT active_record_2
138
150
   (0.1ms) SAVEPOINT active_record_2
139
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-04-29 16:46:31.843569"], ["updated_at", "2015-04-29 16:46:31.843569"], ["file_ext", "png"], ["mime_type", "image/png"]]
140
-  (0.1ms) RELEASE SAVEPOINT active_record_2
141
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
142
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
143
-  (0.1ms) ROLLBACK
144
-  (0.1ms) BEGIN
145
- -----------------------------------------------------------------------
146
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
147
- -----------------------------------------------------------------------
148
-  (0.0ms) SAVEPOINT active_record_1
149
-  (0.0ms) RELEASE SAVEPOINT active_record_1
150
-  (0.0ms) SAVEPOINT active_record_1
151
-  (0.1ms) SAVEPOINT active_record_2
152
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-04-29 16:46:31.849887"], ["updated_at", "2015-04-29 16:46:31.849887"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.838829"], ["updated_at", "2015-06-01 13:28:57.838829"], ["file_ext", "png"], ["mime_type", "image/png"]]
153
152
   (0.1ms) RELEASE SAVEPOINT active_record_2
154
153
   (0.1ms) SAVEPOINT active_record_2
155
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "6"], ["created_at", "2015-04-29 16:46:31.852294"], ["updated_at", "2015-04-29 16:46:31.852294"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.840868"], ["updated_at", "2015-06-01 13:28:57.840868"], ["file_ext", "png"], ["mime_type", "image/png"]]
156
155
   (0.1ms) RELEASE SAVEPOINT active_record_2
157
156
   (0.1ms) SAVEPOINT active_record_2
158
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "7"], ["created_at", "2015-04-29 16:46:31.854375"], ["updated_at", "2015-04-29 16:46:31.854375"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.843171"], ["updated_at", "2015-06-01 13:28:57.843171"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
159
158
   (0.1ms) RELEASE SAVEPOINT active_record_2
160
159
   (0.1ms) SAVEPOINT active_record_2
161
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "8"], ["created_at", "2015-04-29 16:46:31.856762"], ["updated_at", "2015-04-29 16:46:31.856762"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.845287"], ["updated_at", "2015-06-01 13:28:57.845287"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
162
161
   (0.1ms) RELEASE SAVEPOINT active_record_2
163
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
164
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
165
-  (0.1ms) ROLLBACK
166
-  (0.1ms) BEGIN
167
- -----------------------------------------------------------------------
168
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
169
- -----------------------------------------------------------------------
170
-  (0.0ms) SAVEPOINT active_record_1
171
-  (0.0ms) RELEASE SAVEPOINT active_record_1
172
-  (0.0ms) SAVEPOINT active_record_1
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-06-01 13:28:57.847723"], ["updated_at", "2015-06-01 13:28:57.847723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
164
+  (0.1ms) RELEASE SAVEPOINT active_record_2
173
165
   (0.1ms) SAVEPOINT active_record_2
174
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "9"], ["created_at", "2015-04-29 16:46:31.861615"], ["updated_at", "2015-04-29 16:46:31.861615"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.850372"], ["updated_at", "2015-06-01 13:28:57.850372"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
175
167
   (0.1ms) RELEASE SAVEPOINT active_record_2
176
168
   (0.1ms) SAVEPOINT active_record_2
177
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "10"], ["created_at", "2015-04-29 16:46:31.864227"], ["updated_at", "2015-04-29 16:46:31.864227"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.852914"], ["updated_at", "2015-06-01 13:28:57.852914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
178
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
179
171
   (0.1ms) SAVEPOINT active_record_2
180
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "11"], ["created_at", "2015-04-29 16:46:31.866369"], ["updated_at", "2015-04-29 16:46:31.866369"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.855214"], ["updated_at", "2015-06-01 13:28:57.855214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
181
173
   (0.1ms) RELEASE SAVEPOINT active_record_2
182
174
   (0.1ms) SAVEPOINT active_record_2
183
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "12"], ["created_at", "2015-04-29 16:46:31.868384"], ["updated_at", "2015-04-29 16:46:31.868384"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.857479"], ["updated_at", "2015-06-01 13:28:57.857479"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
184
176
   (0.1ms) RELEASE SAVEPOINT active_record_2
185
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
186
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
187
-  (0.1ms) ROLLBACK
188
-  (0.1ms) BEGIN
189
- -----------------------------------------------------------------------
190
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
191
- -----------------------------------------------------------------------
192
-  (0.1ms) SAVEPOINT active_record_1
193
-  (0.0ms) RELEASE SAVEPOINT active_record_1
194
-  (0.0ms) SAVEPOINT active_record_1
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-06-01 13:28:57.859560"], ["updated_at", "2015-06-01 13:28:57.859560"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
179
+  (0.1ms) RELEASE SAVEPOINT active_record_2
195
180
   (0.1ms) SAVEPOINT active_record_2
196
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "13"], ["created_at", "2015-04-29 16:46:31.872651"], ["updated_at", "2015-04-29 16:46:31.872651"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.861603"], ["updated_at", "2015-06-01 13:28:57.861603"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
197
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
198
183
   (0.1ms) SAVEPOINT active_record_2
199
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "14"], ["created_at", "2015-04-29 16:46:31.874924"], ["updated_at", "2015-04-29 16:46:31.874924"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.863832"], ["updated_at", "2015-06-01 13:28:57.863832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
200
185
   (0.1ms) RELEASE SAVEPOINT active_record_2
201
186
   (0.1ms) SAVEPOINT active_record_2
202
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "15"], ["created_at", "2015-04-29 16:46:31.877178"], ["updated_at", "2015-04-29 16:46:31.877178"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.866142"], ["updated_at", "2015-06-01 13:28:57.866142"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
203
188
   (0.1ms) RELEASE SAVEPOINT active_record_2
204
189
   (0.1ms) SAVEPOINT active_record_2
205
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "16"], ["created_at", "2015-04-29 16:46:31.879197"], ["updated_at", "2015-04-29 16:46:31.879197"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.868534"], ["updated_at", "2015-06-01 13:28:57.868534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
206
191
   (0.1ms) RELEASE SAVEPOINT active_record_2
207
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
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-06-01 13:28:57.870746"], ["updated_at", "2015-06-01 13:28:57.870746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
194
+  (0.1ms) RELEASE SAVEPOINT active_record_2
195
+ Processing by PushType::WysiwygMediaController#index as JSON
196
+ Parameters: {"filter"=>"image"}
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 LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
198
+  (0.2ms) 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.4ms | ActiveRecord: 0.9ms)
208
200
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
209
201
   (0.1ms) ROLLBACK
210
202
   (0.1ms) BEGIN
211
- -----------------------------------------------------------------------
212
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
213
- -----------------------------------------------------------------------
214
-  (0.1ms) SAVEPOINT active_record_1
203
+ ---------------------------------------------------------------------------------------
204
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
205
+ ---------------------------------------------------------------------------------------
206
+  (0.0ms) SAVEPOINT active_record_1
215
207
   (0.0ms) RELEASE SAVEPOINT active_record_1
216
-  (0.1ms) SAVEPOINT active_record_1
217
-  (0.1ms) SAVEPOINT active_record_2
218
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "17"], ["created_at", "2015-04-29 16:46:31.883618"], ["updated_at", "2015-04-29 16:46:31.883618"], ["file_ext", "png"], ["mime_type", "image/png"]]
219
-  (0.1ms) RELEASE SAVEPOINT active_record_2
220
-  (0.1ms) SAVEPOINT active_record_2
221
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "18"], ["created_at", "2015-04-29 16:46:31.885861"], ["updated_at", "2015-04-29 16:46:31.885861"], ["file_ext", "png"], ["mime_type", "image/png"]]
222
-  (0.1ms) RELEASE SAVEPOINT active_record_2
208
+  (0.0ms) SAVEPOINT active_record_1
223
209
   (0.1ms) SAVEPOINT active_record_2
224
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-04-29 16:46:31.887859"], ["updated_at", "2015-04-29 16:46:31.887859"], ["file_ext", "png"], ["mime_type", "image/png"]]
210
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:57.890817"], ["updated_at", "2015-06-01 13:28:57.890817"], ["file_ext", "png"], ["mime_type", "image/png"]]
225
211
   (0.1ms) RELEASE SAVEPOINT active_record_2
226
212
   (0.1ms) SAVEPOINT active_record_2
227
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-04-29 16:46:31.889835"], ["updated_at", "2015-04-29 16:46:31.889835"], ["file_ext", "png"], ["mime_type", "image/png"]]
228
-  (0.1ms) RELEASE SAVEPOINT active_record_2
229
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
230
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
231
-  (0.1ms) ROLLBACK
232
-  (0.1ms) BEGIN
233
- ----------------------------------------------------------------------------------
234
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
235
- ----------------------------------------------------------------------------------
236
-  (0.1ms) SAVEPOINT active_record_1
237
-  (0.0ms) RELEASE SAVEPOINT active_record_1
238
-  (0.0ms) SAVEPOINT active_record_1
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", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-04-29 16:46:31.895068"], ["updated_at", "2015-04-29 16:46:31.895068"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.893043"], ["updated_at", "2015-06-01 13:28:57.893043"], ["file_ext", "png"], ["mime_type", "image/png"]]
241
214
   (0.1ms) RELEASE SAVEPOINT active_record_2
242
215
   (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", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-04-29 16:46:31.897525"], ["updated_at", "2015-04-29 16:46:31.897525"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.895138"], ["updated_at", "2015-06-01 13:28:57.895138"], ["file_ext", "png"], ["mime_type", "image/png"]]
244
217
   (0.1ms) RELEASE SAVEPOINT active_record_2
245
218
   (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", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-04-29 16:46:31.899476"], ["updated_at", "2015-04-29 16:46:31.899476"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.897302"], ["updated_at", "2015-06-01 13:28:57.897302"], ["file_ext", "png"], ["mime_type", "image/png"]]
247
220
   (0.1ms) RELEASE SAVEPOINT active_record_2
248
221
   (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", "image.png"], ["file_size", 2643], ["file_uid", "24"], ["created_at", "2015-04-29 16:46:31.901545"], ["updated_at", "2015-04-29 16:46:31.901545"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.899460"], ["updated_at", "2015-06-01 13:28:57.899460"], ["file_ext", "png"], ["mime_type", "image/png"]]
250
223
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
224
   (0.1ms) SAVEPOINT active_record_2
252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "25"], ["created_at", "2015-04-29 16:46:31.903604"], ["updated_at", "2015-04-29 16:46:31.903604"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.901889"], ["updated_at", "2015-06-01 13:28:57.901889"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
226
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
227
   (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", "26"], ["created_at", "2015-04-29 16:46:31.905876"], ["updated_at", "2015-04-29 16:46:31.905876"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
228
+ 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", "25"], ["created_at", "2015-06-01 13:28:57.931140"], ["updated_at", "2015-06-01 13:28:57.931140"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
229
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
230
   (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", "27"], ["created_at", "2015-04-29 16:46:31.908004"], ["updated_at", "2015-04-29 16:46:31.908004"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.933744"], ["updated_at", "2015-06-01 13:28:57.933744"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
232
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
233
   (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", "28"], ["created_at", "2015-04-29 16:46:31.910154"], ["updated_at", "2015-04-29 16:46:31.910154"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.936050"], ["updated_at", "2015-06-01 13:28:57.936050"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
235
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
236
   (0.1ms) SAVEPOINT active_record_2
264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-04-29 16:46:31.912333"], ["updated_at", "2015-04-29 16:46:31.912333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.938230"], ["updated_at", "2015-06-01 13:28:57.938230"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
265
238
   (0.1ms) RELEASE SAVEPOINT active_record_2
266
239
   (0.1ms) SAVEPOINT active_record_2
267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-04-29 16:46:31.914440"], ["updated_at", "2015-04-29 16:46:31.914440"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.940334"], ["updated_at", "2015-06-01 13:28:57.940334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
268
241
   (0.1ms) RELEASE SAVEPOINT active_record_2
269
242
   (0.1ms) SAVEPOINT active_record_2
270
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-04-29 16:46:31.916505"], ["updated_at", "2015-04-29 16:46:31.916505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.942763"], ["updated_at", "2015-06-01 13:28:57.942763"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
271
244
   (0.1ms) RELEASE SAVEPOINT active_record_2
272
245
   (0.1ms) SAVEPOINT active_record_2
273
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-04-29 16:46:31.918655"], ["updated_at", "2015-04-29 16:46:31.918655"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.945168"], ["updated_at", "2015-06-01 13:28:57.945168"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
274
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
275
248
   (0.1ms) SAVEPOINT active_record_2
276
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-04-29 16:46:31.920718"], ["updated_at", "2015-04-29 16:46:31.920718"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.947850"], ["updated_at", "2015-06-01 13:28:57.947850"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
277
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
278
251
   (0.1ms) SAVEPOINT active_record_2
279
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-04-29 16:46:31.922930"], ["updated_at", "2015-04-29 16:46:31.922930"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
252
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-06-01 13:28:57.950128"], ["updated_at", "2015-06-01 13:28:57.950128"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
280
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
281
254
   (0.1ms) SAVEPOINT active_record_2
282
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-04-29 16:46:31.925106"], ["updated_at", "2015-04-29 16:46:31.925106"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.952296"], ["updated_at", "2015-06-01 13:28:57.952296"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
283
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
284
257
   (0.1ms) SAVEPOINT active_record_2
285
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-04-29 16:46:31.927269"], ["updated_at", "2015-04-29 16:46:31.927269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
258
+ 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", "35"], ["created_at", "2015-06-01 13:28:57.954675"], ["updated_at", "2015-06-01 13:28:57.954675"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
286
259
   (0.1ms) RELEASE SAVEPOINT active_record_2
287
260
   (0.1ms) SAVEPOINT active_record_2
288
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "37"], ["created_at", "2015-04-29 16:46:31.929536"], ["updated_at", "2015-04-29 16:46:31.929536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.957039"], ["updated_at", "2015-06-01 13:28:57.957039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
289
262
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
+ Processing by PushType::WysiwygMediaController#index as JSON
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 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
268
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
269
+  (0.1ms) ROLLBACK
270
+  (0.1ms) BEGIN
271
+ ---------------------------------------------------------------------------------------
272
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
273
+ ---------------------------------------------------------------------------------------
274
+  (0.1ms) SAVEPOINT active_record_1
275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
276
+  (0.0ms) SAVEPOINT active_record_1
290
277
   (0.1ms) SAVEPOINT active_record_2
291
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "38"], ["created_at", "2015-04-29 16:46:31.931633"], ["updated_at", "2015-04-29 16:46:31.931633"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.966034"], ["updated_at", "2015-06-01 13:28:57.966034"], ["file_ext", "png"], ["mime_type", "image/png"]]
292
279
   (0.1ms) RELEASE SAVEPOINT active_record_2
293
- Processing by PushType::WysiwygMediaController#index as JSON
294
- Parameters: {"filter"=>"file", "page"=>2}
295
- PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
296
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
297
- Completed 200 OK in 85ms (Views: 0.2ms | ActiveRecord: 0.9ms)
298
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
299
-  (0.1ms) ROLLBACK
300
-  (0.1ms) BEGIN
301
- ----------------------------------------------------------------------------------
302
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
303
- ----------------------------------------------------------------------------------
304
-  (0.1ms) SAVEPOINT active_record_1
305
-  (0.0ms) RELEASE SAVEPOINT active_record_1
306
-  (0.0ms) SAVEPOINT active_record_1
307
280
   (0.1ms) SAVEPOINT active_record_2
308
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-04-29 16:46:32.024382"], ["updated_at", "2015-04-29 16:46:32.024382"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.968350"], ["updated_at", "2015-06-01 13:28:57.968350"], ["file_ext", "png"], ["mime_type", "image/png"]]
309
282
   (0.1ms) RELEASE SAVEPOINT active_record_2
310
283
   (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", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-04-29 16:46:32.027308"], ["updated_at", "2015-04-29 16:46:32.027308"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.970655"], ["updated_at", "2015-06-01 13:28:57.970655"], ["file_ext", "png"], ["mime_type", "image/png"]]
312
285
   (0.1ms) RELEASE SAVEPOINT active_record_2
313
286
   (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", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-04-29 16:46:32.029406"], ["updated_at", "2015-04-29 16:46:32.029406"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.972694"], ["updated_at", "2015-06-01 13:28:57.972694"], ["file_ext", "png"], ["mime_type", "image/png"]]
315
288
   (0.1ms) RELEASE SAVEPOINT active_record_2
316
289
   (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", "image.png"], ["file_size", 2643], ["file_uid", "42"], ["created_at", "2015-04-29 16:46:32.031358"], ["updated_at", "2015-04-29 16:46:32.031358"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.974846"], ["updated_at", "2015-06-01 13:28:57.974846"], ["file_ext", "png"], ["mime_type", "image/png"]]
318
291
   (0.1ms) RELEASE SAVEPOINT active_record_2
319
292
   (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", "image.png"], ["file_size", 2643], ["file_uid", "43"], ["created_at", "2015-04-29 16:46:32.033321"], ["updated_at", "2015-04-29 16:46:32.033321"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:57.977048"], ["updated_at", "2015-06-01 13:28:57.977048"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
294
   (0.1ms) RELEASE SAVEPOINT active_record_2
322
295
   (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", "44"], ["created_at", "2015-04-29 16:46:32.035335"], ["updated_at", "2015-04-29 16:46:32.035335"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.979293"], ["updated_at", "2015-06-01 13:28:57.979293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
297
   (0.1ms) RELEASE SAVEPOINT active_record_2
325
298
   (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", "45"], ["created_at", "2015-04-29 16:46:32.037329"], ["updated_at", "2015-04-29 16:46:32.037329"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
299
+ 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", "44"], ["created_at", "2015-06-01 13:28:57.982120"], ["updated_at", "2015-06-01 13:28:57.982120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
300
   (0.1ms) RELEASE SAVEPOINT active_record_2
328
301
   (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", "46"], ["created_at", "2015-04-29 16:46:32.039385"], ["updated_at", "2015-04-29 16:46:32.039385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.985021"], ["updated_at", "2015-06-01 13:28:57.985021"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
303
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
304
   (0.1ms) SAVEPOINT active_record_2
332
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-04-29 16:46:32.041345"], ["updated_at", "2015-04-29 16:46:32.041345"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.987585"], ["updated_at", "2015-06-01 13:28:57.987585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
333
306
   (0.1ms) RELEASE SAVEPOINT active_record_2
334
307
   (0.1ms) SAVEPOINT active_record_2
335
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-04-29 16:46:32.043260"], ["updated_at", "2015-04-29 16:46:32.043260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.989766"], ["updated_at", "2015-06-01 13:28:57.989766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
336
309
   (0.1ms) RELEASE SAVEPOINT active_record_2
337
310
   (0.1ms) SAVEPOINT active_record_2
338
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-04-29 16:46:32.045243"], ["updated_at", "2015-04-29 16:46:32.045243"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.991931"], ["updated_at", "2015-06-01 13:28:57.991931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
339
312
   (0.1ms) RELEASE SAVEPOINT active_record_2
340
313
   (0.1ms) SAVEPOINT active_record_2
341
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-04-29 16:46:32.047159"], ["updated_at", "2015-04-29 16:46:32.047159"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.994088"], ["updated_at", "2015-06-01 13:28:57.994088"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
342
315
   (0.1ms) RELEASE SAVEPOINT active_record_2
343
316
   (0.1ms) SAVEPOINT active_record_2
344
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-04-29 16:46:32.049218"], ["updated_at", "2015-04-29 16:46:32.049218"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.996337"], ["updated_at", "2015-06-01 13:28:57.996337"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
345
318
   (0.1ms) RELEASE SAVEPOINT active_record_2
346
319
   (0.1ms) SAVEPOINT active_record_2
347
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-04-29 16:46:32.051265"], ["updated_at", "2015-04-29 16:46:32.051265"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:57.998992"], ["updated_at", "2015-06-01 13:28:57.998992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
348
321
   (0.1ms) RELEASE SAVEPOINT active_record_2
349
322
   (0.1ms) SAVEPOINT active_record_2
350
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-04-29 16:46:32.053290"], ["updated_at", "2015-04-29 16:46:32.053290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.001388"], ["updated_at", "2015-06-01 13:28:58.001388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
351
324
   (0.1ms) RELEASE SAVEPOINT active_record_2
352
325
   (0.1ms) SAVEPOINT active_record_2
353
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-04-29 16:46:32.055174"], ["updated_at", "2015-04-29 16:46:32.055174"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.003613"], ["updated_at", "2015-06-01 13:28:58.003613"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
354
327
   (0.1ms) RELEASE SAVEPOINT active_record_2
355
328
   (0.1ms) SAVEPOINT active_record_2
356
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "55"], ["created_at", "2015-04-29 16:46:32.057251"], ["updated_at", "2015-04-29 16:46:32.057251"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.005757"], ["updated_at", "2015-06-01 13:28:58.005757"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
357
330
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
+ Processing by PushType::WysiwygMediaController#index as JSON
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.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
335
+ Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)
336
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
337
+  (0.2ms) ROLLBACK
338
+  (0.1ms) BEGIN
339
+ ---------------------------------------------------------------------------------------
340
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
341
+ ---------------------------------------------------------------------------------------
342
+  (0.1ms) SAVEPOINT active_record_1
343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
344
+  (0.0ms) SAVEPOINT active_record_1
358
345
   (0.1ms) SAVEPOINT active_record_2
359
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "56"], ["created_at", "2015-04-29 16:46:32.059554"], ["updated_at", "2015-04-29 16:46:32.059554"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.016253"], ["updated_at", "2015-06-01 13:28:58.016253"], ["file_ext", "png"], ["mime_type", "image/png"]]
360
347
   (0.1ms) RELEASE SAVEPOINT active_record_2
361
- Processing by PushType::WysiwygMediaController#index as JSON
362
- Parameters: {"filter"=>"file", "page"=>2}
363
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
364
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
365
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
366
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
367
-  (0.2ms) ROLLBACK
368
-  (0.1ms) BEGIN
369
- ----------------------------------------------------------------------------------
370
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
371
- ----------------------------------------------------------------------------------
372
-  (0.1ms) SAVEPOINT active_record_1
373
-  (0.0ms) RELEASE SAVEPOINT active_record_1
374
-  (0.0ms) SAVEPOINT active_record_1
375
348
   (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", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-04-29 16:46:32.067867"], ["updated_at", "2015-04-29 16:46:32.067867"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:58.018646"], ["updated_at", "2015-06-01 13:28:58.018646"], ["file_ext", "png"], ["mime_type", "image/png"]]
377
350
   (0.1ms) RELEASE SAVEPOINT active_record_2
378
351
   (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", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-04-29 16:46:32.069929"], ["updated_at", "2015-04-29 16:46:32.069929"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:58.021251"], ["updated_at", "2015-06-01 13:28:58.021251"], ["file_ext", "png"], ["mime_type", "image/png"]]
380
353
   (0.1ms) RELEASE SAVEPOINT active_record_2
381
354
   (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", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-04-29 16:46:32.071908"], ["updated_at", "2015-04-29 16:46:32.071908"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:58.023493"], ["updated_at", "2015-06-01 13:28:58.023493"], ["file_ext", "png"], ["mime_type", "image/png"]]
383
356
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
357
   (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", "image.png"], ["file_size", 2643], ["file_uid", "60"], ["created_at", "2015-04-29 16:46:32.073811"], ["updated_at", "2015-04-29 16:46:32.073811"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:58.025615"], ["updated_at", "2015-06-01 13:28:58.025615"], ["file_ext", "png"], ["mime_type", "image/png"]]
386
359
   (0.1ms) RELEASE SAVEPOINT active_record_2
387
360
   (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", "image.png"], ["file_size", 2643], ["file_uid", "61"], ["created_at", "2015-04-29 16:46:32.075726"], ["updated_at", "2015-04-29 16:46:32.075726"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:58.027743"], ["updated_at", "2015-06-01 13:28:58.027743"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
362
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
363
   (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", "62"], ["created_at", "2015-04-29 16:46:32.077936"], ["updated_at", "2015-04-29 16:46:32.077936"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.029887"], ["updated_at", "2015-06-01 13:28:58.029887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
365
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
366
   (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", "63"], ["created_at", "2015-04-29 16:46:32.079996"], ["updated_at", "2015-04-29 16:46:32.079996"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.032170"], ["updated_at", "2015-06-01 13:28:58.032170"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
369
   (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", "64"], ["created_at", "2015-04-29 16:46:32.081991"], ["updated_at", "2015-04-29 16:46:32.081991"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.034639"], ["updated_at", "2015-06-01 13:28:58.034639"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
371
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
372
   (0.1ms) SAVEPOINT active_record_2
400
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-04-29 16:46:32.084031"], ["updated_at", "2015-04-29 16:46:32.084031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.036829"], ["updated_at", "2015-06-01 13:28:58.036829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
401
374
   (0.1ms) RELEASE SAVEPOINT active_record_2
402
375
   (0.1ms) SAVEPOINT active_record_2
403
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-04-29 16:46:32.086001"], ["updated_at", "2015-04-29 16:46:32.086001"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.038911"], ["updated_at", "2015-06-01 13:28:58.038911"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
404
377
   (0.1ms) RELEASE SAVEPOINT active_record_2
405
378
   (0.1ms) SAVEPOINT active_record_2
406
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-04-29 16:46:32.088007"], ["updated_at", "2015-04-29 16:46:32.088007"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.041131"], ["updated_at", "2015-06-01 13:28:58.041131"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
407
380
   (0.1ms) RELEASE SAVEPOINT active_record_2
408
381
   (0.1ms) SAVEPOINT active_record_2
409
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-04-29 16:46:32.090119"], ["updated_at", "2015-04-29 16:46:32.090119"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.043528"], ["updated_at", "2015-06-01 13:28:58.043528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
410
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
411
384
   (0.1ms) SAVEPOINT active_record_2
412
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-04-29 16:46:32.092245"], ["updated_at", "2015-04-29 16:46:32.092245"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.045938"], ["updated_at", "2015-06-01 13:28:58.045938"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
413
386
   (0.1ms) RELEASE SAVEPOINT active_record_2
414
387
   (0.1ms) SAVEPOINT active_record_2
415
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-04-29 16:46:32.094380"], ["updated_at", "2015-04-29 16:46:32.094380"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
388
+ 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", "69"], ["created_at", "2015-06-01 13:28:58.048143"], ["updated_at", "2015-06-01 13:28:58.048143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
416
389
   (0.1ms) RELEASE SAVEPOINT active_record_2
417
390
   (0.1ms) SAVEPOINT active_record_2
418
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-04-29 16:46:32.096411"], ["updated_at", "2015-04-29 16:46:32.096411"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.051176"], ["updated_at", "2015-06-01 13:28:58.051176"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
419
392
   (0.1ms) RELEASE SAVEPOINT active_record_2
420
393
   (0.1ms) SAVEPOINT active_record_2
421
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-04-29 16:46:32.098399"], ["updated_at", "2015-04-29 16:46:32.098399"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.053935"], ["updated_at", "2015-06-01 13:28:58.053935"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
422
395
   (0.1ms) RELEASE SAVEPOINT active_record_2
423
396
   (0.1ms) SAVEPOINT active_record_2
424
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "73"], ["created_at", "2015-04-29 16:46:32.100504"], ["updated_at", "2015-04-29 16:46:32.100504"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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-06-01 13:28:58.056565"], ["updated_at", "2015-06-01 13:28:58.056565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
425
398
   (0.1ms) RELEASE SAVEPOINT active_record_2
426
-  (0.1ms) SAVEPOINT active_record_2
427
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "74"], ["created_at", "2015-04-29 16:46:32.102717"], ["updated_at", "2015-04-29 16:46:32.102717"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
428
-  (0.1ms) RELEASE SAVEPOINT active_record_2
429
399
  Processing by PushType::WysiwygMediaController#index as JSON
430
- Parameters: {"filter"=>"file", "page"=>2}
431
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
432
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
433
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
434
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
435
-  (0.1ms) ROLLBACK
436
-  (0.1ms) BEGIN
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 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
404
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
405
+  (0.1ms) ROLLBACK
406
+  (0.1ms) BEGIN
437
407
  ----------------------------------------------------------------------------------
438
408
  PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
439
409
  ----------------------------------------------------------------------------------
440
-  (0.1ms) SAVEPOINT active_record_1
441
-  (0.1ms) RELEASE SAVEPOINT active_record_1
442
-  (0.1ms) SAVEPOINT active_record_1
443
-  (0.1ms) SAVEPOINT active_record_2
444
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-04-29 16:46:32.110611"], ["updated_at", "2015-04-29 16:46:32.110611"], ["file_ext", "png"], ["mime_type", "image/png"]]
445
-  (0.1ms) RELEASE SAVEPOINT active_record_2
410
+  (0.1ms) SAVEPOINT active_record_1
411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
412
+  (0.1ms) SAVEPOINT active_record_1
446
413
   (0.1ms) SAVEPOINT active_record_2
447
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-04-29 16:46:32.112685"], ["updated_at", "2015-04-29 16:46:32.112685"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06-01 13:28:58.066910"], ["updated_at", "2015-06-01 13:28:58.066910"], ["file_ext", "png"], ["mime_type", "image/png"]]
448
415
   (0.1ms) RELEASE SAVEPOINT active_record_2
449
416
   (0.1ms) SAVEPOINT active_record_2
450
- SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-04-29 16:46:32.114767"], ["updated_at", "2015-04-29 16:46:32.114767"], ["file_ext", "png"], ["mime_type", "image/png"]]
417
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.069230"], ["updated_at", "2015-06-01 13:28:58.069230"], ["file_ext", "png"], ["mime_type", "image/png"]]
451
418
   (0.1ms) RELEASE SAVEPOINT active_record_2
452
419
   (0.1ms) SAVEPOINT active_record_2
453
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-04-29 16:46:32.116965"], ["updated_at", "2015-04-29 16:46:32.116965"], ["file_ext", "png"], ["mime_type", "image/png"]]
420
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.071535"], ["updated_at", "2015-06-01 13:28:58.071535"], ["file_ext", "png"], ["mime_type", "image/png"]]
454
421
   (0.1ms) RELEASE SAVEPOINT active_record_2
455
422
   (0.1ms) SAVEPOINT active_record_2
456
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-04-29 16:46:32.118969"], ["updated_at", "2015-04-29 16:46:32.118969"], ["file_ext", "png"], ["mime_type", "image/png"]]
423
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-06-01 13:28:58.073696"], ["updated_at", "2015-06-01 13:28:58.073696"], ["file_ext", "png"], ["mime_type", "image/png"]]
457
424
   (0.1ms) RELEASE SAVEPOINT active_record_2
458
425
   (0.1ms) SAVEPOINT active_record_2
459
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-04-29 16:46:32.121107"], ["updated_at", "2015-04-29 16:46:32.121107"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
426
+ 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-06-01 13:28:58.075850"], ["updated_at", "2015-06-01 13:28:58.075850"], ["file_ext", "png"], ["mime_type", "image/png"]]
460
427
   (0.1ms) RELEASE SAVEPOINT active_record_2
461
428
   (0.1ms) SAVEPOINT active_record_2
462
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-04-29 16:46:32.123344"], ["updated_at", "2015-04-29 16:46:32.123344"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
429
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-06-01 13:28:58.078330"], ["updated_at", "2015-06-01 13:28:58.078330"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
463
430
   (0.1ms) RELEASE SAVEPOINT active_record_2
464
431
   (0.1ms) SAVEPOINT active_record_2
465
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-04-29 16:46:32.125360"], ["updated_at", "2015-04-29 16:46:32.125360"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
432
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-06-01 13:28:58.080496"], ["updated_at", "2015-06-01 13:28:58.080496"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
466
433
   (0.1ms) RELEASE SAVEPOINT active_record_2
467
434
   (0.1ms) SAVEPOINT active_record_2
468
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-04-29 16:46:32.127424"], ["updated_at", "2015-04-29 16:46:32.127424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
435
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-06-01 13:28:58.082668"], ["updated_at", "2015-06-01 13:28:58.082668"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
469
436
   (0.1ms) RELEASE SAVEPOINT active_record_2
470
437
   (0.1ms) SAVEPOINT active_record_2
471
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-04-29 16:46:32.129403"], ["updated_at", "2015-04-29 16:46:32.129403"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
438
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-06-01 13:28:58.084759"], ["updated_at", "2015-06-01 13:28:58.084759"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
472
439
   (0.1ms) RELEASE SAVEPOINT active_record_2
473
440
   (0.1ms) SAVEPOINT active_record_2
474
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-04-29 16:46:32.131622"], ["updated_at", "2015-04-29 16:46:32.131622"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
441
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-06-01 13:28:58.086940"], ["updated_at", "2015-06-01 13:28:58.086940"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
475
442
   (0.1ms) RELEASE SAVEPOINT active_record_2
476
443
   (0.1ms) SAVEPOINT active_record_2
477
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-04-29 16:46:32.133597"], ["updated_at", "2015-04-29 16:46:32.133597"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
444
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-06-01 13:28:58.089154"], ["updated_at", "2015-06-01 13:28:58.089154"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
478
445
   (0.1ms) RELEASE SAVEPOINT active_record_2
479
446
   (0.1ms) SAVEPOINT active_record_2
480
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-04-29 16:46:32.135545"], ["updated_at", "2015-04-29 16:46:32.135545"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
447
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-06-01 13:28:58.091255"], ["updated_at", "2015-06-01 13:28:58.091255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
481
448
   (0.1ms) RELEASE SAVEPOINT active_record_2
482
449
   (0.1ms) SAVEPOINT active_record_2
483
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-04-29 16:46:32.137549"], ["updated_at", "2015-04-29 16:46:32.137549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
450
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-06-01 13:28:58.093295"], ["updated_at", "2015-06-01 13:28:58.093295"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
484
451
   (0.1ms) RELEASE SAVEPOINT active_record_2
485
452
   (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", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-04-29 16:46:32.153674"], ["updated_at", "2015-04-29 16:46:32.153674"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
453
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-06-01 13:28:58.095263"], ["updated_at", "2015-06-01 13:28:58.095263"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
487
454
   (0.1ms) RELEASE SAVEPOINT active_record_2
488
455
   (0.1ms) SAVEPOINT active_record_2
489
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-04-29 16:46:32.155864"], ["updated_at", "2015-04-29 16:46:32.155864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
456
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-06-01 13:28:58.097292"], ["updated_at", "2015-06-01 13:28:58.097292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
490
457
   (0.1ms) RELEASE SAVEPOINT active_record_2
491
458
   (0.1ms) SAVEPOINT active_record_2
492
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-04-29 16:46:32.158076"], ["updated_at", "2015-04-29 16:46:32.158076"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
459
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-06-01 13:28:58.099488"], ["updated_at", "2015-06-01 13:28:58.099488"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
493
460
   (0.1ms) RELEASE SAVEPOINT active_record_2
494
461
   (0.1ms) SAVEPOINT active_record_2
495
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "92"], ["created_at", "2015-04-29 16:46:32.160134"], ["updated_at", "2015-04-29 16:46:32.160134"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
462
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-06-01 13:28:58.101708"], ["updated_at", "2015-06-01 13:28:58.101708"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
496
463
   (0.1ms) RELEASE SAVEPOINT active_record_2
497
- Processing by PushType::WysiwygMediaController#index as JSON
498
- Parameters: {"filter"=>"file", "page"=>2}
499
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
500
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
501
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
502
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
503
-  (0.1ms) ROLLBACK
504
-  (0.1ms) BEGIN
505
- ---------------------------------------------------------------------------------------
506
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
507
- ---------------------------------------------------------------------------------------
508
-  (0.1ms) SAVEPOINT active_record_1
509
-  (0.1ms) RELEASE SAVEPOINT active_record_1
510
-  (0.1ms) SAVEPOINT active_record_1
511
464
   (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", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-04-29 16:46:32.169011"], ["updated_at", "2015-04-29 16:46:32.169011"], ["file_ext", "png"], ["mime_type", "image/png"]]
465
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-06-01 13:28:58.103808"], ["updated_at", "2015-06-01 13:28:58.103808"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
466
   (0.1ms) RELEASE SAVEPOINT active_record_2
467
+ Processing by PushType::WysiwygMediaController#index as JSON
468
+ Parameters: {"filter"=>"file", "page"=>2}
469
+ 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
470
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
471
+ Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.6ms)
472
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
473
+  (0.1ms) ROLLBACK
474
+  (0.1ms) BEGIN
475
+ ----------------------------------------------------------------------------------
476
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
477
+ ----------------------------------------------------------------------------------
478
+  (0.1ms) SAVEPOINT active_record_1
479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
480
+  (0.1ms) SAVEPOINT active_record_1
514
481
   (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", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-04-29 16:46:32.171120"], ["updated_at", "2015-04-29 16:46:32.171120"], ["file_ext", "png"], ["mime_type", "image/png"]]
482
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "91"], ["created_at", "2015-06-01 13:28:58.186959"], ["updated_at", "2015-06-01 13:28:58.186959"], ["file_ext", "png"], ["mime_type", "image/png"]]
516
483
   (0.1ms) RELEASE SAVEPOINT active_record_2
517
484
   (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", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-04-29 16:46:32.173143"], ["updated_at", "2015-04-29 16:46:32.173143"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "92"], ["created_at", "2015-06-01 13:28:58.189502"], ["updated_at", "2015-06-01 13:28:58.189502"], ["file_ext", "png"], ["mime_type", "image/png"]]
519
486
   (0.1ms) RELEASE SAVEPOINT active_record_2
520
487
   (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", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-04-29 16:46:32.175063"], ["updated_at", "2015-04-29 16:46:32.175063"], ["file_ext", "png"], ["mime_type", "image/png"]]
488
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-06-01 13:28:58.191789"], ["updated_at", "2015-06-01 13:28:58.191789"], ["file_ext", "png"], ["mime_type", "image/png"]]
522
489
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
490
   (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", "image.png"], ["file_size", 2643], ["file_uid", "97"], ["created_at", "2015-04-29 16:46:32.177063"], ["updated_at", "2015-04-29 16:46:32.177063"], ["file_ext", "png"], ["mime_type", "image/png"]]
491
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-06-01 13:28:58.194098"], ["updated_at", "2015-06-01 13:28:58.194098"], ["file_ext", "png"], ["mime_type", "image/png"]]
525
492
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
493
   (0.1ms) SAVEPOINT active_record_2
527
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-04-29 16:46:32.179254"], ["updated_at", "2015-04-29 16:46:32.179254"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
494
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-06-01 13:28:58.196206"], ["updated_at", "2015-06-01 13:28:58.196206"], ["file_ext", "png"], ["mime_type", "image/png"]]
528
495
   (0.1ms) RELEASE SAVEPOINT active_record_2
529
496
   (0.1ms) SAVEPOINT active_record_2
530
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-04-29 16:46:32.181693"], ["updated_at", "2015-04-29 16:46:32.181693"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "96"], ["created_at", "2015-06-01 13:28:58.198311"], ["updated_at", "2015-06-01 13:28:58.198311"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
531
498
   (0.1ms) RELEASE SAVEPOINT active_record_2
532
499
   (0.1ms) SAVEPOINT active_record_2
533
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-04-29 16:46:32.184029"], ["updated_at", "2015-04-29 16:46:32.184029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "97"], ["created_at", "2015-06-01 13:28:58.200347"], ["updated_at", "2015-06-01 13:28:58.200347"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
534
501
   (0.1ms) RELEASE SAVEPOINT active_record_2
535
502
   (0.1ms) SAVEPOINT active_record_2
536
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-04-29 16:46:32.186293"], ["updated_at", "2015-04-29 16:46:32.186293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "98"], ["created_at", "2015-06-01 13:28:58.202540"], ["updated_at", "2015-06-01 13:28:58.202540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
537
504
   (0.1ms) RELEASE SAVEPOINT active_record_2
538
505
   (0.1ms) SAVEPOINT active_record_2
539
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-04-29 16:46:32.188800"], ["updated_at", "2015-04-29 16:46:32.188800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "99"], ["created_at", "2015-06-01 13:28:58.204721"], ["updated_at", "2015-06-01 13:28:58.204721"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
540
507
   (0.1ms) RELEASE SAVEPOINT active_record_2
541
508
   (0.1ms) SAVEPOINT active_record_2
542
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-04-29 16:46:32.191453"], ["updated_at", "2015-04-29 16:46:32.191453"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
509
+ 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", "100"], ["created_at", "2015-06-01 13:28:58.207120"], ["updated_at", "2015-06-01 13:28:58.207120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
543
510
   (0.1ms) RELEASE SAVEPOINT active_record_2
544
511
   (0.1ms) SAVEPOINT active_record_2
545
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-04-29 16:46:32.193816"], ["updated_at", "2015-04-29 16:46:32.193816"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
512
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-06-01 13:28:58.210127"], ["updated_at", "2015-06-01 13:28:58.210127"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
546
513
   (0.1ms) RELEASE SAVEPOINT active_record_2
547
514
   (0.1ms) SAVEPOINT active_record_2
548
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-04-29 16:46:32.196099"], ["updated_at", "2015-04-29 16:46:32.196099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
515
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-06-01 13:28:58.213112"], ["updated_at", "2015-06-01 13:28:58.213112"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
549
516
   (0.1ms) RELEASE SAVEPOINT active_record_2
550
517
   (0.1ms) SAVEPOINT active_record_2
551
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-04-29 16:46:32.198177"], ["updated_at", "2015-04-29 16:46:32.198177"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
518
+ 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", "103"], ["created_at", "2015-06-01 13:28:58.216368"], ["updated_at", "2015-06-01 13:28:58.216368"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
552
519
   (0.1ms) RELEASE SAVEPOINT active_record_2
553
520
   (0.1ms) SAVEPOINT active_record_2
554
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-04-29 16:46:32.200760"], ["updated_at", "2015-04-29 16:46:32.200760"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
521
+ 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", "104"], ["created_at", "2015-06-01 13:28:58.219481"], ["updated_at", "2015-06-01 13:28:58.219481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
555
522
   (0.1ms) RELEASE SAVEPOINT active_record_2
556
523
   (0.1ms) SAVEPOINT active_record_2
557
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-04-29 16:46:32.203706"], ["updated_at", "2015-04-29 16:46:32.203706"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "105"], ["created_at", "2015-06-01 13:28:58.222484"], ["updated_at", "2015-06-01 13:28:58.222484"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
558
525
   (0.1ms) RELEASE SAVEPOINT active_record_2
559
526
   (0.1ms) SAVEPOINT active_record_2
560
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-04-29 16:46:32.206009"], ["updated_at", "2015-04-29 16:46:32.206009"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
527
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-06-01 13:28:58.225068"], ["updated_at", "2015-06-01 13:28:58.225068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
561
528
   (0.1ms) RELEASE SAVEPOINT active_record_2
562
529
   (0.1ms) SAVEPOINT active_record_2
563
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "110"], ["created_at", "2015-04-29 16:46:32.208619"], ["updated_at", "2015-04-29 16:46:32.208619"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
564
-  (0.1ms) RELEASE SAVEPOINT active_record_2
565
- Processing by PushType::WysiwygMediaController#index as JSON
566
- Parameters: {"filter"=>"image"}
567
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
568
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
569
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
570
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
571
-  (0.1ms) ROLLBACK
572
-  (0.1ms) BEGIN
573
- ---------------------------------------------------------------------------------------
574
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
575
- ---------------------------------------------------------------------------------------
576
-  (0.1ms) SAVEPOINT active_record_1
577
-  (0.0ms) RELEASE SAVEPOINT active_record_1
578
-  (0.0ms) SAVEPOINT active_record_1
579
-  (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", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-04-29 16:46:32.218904"], ["updated_at", "2015-04-29 16:46:32.218904"], ["file_ext", "png"], ["mime_type", "image/png"]]
581
-  (0.2ms) RELEASE SAVEPOINT active_record_2
582
-  (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", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-04-29 16:46:32.221425"], ["updated_at", "2015-04-29 16:46:32.221425"], ["file_ext", "png"], ["mime_type", "image/png"]]
530
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-06-01 13:28:58.227651"], ["updated_at", "2015-06-01 13:28:58.227651"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
531
   (0.1ms) RELEASE SAVEPOINT active_record_2
585
532
   (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", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-04-29 16:46:32.223813"], ["updated_at", "2015-04-29 16:46:32.223813"], ["file_ext", "png"], ["mime_type", "image/png"]]
533
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-06-01 13:28:58.230148"], ["updated_at", "2015-06-01 13:28:58.230148"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
534
   (0.1ms) RELEASE SAVEPOINT active_record_2
535
+ Processing by PushType::WysiwygMediaController#index as JSON
536
+ Parameters: {"filter"=>"file", "page"=>2}
537
+ 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
538
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
539
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
540
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
541
+  (0.1ms) ROLLBACK
542
+  (0.1ms) BEGIN
543
+ ----------------------------------------------------------------------------------
544
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
545
+ ----------------------------------------------------------------------------------
546
+  (0.1ms) SAVEPOINT active_record_1
547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
548
+  (0.1ms) SAVEPOINT active_record_1
588
549
   (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", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-04-29 16:46:32.226107"], ["updated_at", "2015-04-29 16:46:32.226107"], ["file_ext", "png"], ["mime_type", "image/png"]]
550
+ 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", "109"], ["created_at", "2015-06-01 13:28:58.240017"], ["updated_at", "2015-06-01 13:28:58.240017"], ["file_ext", "png"], ["mime_type", "image/png"]]
590
551
   (0.1ms) RELEASE SAVEPOINT active_record_2
591
552
   (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", "image.png"], ["file_size", 2643], ["file_uid", "115"], ["created_at", "2015-04-29 16:46:32.228213"], ["updated_at", "2015-04-29 16:46:32.228213"], ["file_ext", "png"], ["mime_type", "image/png"]]
553
+ 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", "110"], ["created_at", "2015-06-01 13:28:58.258378"], ["updated_at", "2015-06-01 13:28:58.258378"], ["file_ext", "png"], ["mime_type", "image/png"]]
593
554
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
555
   (0.1ms) SAVEPOINT active_record_2
595
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-04-29 16:46:32.230326"], ["updated_at", "2015-04-29 16:46:32.230326"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
556
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-06-01 13:28:58.261560"], ["updated_at", "2015-06-01 13:28:58.261560"], ["file_ext", "png"], ["mime_type", "image/png"]]
596
557
   (0.1ms) RELEASE SAVEPOINT active_record_2
597
558
   (0.1ms) SAVEPOINT active_record_2
598
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-04-29 16:46:32.232416"], ["updated_at", "2015-04-29 16:46:32.232416"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
559
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-06-01 13:28:58.282071"], ["updated_at", "2015-06-01 13:28:58.282071"], ["file_ext", "png"], ["mime_type", "image/png"]]
599
560
   (0.1ms) RELEASE SAVEPOINT active_record_2
600
561
   (0.1ms) SAVEPOINT active_record_2
601
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-04-29 16:46:32.234510"], ["updated_at", "2015-04-29 16:46:32.234510"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
562
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-06-01 13:28:58.285271"], ["updated_at", "2015-06-01 13:28:58.285271"], ["file_ext", "png"], ["mime_type", "image/png"]]
602
563
   (0.1ms) RELEASE SAVEPOINT active_record_2
603
564
   (0.1ms) SAVEPOINT active_record_2
604
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-04-29 16:46:32.236773"], ["updated_at", "2015-04-29 16:46:32.236773"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "114"], ["created_at", "2015-06-01 13:28:58.287563"], ["updated_at", "2015-06-01 13:28:58.287563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
605
566
   (0.1ms) RELEASE SAVEPOINT active_record_2
606
567
   (0.1ms) SAVEPOINT active_record_2
607
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-04-29 16:46:32.238848"], ["updated_at", "2015-04-29 16:46:32.238848"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "115"], ["created_at", "2015-06-01 13:28:58.289835"], ["updated_at", "2015-06-01 13:28:58.289835"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
608
569
   (0.1ms) RELEASE SAVEPOINT active_record_2
609
570
   (0.1ms) SAVEPOINT active_record_2
610
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-04-29 16:46:32.240932"], ["updated_at", "2015-04-29 16:46:32.240932"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "116"], ["created_at", "2015-06-01 13:28:58.292442"], ["updated_at", "2015-06-01 13:28:58.292442"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
611
572
   (0.1ms) RELEASE SAVEPOINT active_record_2
612
573
   (0.1ms) SAVEPOINT active_record_2
613
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-04-29 16:46:32.242955"], ["updated_at", "2015-04-29 16:46:32.242955"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "117"], ["created_at", "2015-06-01 13:28:58.295195"], ["updated_at", "2015-06-01 13:28:58.295195"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
614
575
   (0.1ms) RELEASE SAVEPOINT active_record_2
615
576
   (0.1ms) SAVEPOINT active_record_2
616
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-04-29 16:46:32.244986"], ["updated_at", "2015-04-29 16:46:32.244986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
577
+ 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", "118"], ["created_at", "2015-06-01 13:28:58.309691"], ["updated_at", "2015-06-01 13:28:58.309691"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
617
578
   (0.1ms) RELEASE SAVEPOINT active_record_2
618
579
   (0.1ms) SAVEPOINT active_record_2
619
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-04-29 16:46:32.247122"], ["updated_at", "2015-04-29 16:46:32.247122"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "119"], ["created_at", "2015-06-01 13:28:58.312712"], ["updated_at", "2015-06-01 13:28:58.312712"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
620
581
   (0.1ms) RELEASE SAVEPOINT active_record_2
621
582
   (0.1ms) SAVEPOINT active_record_2
622
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-04-29 16:46:32.249225"], ["updated_at", "2015-04-29 16:46:32.249225"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "120"], ["created_at", "2015-06-01 13:28:58.315460"], ["updated_at", "2015-06-01 13:28:58.315460"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
623
584
   (0.1ms) RELEASE SAVEPOINT active_record_2
624
585
   (0.1ms) SAVEPOINT active_record_2
625
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-04-29 16:46:32.251367"], ["updated_at", "2015-04-29 16:46:32.251367"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "121"], ["created_at", "2015-06-01 13:28:58.317528"], ["updated_at", "2015-06-01 13:28:58.317528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
626
587
   (0.1ms) RELEASE SAVEPOINT active_record_2
627
588
   (0.1ms) SAVEPOINT active_record_2
628
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-04-29 16:46:32.253523"], ["updated_at", "2015-04-29 16:46:32.253523"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "122"], ["created_at", "2015-06-01 13:28:58.319632"], ["updated_at", "2015-06-01 13:28:58.319632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
629
590
   (0.1ms) RELEASE SAVEPOINT active_record_2
630
591
   (0.1ms) SAVEPOINT active_record_2
631
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "128"], ["created_at", "2015-04-29 16:46:32.255652"], ["updated_at", "2015-04-29 16:46:32.255652"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "123"], ["created_at", "2015-06-01 13:28:58.322357"], ["updated_at", "2015-06-01 13:28:58.322357"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
632
593
   (0.1ms) RELEASE SAVEPOINT active_record_2
633
- Processing by PushType::WysiwygMediaController#index as JSON
634
- Parameters: {"filter"=>"image"}
635
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
636
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
637
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.4ms)
638
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
639
-  (0.1ms) ROLLBACK
640
-  (0.1ms) BEGIN
641
- ---------------------------------------------------------------------------------------
642
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
643
- ---------------------------------------------------------------------------------------
644
-  (0.1ms) SAVEPOINT active_record_1
645
-  (0.0ms) RELEASE SAVEPOINT active_record_1
646
-  (0.1ms) SAVEPOINT active_record_1
647
594
   (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", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-04-29 16:46:32.264480"], ["updated_at", "2015-04-29 16:46:32.264480"], ["file_ext", "png"], ["mime_type", "image/png"]]
595
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-06-01 13:28:58.324474"], ["updated_at", "2015-06-01 13:28:58.324474"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
649
596
   (0.1ms) RELEASE SAVEPOINT active_record_2
650
597
   (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", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-04-29 16:46:32.266594"], ["updated_at", "2015-04-29 16:46:32.266594"], ["file_ext", "png"], ["mime_type", "image/png"]]
598
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-06-01 13:28:58.326566"], ["updated_at", "2015-06-01 13:28:58.326566"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
652
599
   (0.1ms) RELEASE SAVEPOINT active_record_2
653
600
   (0.1ms) SAVEPOINT active_record_2
654
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-04-29 16:46:32.268673"], ["updated_at", "2015-04-29 16:46:32.268673"], ["file_ext", "png"], ["mime_type", "image/png"]]
601
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-06-01 13:28:58.328835"], ["updated_at", "2015-06-01 13:28:58.328835"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
602
   (0.1ms) RELEASE SAVEPOINT active_record_2
603
+ Processing by PushType::WysiwygMediaController#index as JSON
604
+ Parameters: {"filter"=>"file", "page"=>2}
605
+ 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
606
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
607
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
608
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
609
+  (0.1ms) ROLLBACK
610
+  (0.1ms) BEGIN
611
+ ----------------------------------------------------------------------------------
612
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
613
+ ----------------------------------------------------------------------------------
614
+  (0.0ms) SAVEPOINT active_record_1
615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
616
+  (0.1ms) SAVEPOINT active_record_1
656
617
   (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", "image.png"], ["file_size", 2643], ["file_uid", "132"], ["created_at", "2015-04-29 16:46:32.270861"], ["updated_at", "2015-04-29 16:46:32.270861"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "127"], ["created_at", "2015-06-01 13:28:58.336950"], ["updated_at", "2015-06-01 13:28:58.336950"], ["file_ext", "png"], ["mime_type", "image/png"]]
658
619
   (0.1ms) RELEASE SAVEPOINT active_record_2
659
620
   (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", "image.png"], ["file_size", 2643], ["file_uid", "133"], ["created_at", "2015-04-29 16:46:32.272916"], ["updated_at", "2015-04-29 16:46:32.272916"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "128"], ["created_at", "2015-06-01 13:28:58.339040"], ["updated_at", "2015-06-01 13:28:58.339040"], ["file_ext", "png"], ["mime_type", "image/png"]]
661
622
   (0.1ms) RELEASE SAVEPOINT active_record_2
662
623
   (0.1ms) SAVEPOINT active_record_2
663
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-04-29 16:46:32.275066"], ["updated_at", "2015-04-29 16:46:32.275066"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-06-01 13:28:58.341066"], ["updated_at", "2015-06-01 13:28:58.341066"], ["file_ext", "png"], ["mime_type", "image/png"]]
664
625
   (0.1ms) RELEASE SAVEPOINT active_record_2
665
626
   (0.1ms) SAVEPOINT active_record_2
666
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-04-29 16:46:32.277151"], ["updated_at", "2015-04-29 16:46:32.277151"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
627
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-06-01 13:28:58.343217"], ["updated_at", "2015-06-01 13:28:58.343217"], ["file_ext", "png"], ["mime_type", "image/png"]]
667
628
   (0.1ms) RELEASE SAVEPOINT active_record_2
668
629
   (0.1ms) SAVEPOINT active_record_2
669
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-04-29 16:46:32.279232"], ["updated_at", "2015-04-29 16:46:32.279232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
630
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-06-01 13:28:58.345252"], ["updated_at", "2015-06-01 13:28:58.345252"], ["file_ext", "png"], ["mime_type", "image/png"]]
670
631
   (0.1ms) RELEASE SAVEPOINT active_record_2
671
632
   (0.1ms) SAVEPOINT active_record_2
672
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-04-29 16:46:32.281333"], ["updated_at", "2015-04-29 16:46:32.281333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "132"], ["created_at", "2015-06-01 13:28:58.347560"], ["updated_at", "2015-06-01 13:28:58.347560"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
673
634
   (0.1ms) RELEASE SAVEPOINT active_record_2
674
635
   (0.1ms) SAVEPOINT active_record_2
675
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-04-29 16:46:32.283359"], ["updated_at", "2015-04-29 16:46:32.283359"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "133"], ["created_at", "2015-06-01 13:28:58.349746"], ["updated_at", "2015-06-01 13:28:58.349746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
676
637
   (0.1ms) RELEASE SAVEPOINT active_record_2
677
638
   (0.1ms) SAVEPOINT active_record_2
678
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-04-29 16:46:32.285490"], ["updated_at", "2015-04-29 16:46:32.285490"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "134"], ["created_at", "2015-06-01 13:28:58.351800"], ["updated_at", "2015-06-01 13:28:58.351800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
679
640
   (0.1ms) RELEASE SAVEPOINT active_record_2
680
641
   (0.1ms) SAVEPOINT active_record_2
681
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-04-29 16:46:32.287628"], ["updated_at", "2015-04-29 16:46:32.287628"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "135"], ["created_at", "2015-06-01 13:28:58.353983"], ["updated_at", "2015-06-01 13:28:58.353983"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
682
643
   (0.1ms) RELEASE SAVEPOINT active_record_2
683
644
   (0.1ms) SAVEPOINT active_record_2
684
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-04-29 16:46:32.289732"], ["updated_at", "2015-04-29 16:46:32.289732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "136"], ["created_at", "2015-06-01 13:28:58.356001"], ["updated_at", "2015-06-01 13:28:58.356001"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
685
646
   (0.1ms) RELEASE SAVEPOINT active_record_2
686
647
   (0.1ms) SAVEPOINT active_record_2
687
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-04-29 16:46:32.291851"], ["updated_at", "2015-04-29 16:46:32.291851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "137"], ["created_at", "2015-06-01 13:28:58.358269"], ["updated_at", "2015-06-01 13:28:58.358269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
688
649
   (0.1ms) RELEASE SAVEPOINT active_record_2
689
650
   (0.1ms) SAVEPOINT active_record_2
690
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-04-29 16:46:32.293907"], ["updated_at", "2015-04-29 16:46:32.293907"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "138"], ["created_at", "2015-06-01 13:28:58.360463"], ["updated_at", "2015-06-01 13:28:58.360463"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
691
652
   (0.1ms) RELEASE SAVEPOINT active_record_2
692
653
   (0.1ms) SAVEPOINT active_record_2
693
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-04-29 16:46:32.295933"], ["updated_at", "2015-04-29 16:46:32.295933"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "139"], ["created_at", "2015-06-01 13:28:58.362843"], ["updated_at", "2015-06-01 13:28:58.362843"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
694
655
   (0.1ms) RELEASE SAVEPOINT active_record_2
695
656
   (0.1ms) SAVEPOINT active_record_2
696
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-04-29 16:46:32.298234"], ["updated_at", "2015-04-29 16:46:32.298234"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "140"], ["created_at", "2015-06-01 13:28:58.365341"], ["updated_at", "2015-06-01 13:28:58.365341"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
697
658
   (0.1ms) RELEASE SAVEPOINT active_record_2
698
659
   (0.1ms) SAVEPOINT active_record_2
699
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "146"], ["created_at", "2015-04-29 16:46:32.300275"], ["updated_at", "2015-04-29 16:46:32.300275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "141"], ["created_at", "2015-06-01 13:28:58.367491"], ["updated_at", "2015-06-01 13:28:58.367491"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
700
661
   (0.1ms) RELEASE SAVEPOINT active_record_2
701
- Processing by PushType::WysiwygMediaController#index as JSON
702
- Parameters: {"filter"=>"image"}
703
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
704
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
705
- Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
706
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
707
-  (0.1ms) ROLLBACK
708
-  (0.1ms) BEGIN
709
- ---------------------------------------------------------------------------------------
710
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
711
- ---------------------------------------------------------------------------------------
712
-  (0.0ms) SAVEPOINT active_record_1
713
-  (0.0ms) RELEASE SAVEPOINT active_record_1
714
-  (0.0ms) SAVEPOINT active_record_1
715
662
   (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", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-04-29 16:46:32.309118"], ["updated_at", "2015-04-29 16:46:32.309118"], ["file_ext", "png"], ["mime_type", "image/png"]]
663
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-06-01 13:28:58.369920"], ["updated_at", "2015-06-01 13:28:58.369920"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
717
664
   (0.1ms) RELEASE SAVEPOINT active_record_2
718
665
   (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", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-04-29 16:46:32.311385"], ["updated_at", "2015-04-29 16:46:32.311385"], ["file_ext", "png"], ["mime_type", "image/png"]]
666
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-06-01 13:28:58.372108"], ["updated_at", "2015-06-01 13:28:58.372108"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
720
667
   (0.1ms) RELEASE SAVEPOINT active_record_2
721
668
   (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", "image.png"], ["file_size", 2643], ["file_uid", "149"], ["created_at", "2015-04-29 16:46:32.313586"], ["updated_at", "2015-04-29 16:46:32.313586"], ["file_ext", "png"], ["mime_type", "image/png"]]
669
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-06-01 13:28:58.374476"], ["updated_at", "2015-06-01 13:28:58.374476"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
723
670
   (0.1ms) RELEASE SAVEPOINT active_record_2
671
+ Processing by PushType::WysiwygMediaController#index as JSON
672
+ Parameters: {"filter"=>"file", "page"=>2}
673
+ 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
674
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
675
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
676
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
677
+  (0.1ms) ROLLBACK
678
+  (0.1ms) BEGIN
679
+ ----------------------------------------------------------------------------------------
680
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
681
+ ----------------------------------------------------------------------------------------
682
+  (0.1ms) SAVEPOINT active_record_1
683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
684
+  (0.0ms) SAVEPOINT active_record_1
685
+ Processing by PushType::WysiwygMediaController#create as JSON
686
+ Parameters: {"asset"=>{}}
724
687
   (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", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-04-29 16:46:32.315756"], ["updated_at", "2015-04-29 16:46:32.315756"], ["file_ext", "png"], ["mime_type", "image/png"]]
726
-  (0.1ms) RELEASE SAVEPOINT active_record_2
727
-  (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", "image.png"], ["file_size", 2643], ["file_uid", "151"], ["created_at", "2015-04-29 16:46:32.317853"], ["updated_at", "2015-04-29 16:46:32.317853"], ["file_ext", "png"], ["mime_type", "image/png"]]
729
-  (0.1ms) RELEASE SAVEPOINT active_record_2
688
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
689
+ Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.2ms)
690
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
691
+  (0.1ms) ROLLBACK
692
+  (0.1ms) BEGIN
693
+ ----------------------------------------------------------------------------------------
694
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
695
+ ----------------------------------------------------------------------------------------
696
+  (0.1ms) SAVEPOINT active_record_1
697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
698
+  (0.1ms) SAVEPOINT active_record_1
699
+ Processing by PushType::WysiwygMediaController#create as JSON
700
+ Parameters: {"asset"=>{}}
701
+  (0.1ms) SAVEPOINT active_record_2
702
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
703
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
704
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
705
+  (0.1ms) ROLLBACK
706
+  (0.1ms) BEGIN
707
+ ----------------------------------------------------------------------------------------
708
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
709
+ ----------------------------------------------------------------------------------------
710
+  (0.1ms) SAVEPOINT active_record_1
711
+  (0.1ms) RELEASE SAVEPOINT active_record_1
712
+  (0.0ms) SAVEPOINT active_record_1
713
+ Processing by PushType::WysiwygMediaController#create as JSON
714
+ Parameters: {"asset"=>{}}
730
715
   (0.1ms) SAVEPOINT active_record_2
731
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-04-29 16:46:32.320040"], ["updated_at", "2015-04-29 16:46:32.320040"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
716
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
717
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
718
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
719
+  (0.1ms) ROLLBACK
720
+  (0.1ms) BEGIN
721
+ -----------------------------------------------------------------------
722
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
723
+ -----------------------------------------------------------------------
724
+  (0.1ms) SAVEPOINT active_record_1
725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
726
+  (0.0ms) SAVEPOINT active_record_1
727
+  (0.1ms) SAVEPOINT active_record_2
728
+ 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", "145"], ["created_at", "2015-06-01 13:28:58.406093"], ["updated_at", "2015-06-01 13:28:58.406093"], ["file_ext", "png"], ["mime_type", "image/png"]]
732
729
   (0.1ms) RELEASE SAVEPOINT active_record_2
733
730
   (0.1ms) SAVEPOINT active_record_2
734
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-04-29 16:46:32.322143"], ["updated_at", "2015-04-29 16:46:32.322143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
731
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-06-01 13:28:58.408434"], ["updated_at", "2015-06-01 13:28:58.408434"], ["file_ext", "png"], ["mime_type", "image/png"]]
735
732
   (0.1ms) RELEASE SAVEPOINT active_record_2
736
733
   (0.1ms) SAVEPOINT active_record_2
737
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-04-29 16:46:32.324179"], ["updated_at", "2015-04-29 16:46:32.324179"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
734
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-06-01 13:28:58.410500"], ["updated_at", "2015-06-01 13:28:58.410500"], ["file_ext", "png"], ["mime_type", "image/png"]]
738
735
   (0.1ms) RELEASE SAVEPOINT active_record_2
739
736
   (0.1ms) SAVEPOINT active_record_2
740
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "155"], ["created_at", "2015-04-29 16:46:32.326186"], ["updated_at", "2015-04-29 16:46:32.326186"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
737
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-06-01 13:28:58.412599"], ["updated_at", "2015-06-01 13:28:58.412599"], ["file_ext", "png"], ["mime_type", "image/png"]]
741
738
   (0.1ms) RELEASE SAVEPOINT active_record_2
739
+ 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
740
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
741
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
742
+  (0.1ms) ROLLBACK
743
+  (0.1ms) BEGIN
744
+ -----------------------------------------------------------------------
745
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
746
+ -----------------------------------------------------------------------
747
+  (0.1ms) SAVEPOINT active_record_1
748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
749
+  (0.1ms) SAVEPOINT active_record_1
742
750
   (0.1ms) SAVEPOINT active_record_2
743
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-04-29 16:46:32.328170"], ["updated_at", "2015-04-29 16:46:32.328170"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "149"], ["created_at", "2015-06-01 13:28:58.418740"], ["updated_at", "2015-06-01 13:28:58.418740"], ["file_ext", "png"], ["mime_type", "image/png"]]
744
752
   (0.1ms) RELEASE SAVEPOINT active_record_2
745
753
   (0.1ms) SAVEPOINT active_record_2
746
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-04-29 16:46:32.330299"], ["updated_at", "2015-04-29 16:46:32.330299"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "150"], ["created_at", "2015-06-01 13:28:58.421035"], ["updated_at", "2015-06-01 13:28:58.421035"], ["file_ext", "png"], ["mime_type", "image/png"]]
747
755
   (0.1ms) RELEASE SAVEPOINT active_record_2
748
756
   (0.1ms) SAVEPOINT active_record_2
749
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-04-29 16:46:32.332372"], ["updated_at", "2015-04-29 16:46:32.332372"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "151"], ["created_at", "2015-06-01 13:28:58.423155"], ["updated_at", "2015-06-01 13:28:58.423155"], ["file_ext", "png"], ["mime_type", "image/png"]]
750
758
   (0.1ms) RELEASE SAVEPOINT active_record_2
751
759
   (0.1ms) SAVEPOINT active_record_2
752
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-04-29 16:46:32.334386"], ["updated_at", "2015-04-29 16:46:32.334386"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
760
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-06-01 13:28:58.425468"], ["updated_at", "2015-06-01 13:28:58.425468"], ["file_ext", "png"], ["mime_type", "image/png"]]
753
761
   (0.1ms) RELEASE SAVEPOINT active_record_2
762
+ 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
763
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
764
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
765
+  (0.1ms) ROLLBACK
766
+  (0.1ms) BEGIN
767
+ -----------------------------------------------------------------------
768
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
769
+ -----------------------------------------------------------------------
770
+  (0.1ms) SAVEPOINT active_record_1
771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
772
+  (0.1ms) SAVEPOINT active_record_1
754
773
   (0.1ms) SAVEPOINT active_record_2
755
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-04-29 16:46:32.336406"], ["updated_at", "2015-04-29 16:46:32.336406"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-06-01 13:28:58.431402"], ["updated_at", "2015-06-01 13:28:58.431402"], ["file_ext", "png"], ["mime_type", "image/png"]]
756
775
   (0.1ms) RELEASE SAVEPOINT active_record_2
757
776
   (0.1ms) SAVEPOINT active_record_2
758
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-04-29 16:46:32.338436"], ["updated_at", "2015-04-29 16:46:32.338436"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-06-01 13:28:58.433883"], ["updated_at", "2015-06-01 13:28:58.433883"], ["file_ext", "png"], ["mime_type", "image/png"]]
759
778
   (0.1ms) RELEASE SAVEPOINT active_record_2
760
779
   (0.1ms) SAVEPOINT active_record_2
761
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-04-29 16:46:32.340532"], ["updated_at", "2015-04-29 16:46:32.340532"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
780
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-06-01 13:28:58.435982"], ["updated_at", "2015-06-01 13:28:58.435982"], ["file_ext", "png"], ["mime_type", "image/png"]]
762
781
   (0.1ms) RELEASE SAVEPOINT active_record_2
763
782
   (0.1ms) SAVEPOINT active_record_2
764
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-04-29 16:46:32.342798"], ["updated_at", "2015-04-29 16:46:32.342798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
783
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-06-01 13:28:58.438002"], ["updated_at", "2015-06-01 13:28:58.438002"], ["file_ext", "png"], ["mime_type", "image/png"]]
765
784
   (0.1ms) RELEASE SAVEPOINT active_record_2
785
+ 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
786
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
787
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
788
+  (0.1ms) ROLLBACK
789
+  (0.1ms) BEGIN
790
+ -----------------------------------------------------------------------
791
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
792
+ -----------------------------------------------------------------------
793
+  (0.1ms) SAVEPOINT active_record_1
794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
795
+  (0.0ms) SAVEPOINT active_record_1
766
796
   (0.1ms) SAVEPOINT active_record_2
767
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "164"], ["created_at", "2015-04-29 16:46:32.344985"], ["updated_at", "2015-04-29 16:46:32.344985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
797
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-06-01 13:28:58.443635"], ["updated_at", "2015-06-01 13:28:58.443635"], ["file_ext", "png"], ["mime_type", "image/png"]]
768
798
   (0.1ms) RELEASE SAVEPOINT active_record_2
769
- Processing by PushType::WysiwygMediaController#index as JSON
770
- Parameters: {"filter"=>"image"}
771
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
772
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
773
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
774
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
775
-  (0.1ms) ROLLBACK
776
-  (0.1ms) BEGIN
777
- --------------------------------------------------------------------------------------
778
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
779
- --------------------------------------------------------------------------------------
780
-  (0.1ms) SAVEPOINT active_record_1
781
-  (0.1ms) RELEASE SAVEPOINT active_record_1
782
-  (0.1ms) SAVEPOINT active_record_1
783
799
   (0.1ms) SAVEPOINT active_record_2
784
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-04-29 16:46:32.354791"], ["updated_at", "2015-04-29 16:46:32.354791"], ["file_ext", "png"], ["mime_type", "image/png"]]
800
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-06-01 13:28:58.445741"], ["updated_at", "2015-06-01 13:28:58.445741"], ["file_ext", "png"], ["mime_type", "image/png"]]
785
801
   (0.1ms) RELEASE SAVEPOINT active_record_2
786
802
   (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", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-04-29 16:46:32.357163"], ["updated_at", "2015-04-29 16:46:32.357163"], ["file_ext", "png"], ["mime_type", "image/png"]]
803
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-06-01 13:28:58.447939"], ["updated_at", "2015-06-01 13:28:58.447939"], ["file_ext", "png"], ["mime_type", "image/png"]]
788
804
   (0.1ms) RELEASE SAVEPOINT active_record_2
789
805
   (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", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-04-29 16:46:32.359377"], ["updated_at", "2015-04-29 16:46:32.359377"], ["file_ext", "png"], ["mime_type", "image/png"]]
806
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-06-01 13:28:58.450085"], ["updated_at", "2015-06-01 13:28:58.450085"], ["file_ext", "png"], ["mime_type", "image/png"]]
791
807
   (0.1ms) RELEASE SAVEPOINT active_record_2
808
+ 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
809
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
810
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
811
+  (0.1ms) ROLLBACK
812
+  (0.1ms) BEGIN
813
+ -----------------------------------------------------------------------
814
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
815
+ -----------------------------------------------------------------------
816
+  (0.1ms) SAVEPOINT active_record_1
817
+  (0.1ms) RELEASE SAVEPOINT active_record_1
818
+  (0.1ms) SAVEPOINT active_record_1
792
819
   (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", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-04-29 16:46:32.361465"], ["updated_at", "2015-04-29 16:46:32.361465"], ["file_ext", "png"], ["mime_type", "image/png"]]
820
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-06-01 13:28:58.455801"], ["updated_at", "2015-06-01 13:28:58.455801"], ["file_ext", "png"], ["mime_type", "image/png"]]
794
821
   (0.1ms) RELEASE SAVEPOINT active_record_2
795
822
   (0.1ms) SAVEPOINT active_record_2
796
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-04-29 16:46:32.363760"], ["updated_at", "2015-04-29 16:46:32.363760"], ["file_ext", "png"], ["mime_type", "image/png"]]
823
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-06-01 13:28:58.457832"], ["updated_at", "2015-06-01 13:28:58.457832"], ["file_ext", "png"], ["mime_type", "image/png"]]
797
824
   (0.1ms) RELEASE SAVEPOINT active_record_2
798
825
   (0.1ms) SAVEPOINT active_record_2
799
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-04-29 16:46:32.366037"], ["updated_at", "2015-04-29 16:46:32.366037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
826
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-06-01 13:28:58.459796"], ["updated_at", "2015-06-01 13:28:58.459796"], ["file_ext", "png"], ["mime_type", "image/png"]]
800
827
   (0.1ms) RELEASE SAVEPOINT active_record_2
801
828
   (0.1ms) SAVEPOINT active_record_2
802
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-04-29 16:46:32.368219"], ["updated_at", "2015-04-29 16:46:32.368219"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
829
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-06-01 13:28:58.461918"], ["updated_at", "2015-06-01 13:28:58.461918"], ["file_ext", "png"], ["mime_type", "image/png"]]
803
830
   (0.1ms) RELEASE SAVEPOINT active_record_2
804
-  (0.1ms) SAVEPOINT active_record_2
805
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-04-29 16:46:32.370375"], ["updated_at", "2015-04-29 16:46:32.370375"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
806
-  (0.1ms) RELEASE SAVEPOINT active_record_2
831
+ 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
832
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
833
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
834
+  (0.1ms) ROLLBACK
835
+  (0.1ms) BEGIN
836
+ --------------------------------------------------------------------------------
837
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
838
+ --------------------------------------------------------------------------------
839
+  (0.1ms) SAVEPOINT active_record_1
840
+  (0.1ms) RELEASE SAVEPOINT active_record_1
841
+  (0.0ms) SAVEPOINT active_record_1
842
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
843
+ Processing by PushType::WysiwygMediaController#create as JSON
844
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9459842d40 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-oq9yua>>}}
807
845
   (0.1ms) SAVEPOINT active_record_2
808
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-04-29 16:46:32.372497"], ["updated_at", "2015-04-29 16:46:32.372497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-06-01 13:28:58.472030"], ["updated_at", "2015-06-01 13:28:58.472030"], ["file_ext", "png"], ["mime_type", "image/png"]]
809
847
   (0.1ms) RELEASE SAVEPOINT active_record_2
810
-  (0.1ms) SAVEPOINT active_record_2
811
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-04-29 16:46:32.374723"], ["updated_at", "2015-04-29 16:46:32.374723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
812
-  (0.1ms) RELEASE SAVEPOINT active_record_2
848
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
849
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
850
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
851
+  (0.1ms) ROLLBACK
852
+  (0.1ms) BEGIN
853
+ -----------------------------------------------------------------------
854
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
855
+ -----------------------------------------------------------------------
856
+  (0.1ms) SAVEPOINT active_record_1
857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
858
+  (0.0ms) SAVEPOINT active_record_1
813
859
   (0.1ms) SAVEPOINT active_record_2
814
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "175"], ["created_at", "2015-04-29 16:46:32.376891"], ["updated_at", "2015-04-29 16:46:32.376891"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
860
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-06-01 13:28:58.479256"], ["updated_at", "2015-06-01 13:28:58.479256"], ["file_ext", "png"], ["mime_type", "image/png"]]
815
861
   (0.1ms) RELEASE SAVEPOINT active_record_2
816
862
   (0.1ms) SAVEPOINT active_record_2
817
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "176"], ["created_at", "2015-04-29 16:46:32.379058"], ["updated_at", "2015-04-29 16:46:32.379058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-06-01 13:28:58.482307"], ["updated_at", "2015-06-01 13:28:58.482307"], ["file_ext", "png"], ["mime_type", "image/png"]]
818
864
   (0.1ms) RELEASE SAVEPOINT active_record_2
819
865
   (0.1ms) SAVEPOINT active_record_2
820
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-04-29 16:46:32.381271"], ["updated_at", "2015-04-29 16:46:32.381271"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
866
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.484932"], ["updated_at", "2015-06-01 13:28:58.484932"], ["file_ext", "png"], ["mime_type", "image/png"]]
821
867
   (0.1ms) RELEASE SAVEPOINT active_record_2
822
868
   (0.1ms) SAVEPOINT active_record_2
823
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2015-04-29 16:46:32.383297"], ["updated_at", "2015-04-29 16:46:32.383297"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
869
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-06-01 13:28:58.487034"], ["updated_at", "2015-06-01 13:28:58.487034"], ["file_ext", "png"], ["mime_type", "image/png"]]
824
870
   (0.1ms) RELEASE SAVEPOINT active_record_2
825
-  (0.1ms) SAVEPOINT active_record_2
826
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2015-04-29 16:46:32.385696"], ["updated_at", "2015-04-29 16:46:32.385696"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
827
-  (0.1ms) RELEASE SAVEPOINT active_record_2
871
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
872
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
873
+  (0.1ms) ROLLBACK
874
+  (0.1ms) BEGIN
875
+ -----------------------------------------------------------------------
876
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
877
+ -----------------------------------------------------------------------
878
+  (0.0ms) SAVEPOINT active_record_1
879
+  (0.0ms) RELEASE SAVEPOINT active_record_1
880
+  (0.0ms) SAVEPOINT active_record_1
828
881
   (0.1ms) SAVEPOINT active_record_2
829
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-04-29 16:46:32.388027"], ["updated_at", "2015-04-29 16:46:32.388027"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
882
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-06-01 13:28:58.491536"], ["updated_at", "2015-06-01 13:28:58.491536"], ["file_ext", "png"], ["mime_type", "image/png"]]
830
883
   (0.1ms) RELEASE SAVEPOINT active_record_2
831
884
   (0.1ms) SAVEPOINT active_record_2
832
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-04-29 16:46:32.390157"], ["updated_at", "2015-04-29 16:46:32.390157"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
885
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-06-01 13:28:58.493753"], ["updated_at", "2015-06-01 13:28:58.493753"], ["file_ext", "png"], ["mime_type", "image/png"]]
833
886
   (0.1ms) RELEASE SAVEPOINT active_record_2
834
887
   (0.1ms) SAVEPOINT active_record_2
835
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "182"], ["created_at", "2015-04-29 16:46:32.392407"], ["updated_at", "2015-04-29 16:46:32.392407"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
888
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-06-01 13:28:58.495820"], ["updated_at", "2015-06-01 13:28:58.495820"], ["file_ext", "png"], ["mime_type", "image/png"]]
836
889
   (0.1ms) RELEASE SAVEPOINT active_record_2
837
- Processing by PushType::WysiwygMediaController#index as JSON
838
- Parameters: {"filter"=>"file"}
839
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
840
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
841
- Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
842
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
890
+  (0.1ms) SAVEPOINT active_record_2
891
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-06-01 13:28:58.498007"], ["updated_at", "2015-06-01 13:28:58.498007"], ["file_ext", "png"], ["mime_type", "image/png"]]
892
+  (0.1ms) RELEASE SAVEPOINT active_record_2
893
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
894
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
843
895
   (0.1ms) ROLLBACK
844
896
   (0.1ms) BEGIN
845
- --------------------------------------------------------------------------------------
846
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
847
- --------------------------------------------------------------------------------------
897
+ -----------------------------------------------------------------------
898
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
899
+ -----------------------------------------------------------------------
848
900
   (0.0ms) SAVEPOINT active_record_1
849
901
   (0.0ms) RELEASE SAVEPOINT active_record_1
850
-  (0.0ms) SAVEPOINT active_record_1
902
+  (0.1ms) SAVEPOINT active_record_1
851
903
   (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", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-04-29 16:46:32.410310"], ["updated_at", "2015-04-29 16:46:32.410310"], ["file_ext", "png"], ["mime_type", "image/png"]]
904
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-06-01 13:28:58.502718"], ["updated_at", "2015-06-01 13:28:58.502718"], ["file_ext", "png"], ["mime_type", "image/png"]]
853
905
   (0.1ms) RELEASE SAVEPOINT active_record_2
854
906
   (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", "image.png"], ["file_size", 2643], ["file_uid", "184"], ["created_at", "2015-04-29 16:46:32.412893"], ["updated_at", "2015-04-29 16:46:32.412893"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-06-01 13:28:58.505201"], ["updated_at", "2015-06-01 13:28:58.505201"], ["file_ext", "png"], ["mime_type", "image/png"]]
856
908
   (0.1ms) RELEASE SAVEPOINT active_record_2
857
909
   (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", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-04-29 16:46:32.415248"], ["updated_at", "2015-04-29 16:46:32.415248"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-06-01 13:28:58.507282"], ["updated_at", "2015-06-01 13:28:58.507282"], ["file_ext", "png"], ["mime_type", "image/png"]]
859
911
   (0.1ms) RELEASE SAVEPOINT active_record_2
860
912
   (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", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-04-29 16:46:32.417556"], ["updated_at", "2015-04-29 16:46:32.417556"], ["file_ext", "png"], ["mime_type", "image/png"]]
913
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-06-01 13:28:58.509308"], ["updated_at", "2015-06-01 13:28:58.509308"], ["file_ext", "png"], ["mime_type", "image/png"]]
862
914
   (0.1ms) RELEASE SAVEPOINT active_record_2
863
-  (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", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-04-29 16:46:32.419794"], ["updated_at", "2015-04-29 16:46:32.419794"], ["file_ext", "png"], ["mime_type", "image/png"]]
865
-  (0.1ms) RELEASE SAVEPOINT active_record_2
915
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
916
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
917
+  (0.1ms) ROLLBACK
918
+  (0.1ms) BEGIN
919
+ -----------------------------------------------------------------------
920
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
921
+ -----------------------------------------------------------------------
922
+  (0.1ms) SAVEPOINT active_record_1
923
+  (0.0ms) RELEASE SAVEPOINT active_record_1
924
+  (0.0ms) SAVEPOINT active_record_1
866
925
   (0.1ms) SAVEPOINT active_record_2
867
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-04-29 16:46:32.422214"], ["updated_at", "2015-04-29 16:46:32.422214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
926
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-06-01 13:28:58.513834"], ["updated_at", "2015-06-01 13:28:58.513834"], ["file_ext", "png"], ["mime_type", "image/png"]]
868
927
   (0.1ms) RELEASE SAVEPOINT active_record_2
869
928
   (0.1ms) SAVEPOINT active_record_2
870
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-04-29 16:46:32.424599"], ["updated_at", "2015-04-29 16:46:32.424599"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
929
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-06-01 13:28:58.516419"], ["updated_at", "2015-06-01 13:28:58.516419"], ["file_ext", "png"], ["mime_type", "image/png"]]
871
930
   (0.1ms) RELEASE SAVEPOINT active_record_2
872
931
   (0.1ms) SAVEPOINT active_record_2
873
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-04-29 16:46:32.426839"], ["updated_at", "2015-04-29 16:46:32.426839"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
932
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-06-01 13:28:58.518734"], ["updated_at", "2015-06-01 13:28:58.518734"], ["file_ext", "png"], ["mime_type", "image/png"]]
874
933
   (0.1ms) RELEASE SAVEPOINT active_record_2
875
934
   (0.1ms) SAVEPOINT active_record_2
876
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-04-29 16:46:32.429131"], ["updated_at", "2015-04-29 16:46:32.429131"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
935
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-06-01 13:28:58.521044"], ["updated_at", "2015-06-01 13:28:58.521044"], ["file_ext", "png"], ["mime_type", "image/png"]]
936
+  (0.1ms) RELEASE SAVEPOINT active_record_2
937
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
938
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
939
+  (0.1ms) ROLLBACK
940
+  (0.1ms) BEGIN
941
+ -----------------------------------------------------------------------
942
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
943
+ -----------------------------------------------------------------------
944
+  (0.1ms) SAVEPOINT active_record_1
945
+  (0.1ms) RELEASE SAVEPOINT active_record_1
946
+  (0.1ms) SAVEPOINT active_record_1
947
+  (0.1ms) SAVEPOINT active_record_2
948
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-06-01 13:28:58.525653"], ["updated_at", "2015-06-01 13:28:58.525653"], ["file_ext", "png"], ["mime_type", "image/png"]]
877
949
   (0.1ms) RELEASE SAVEPOINT active_record_2
878
950
   (0.1ms) SAVEPOINT active_record_2
879
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-04-29 16:46:32.431271"], ["updated_at", "2015-04-29 16:46:32.431271"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
951
+ 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", "183"], ["created_at", "2015-06-01 13:28:58.528112"], ["updated_at", "2015-06-01 13:28:58.528112"], ["file_ext", "png"], ["mime_type", "image/png"]]
880
952
   (0.1ms) RELEASE SAVEPOINT active_record_2
881
953
   (0.1ms) SAVEPOINT active_record_2
882
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-04-29 16:46:32.433541"], ["updated_at", "2015-04-29 16:46:32.433541"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "184"], ["created_at", "2015-06-01 13:28:58.530454"], ["updated_at", "2015-06-01 13:28:58.530454"], ["file_ext", "png"], ["mime_type", "image/png"]]
883
955
   (0.1ms) RELEASE SAVEPOINT active_record_2
884
956
   (0.1ms) SAVEPOINT active_record_2
885
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-04-29 16:46:32.435717"], ["updated_at", "2015-04-29 16:46:32.435717"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "185"], ["created_at", "2015-06-01 13:28:58.533027"], ["updated_at", "2015-06-01 13:28:58.533027"], ["file_ext", "png"], ["mime_type", "image/png"]]
886
958
   (0.1ms) RELEASE SAVEPOINT active_record_2
959
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
960
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
961
+  (0.1ms) ROLLBACK
962
+  (0.1ms) BEGIN
963
+ -------------------------------------------------------------------------------------
964
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
965
+ -------------------------------------------------------------------------------------
966
+  (0.1ms) SAVEPOINT active_record_1
967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
968
+  (0.1ms) SAVEPOINT active_record_1
969
+ Processing by PushType::WysiwygMediaController#create as JSON
970
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9451fa2160 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-xbh0xp>>}}
971
+  (0.1ms) SAVEPOINT active_record_2
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", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-06-01 13:28:58.540771"], ["updated_at", "2015-06-01 13:28:58.540771"], ["file_ext", "png"], ["mime_type", "image/png"]]
973
+  (0.1ms) RELEASE SAVEPOINT active_record_2
974
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
975
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
976
+  (0.1ms) ROLLBACK
977
+  (0.1ms) BEGIN
978
+ -------------------------------------------------------------------------------------
979
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
980
+ -------------------------------------------------------------------------------------
981
+  (0.0ms) SAVEPOINT active_record_1
982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
983
+  (0.0ms) SAVEPOINT active_record_1
984
+ Processing by PushType::WysiwygMediaController#create as JSON
985
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f94515b5ee0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-1kiusaf>>}}
887
986
   (0.1ms) SAVEPOINT active_record_2
888
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-04-29 16:46:32.437814"], ["updated_at", "2015-04-29 16:46:32.437814"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
987
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-06-01 13:28:58.546631"], ["updated_at", "2015-06-01 13:28:58.546631"], ["file_ext", "png"], ["mime_type", "image/png"]]
889
988
   (0.1ms) RELEASE SAVEPOINT active_record_2
989
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
990
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
991
+  (0.1ms) ROLLBACK
992
+  (0.1ms) BEGIN
993
+ -------------------------------------------------------------------------------------
994
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
995
+ -------------------------------------------------------------------------------------
996
+  (0.1ms) SAVEPOINT active_record_1
997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
998
+  (0.0ms) SAVEPOINT active_record_1
999
+ Processing by PushType::WysiwygMediaController#create as JSON
1000
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9451f188e8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-k26hy3>>}}
890
1001
   (0.1ms) SAVEPOINT active_record_2
891
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "196"], ["created_at", "2015-04-29 16:46:32.440068"], ["updated_at", "2015-04-29 16:46:32.440068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1002
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "188"], ["created_at", "2015-06-01 13:28:58.552875"], ["updated_at", "2015-06-01 13:28:58.552875"], ["file_ext", "png"], ["mime_type", "image/png"]]
892
1003
   (0.1ms) RELEASE SAVEPOINT active_record_2
1004
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1005
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1006
+  (0.1ms) ROLLBACK
1007
+  (0.1ms) BEGIN
1008
+ ----------------------------------------------------------------------
1009
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
1010
+ ----------------------------------------------------------------------
1011
+  (0.1ms) SAVEPOINT active_record_1
1012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
+  (0.0ms) SAVEPOINT active_record_1
893
1014
   (0.1ms) SAVEPOINT active_record_2
894
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "197"], ["created_at", "2015-04-29 16:46:32.442281"], ["updated_at", "2015-04-29 16:46:32.442281"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1015
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-06-01 13:28:58.558129"], ["updated_at", "2015-06-01 13:28:58.558129"], ["file_ext", "png"], ["mime_type", "image/png"]]
895
1016
   (0.1ms) RELEASE SAVEPOINT active_record_2
1017
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1018
+  (0.1ms) ROLLBACK
1019
+  (0.1ms) BEGIN
1020
+ ----------------------------------------------------------------------
1021
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
1022
+ ----------------------------------------------------------------------
1023
+  (0.1ms) SAVEPOINT active_record_1
1024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1025
+  (0.0ms) SAVEPOINT active_record_1
896
1026
   (0.1ms) SAVEPOINT active_record_2
897
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-04-29 16:46:32.444578"], ["updated_at", "2015-04-29 16:46:32.444578"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1027
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-06-01 13:28:58.562355"], ["updated_at", "2015-06-01 13:28:58.562355"], ["file_ext", "png"], ["mime_type", "image/png"]]
898
1028
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1030
+  (0.1ms) ROLLBACK
1031
+  (0.1ms) BEGIN
1032
+ ----------------------------------------------------------------------
1033
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
1034
+ ----------------------------------------------------------------------
1035
+  (0.0ms) SAVEPOINT active_record_1
1036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1037
+  (0.0ms) SAVEPOINT active_record_1
899
1038
   (0.1ms) SAVEPOINT active_record_2
900
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-04-29 16:46:32.446789"], ["updated_at", "2015-04-29 16:46:32.446789"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "191"], ["created_at", "2015-06-01 13:28:58.566039"], ["updated_at", "2015-06-01 13:28:58.566039"], ["file_ext", "png"], ["mime_type", "image/png"]]
901
1040
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1042
+  (0.1ms) ROLLBACK
1043
+  (0.0ms) BEGIN
1044
+ ----------------------------------------------------------------------
1045
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
1046
+ ----------------------------------------------------------------------
1047
+  (0.1ms) SAVEPOINT active_record_1
1048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1049
+  (0.0ms) SAVEPOINT active_record_1
902
1050
   (0.1ms) SAVEPOINT active_record_2
903
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-04-29 16:46:32.448847"], ["updated_at", "2015-04-29 16:46:32.448847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1051
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-06-01 13:28:58.570126"], ["updated_at", "2015-06-01 13:28:58.570126"], ["file_ext", "png"], ["mime_type", "image/png"]]
904
1052
   (0.1ms) RELEASE SAVEPOINT active_record_2
905
- Processing by PushType::WysiwygMediaController#index as JSON
906
- Parameters: {"filter"=>"file"}
907
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
908
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
909
- Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms)
910
1053
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
911
1054
   (0.1ms) ROLLBACK
912
1055
   (0.1ms) BEGIN
913
- --------------------------------------------------------------------------------------
914
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
915
- --------------------------------------------------------------------------------------
1056
+ ----------------------------------------------------------------------
1057
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
1058
+ ----------------------------------------------------------------------
1059
+  (0.1ms) SAVEPOINT active_record_1
1060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
916
1061
   (0.1ms) SAVEPOINT active_record_1
1062
+  (0.1ms) SAVEPOINT active_record_2
1063
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-06-01 13:28:58.574425"], ["updated_at", "2015-06-01 13:28:58.574425"], ["file_ext", "png"], ["mime_type", "image/png"]]
1064
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1065
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1066
+  (0.1ms) ROLLBACK
1067
+  (0.1ms) BEGIN
1068
+ ----------------------------------------------------------------------
1069
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
1070
+ ----------------------------------------------------------------------
1071
+  (0.0ms) SAVEPOINT active_record_1
1072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1073
+  (0.0ms) SAVEPOINT active_record_1
1074
+  (0.1ms) SAVEPOINT active_record_2
1075
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-06-01 13:28:58.578274"], ["updated_at", "2015-06-01 13:28:58.578274"], ["file_ext", "png"], ["mime_type", "image/png"]]
1076
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1077
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1078
+  (0.1ms) ROLLBACK
1079
+  (0.0ms) BEGIN
1080
+ ----------------------------------------------------------------------
1081
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
1082
+ ----------------------------------------------------------------------
1083
+  (0.0ms) SAVEPOINT active_record_1
917
1084
   (0.0ms) RELEASE SAVEPOINT active_record_1
918
1085
   (0.0ms) SAVEPOINT active_record_1
919
1086
   (0.1ms) SAVEPOINT active_record_2
920
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "201"], ["created_at", "2015-04-29 16:46:32.464576"], ["updated_at", "2015-04-29 16:46:32.464576"], ["file_ext", "png"], ["mime_type", "image/png"]]
1087
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-06-01 13:28:58.582365"], ["updated_at", "2015-06-01 13:28:58.582365"], ["file_ext", "png"], ["mime_type", "image/png"]]
921
1088
   (0.1ms) RELEASE SAVEPOINT active_record_2
1089
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1090
+  (0.1ms) ROLLBACK
1091
+  (0.1ms) BEGIN
1092
+ --------------------------------------------------------------------------------------
1093
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
1094
+ --------------------------------------------------------------------------------------
1095
+  (0.1ms) SAVEPOINT active_record_1
1096
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.1ms) SAVEPOINT active_record_1
922
1098
   (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", "image.png"], ["file_size", 2643], ["file_uid", "202"], ["created_at", "2015-04-29 16:46:32.466726"], ["updated_at", "2015-04-29 16:46:32.466726"], ["file_ext", "png"], ["mime_type", "image/png"]]
1099
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "196"], ["created_at", "2015-06-01 13:28:58.587985"], ["updated_at", "2015-06-01 13:28:58.587985"], ["file_ext", "png"], ["mime_type", "image/png"]]
924
1100
   (0.1ms) RELEASE SAVEPOINT active_record_2
925
1101
   (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", "image.png"], ["file_size", 2643], ["file_uid", "203"], ["created_at", "2015-04-29 16:46:32.468754"], ["updated_at", "2015-04-29 16:46:32.468754"], ["file_ext", "png"], ["mime_type", "image/png"]]
1102
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-06-01 13:28:58.590209"], ["updated_at", "2015-06-01 13:28:58.590209"], ["file_ext", "png"], ["mime_type", "image/png"]]
927
1103
   (0.1ms) RELEASE SAVEPOINT active_record_2
928
1104
   (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", "image.png"], ["file_size", 2643], ["file_uid", "204"], ["created_at", "2015-04-29 16:46:32.470989"], ["updated_at", "2015-04-29 16:46:32.470989"], ["file_ext", "png"], ["mime_type", "image/png"]]
1105
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-06-01 13:28:58.592413"], ["updated_at", "2015-06-01 13:28:58.592413"], ["file_ext", "png"], ["mime_type", "image/png"]]
930
1106
   (0.1ms) RELEASE SAVEPOINT active_record_2
931
1107
   (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", "image.png"], ["file_size", 2643], ["file_uid", "205"], ["created_at", "2015-04-29 16:46:32.473021"], ["updated_at", "2015-04-29 16:46:32.473021"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "199"], ["created_at", "2015-06-01 13:28:58.594664"], ["updated_at", "2015-06-01 13:28:58.594664"], ["file_ext", "png"], ["mime_type", "image/png"]]
933
1109
   (0.1ms) RELEASE SAVEPOINT active_record_2
934
1110
   (0.1ms) SAVEPOINT active_record_2
935
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-04-29 16:46:32.475273"], ["updated_at", "2015-04-29 16:46:32.475273"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "200"], ["created_at", "2015-06-01 13:28:58.596795"], ["updated_at", "2015-06-01 13:28:58.596795"], ["file_ext", "png"], ["mime_type", "image/png"]]
936
1112
   (0.1ms) RELEASE SAVEPOINT active_record_2
937
1113
   (0.1ms) SAVEPOINT active_record_2
938
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-04-29 16:46:32.477318"], ["updated_at", "2015-04-29 16:46:32.477318"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-06-01 13:28:58.598878"], ["updated_at", "2015-06-01 13:28:58.598878"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
939
1115
   (0.1ms) RELEASE SAVEPOINT active_record_2
940
1116
   (0.1ms) SAVEPOINT active_record_2
941
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-04-29 16:46:32.479323"], ["updated_at", "2015-04-29 16:46:32.479323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1117
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-06-01 13:28:58.601169"], ["updated_at", "2015-06-01 13:28:58.601169"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
942
1118
   (0.1ms) RELEASE SAVEPOINT active_record_2
943
1119
   (0.1ms) SAVEPOINT active_record_2
944
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-04-29 16:46:32.481304"], ["updated_at", "2015-04-29 16:46:32.481304"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1120
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-06-01 13:28:58.603473"], ["updated_at", "2015-06-01 13:28:58.603473"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
945
1121
   (0.1ms) RELEASE SAVEPOINT active_record_2
946
1122
   (0.1ms) SAVEPOINT active_record_2
947
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-04-29 16:46:32.483275"], ["updated_at", "2015-04-29 16:46:32.483275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1123
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.605992"], ["updated_at", "2015-06-01 13:28:58.605992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
948
1124
   (0.1ms) RELEASE SAVEPOINT active_record_2
949
1125
   (0.1ms) SAVEPOINT active_record_2
950
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-04-29 16:46:32.485262"], ["updated_at", "2015-04-29 16:46:32.485262"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1126
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.608388"], ["updated_at", "2015-06-01 13:28:58.608388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
951
1127
   (0.1ms) RELEASE SAVEPOINT active_record_2
952
1128
   (0.1ms) SAVEPOINT active_record_2
953
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-04-29 16:46:32.487256"], ["updated_at", "2015-04-29 16:46:32.487256"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1129
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-06-01 13:28:58.610536"], ["updated_at", "2015-06-01 13:28:58.610536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
954
1130
   (0.1ms) RELEASE SAVEPOINT active_record_2
955
1131
   (0.1ms) SAVEPOINT active_record_2
956
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-04-29 16:46:32.489202"], ["updated_at", "2015-04-29 16:46:32.489202"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1132
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-06-01 13:28:58.612791"], ["updated_at", "2015-06-01 13:28:58.612791"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
957
1133
   (0.1ms) RELEASE SAVEPOINT active_record_2
958
1134
   (0.1ms) SAVEPOINT active_record_2
959
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "214"], ["created_at", "2015-04-29 16:46:32.491153"], ["updated_at", "2015-04-29 16:46:32.491153"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1135
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-06-01 13:28:58.614953"], ["updated_at", "2015-06-01 13:28:58.614953"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
960
1136
   (0.1ms) RELEASE SAVEPOINT active_record_2
961
1137
   (0.1ms) SAVEPOINT active_record_2
962
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "215"], ["created_at", "2015-04-29 16:46:32.493094"], ["updated_at", "2015-04-29 16:46:32.493094"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1138
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-06-01 13:28:58.617444"], ["updated_at", "2015-06-01 13:28:58.617444"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
963
1139
   (0.1ms) RELEASE SAVEPOINT active_record_2
964
1140
   (0.1ms) SAVEPOINT active_record_2
965
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-04-29 16:46:32.495086"], ["updated_at", "2015-04-29 16:46:32.495086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1141
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-06-01 13:28:58.619992"], ["updated_at", "2015-06-01 13:28:58.619992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
1142
   (0.1ms) RELEASE SAVEPOINT active_record_2
967
1143
   (0.1ms) SAVEPOINT active_record_2
968
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-04-29 16:46:32.497232"], ["updated_at", "2015-04-29 16:46:32.497232"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1144
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-06-01 13:28:58.622229"], ["updated_at", "2015-06-01 13:28:58.622229"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
969
1145
   (0.1ms) RELEASE SAVEPOINT active_record_2
970
1146
   (0.1ms) SAVEPOINT active_record_2
971
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "218"], ["created_at", "2015-04-29 16:46:32.533250"], ["updated_at", "2015-04-29 16:46:32.533250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1147
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-06-01 13:28:58.624427"], ["updated_at", "2015-06-01 13:28:58.624427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
972
1148
   (0.1ms) RELEASE SAVEPOINT active_record_2
1149
+  (0.1ms) SAVEPOINT active_record_2
1150
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-06-01 13:28:58.626622"], ["updated_at", "2015-06-01 13:28:58.626622"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
+  (0.1ms) RELEASE SAVEPOINT active_record_2
973
1152
  Processing by PushType::WysiwygMediaController#index as JSON
974
1153
  Parameters: {"filter"=>"file"}
975
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
976
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
977
- Completed 200 OK in 10ms (Views: 0.6ms | ActiveRecord: 0.5ms)
978
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
979
-  (0.1ms) ROLLBACK
980
-  (0.1ms) BEGIN
1154
+ PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1155
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1156
+ Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)
1157
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1158
+  (0.2ms) ROLLBACK
1159
+  (0.1ms) BEGIN
981
1160
  --------------------------------------------------------------------------------------
982
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1161
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
983
1162
  --------------------------------------------------------------------------------------
984
-  (0.1ms) SAVEPOINT active_record_1
985
-  (0.0ms) RELEASE SAVEPOINT active_record_1
986
-  (0.0ms) SAVEPOINT active_record_1
987
-  (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", "image.png"], ["file_size", 2643], ["file_uid", "219"], ["created_at", "2015-04-29 16:46:32.548749"], ["updated_at", "2015-04-29 16:46:32.548749"], ["file_ext", "png"], ["mime_type", "image/png"]]
989
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1163
+  (0.0ms) SAVEPOINT active_record_1
1164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1165
+  (0.0ms) SAVEPOINT active_record_1
990
1166
   (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", "image.png"], ["file_size", 2643], ["file_uid", "220"], ["created_at", "2015-04-29 16:46:32.550860"], ["updated_at", "2015-04-29 16:46:32.550860"], ["file_ext", "png"], ["mime_type", "image/png"]]
1167
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-06-01 13:28:58.643394"], ["updated_at", "2015-06-01 13:28:58.643394"], ["file_ext", "png"], ["mime_type", "image/png"]]
992
1168
   (0.1ms) RELEASE SAVEPOINT active_record_2
993
1169
   (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", "image.png"], ["file_size", 2643], ["file_uid", "221"], ["created_at", "2015-04-29 16:46:32.552845"], ["updated_at", "2015-04-29 16:46:32.552845"], ["file_ext", "png"], ["mime_type", "image/png"]]
1170
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-06-01 13:28:58.645441"], ["updated_at", "2015-06-01 13:28:58.645441"], ["file_ext", "png"], ["mime_type", "image/png"]]
995
1171
   (0.1ms) RELEASE SAVEPOINT active_record_2
996
1172
   (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", "image.png"], ["file_size", 2643], ["file_uid", "222"], ["created_at", "2015-04-29 16:46:32.554836"], ["updated_at", "2015-04-29 16:46:32.554836"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "216"], ["created_at", "2015-06-01 13:28:58.647477"], ["updated_at", "2015-06-01 13:28:58.647477"], ["file_ext", "png"], ["mime_type", "image/png"]]
998
1174
   (0.1ms) RELEASE SAVEPOINT active_record_2
999
1175
   (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", "image.png"], ["file_size", 2643], ["file_uid", "223"], ["created_at", "2015-04-29 16:46:32.557713"], ["updated_at", "2015-04-29 16:46:32.557713"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "217"], ["created_at", "2015-06-01 13:28:58.649473"], ["updated_at", "2015-06-01 13:28:58.649473"], ["file_ext", "png"], ["mime_type", "image/png"]]
1001
1177
   (0.1ms) RELEASE SAVEPOINT active_record_2
1002
1178
   (0.1ms) SAVEPOINT active_record_2
1003
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-04-29 16:46:32.560441"], ["updated_at", "2015-04-29 16:46:32.560441"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "218"], ["created_at", "2015-06-01 13:28:58.651496"], ["updated_at", "2015-06-01 13:28:58.651496"], ["file_ext", "png"], ["mime_type", "image/png"]]
1004
1180
   (0.1ms) RELEASE SAVEPOINT active_record_2
1005
1181
   (0.1ms) SAVEPOINT active_record_2
1006
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-04-29 16:46:32.562768"], ["updated_at", "2015-04-29 16:46:32.562768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-06-01 13:28:58.653591"], ["updated_at", "2015-06-01 13:28:58.653591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1007
1183
   (0.1ms) RELEASE SAVEPOINT active_record_2
1008
1184
   (0.1ms) SAVEPOINT active_record_2
1009
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-04-29 16:46:32.565379"], ["updated_at", "2015-04-29 16:46:32.565379"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1185
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-06-01 13:28:58.655768"], ["updated_at", "2015-06-01 13:28:58.655768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1010
1186
   (0.1ms) RELEASE SAVEPOINT active_record_2
1011
1187
   (0.1ms) SAVEPOINT active_record_2
1012
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-04-29 16:46:32.567802"], ["updated_at", "2015-04-29 16:46:32.567802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1188
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-06-01 13:28:58.657785"], ["updated_at", "2015-06-01 13:28:58.657785"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1013
1189
   (0.1ms) RELEASE SAVEPOINT active_record_2
1014
1190
   (0.1ms) SAVEPOINT active_record_2
1015
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-04-29 16:46:32.570074"], ["updated_at", "2015-04-29 16:46:32.570074"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1191
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-06-01 13:28:58.659943"], ["updated_at", "2015-06-01 13:28:58.659943"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1016
1192
   (0.1ms) RELEASE SAVEPOINT active_record_2
1017
1193
   (0.1ms) SAVEPOINT active_record_2
1018
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-04-29 16:46:32.572540"], ["updated_at", "2015-04-29 16:46:32.572540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1194
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-06-01 13:28:58.661919"], ["updated_at", "2015-06-01 13:28:58.661919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1019
1195
   (0.1ms) RELEASE SAVEPOINT active_record_2
1020
1196
   (0.1ms) SAVEPOINT active_record_2
1021
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-04-29 16:46:32.574956"], ["updated_at", "2015-04-29 16:46:32.574956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1197
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-06-01 13:28:58.663851"], ["updated_at", "2015-06-01 13:28:58.663851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1022
1198
   (0.1ms) RELEASE SAVEPOINT active_record_2
1023
1199
   (0.1ms) SAVEPOINT active_record_2
1024
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-04-29 16:46:32.577298"], ["updated_at", "2015-04-29 16:46:32.577298"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1200
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-06-01 13:28:58.700363"], ["updated_at", "2015-06-01 13:28:58.700363"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1025
1201
   (0.1ms) RELEASE SAVEPOINT active_record_2
1026
1202
   (0.1ms) SAVEPOINT active_record_2
1027
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "232"], ["created_at", "2015-04-29 16:46:32.579549"], ["updated_at", "2015-04-29 16:46:32.579549"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1203
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-06-01 13:28:58.702819"], ["updated_at", "2015-06-01 13:28:58.702819"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1028
1204
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
1205
   (0.1ms) SAVEPOINT active_record_2
1030
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "233"], ["created_at", "2015-04-29 16:46:32.581934"], ["updated_at", "2015-04-29 16:46:32.581934"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1206
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "227"], ["created_at", "2015-06-01 13:28:58.704937"], ["updated_at", "2015-06-01 13:28:58.704937"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1031
1207
   (0.1ms) RELEASE SAVEPOINT active_record_2
1032
1208
   (0.1ms) SAVEPOINT active_record_2
1033
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "234"], ["created_at", "2015-04-29 16:46:32.584215"], ["updated_at", "2015-04-29 16:46:32.584215"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1209
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-06-01 13:28:58.707099"], ["updated_at", "2015-06-01 13:28:58.707099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
1210
   (0.1ms) RELEASE SAVEPOINT active_record_2
1035
1211
   (0.1ms) SAVEPOINT active_record_2
1036
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "235"], ["created_at", "2015-04-29 16:46:32.586294"], ["updated_at", "2015-04-29 16:46:32.586294"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1212
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-06-01 13:28:58.709139"], ["updated_at", "2015-06-01 13:28:58.709139"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
1213
   (0.1ms) RELEASE SAVEPOINT active_record_2
1038
1214
   (0.1ms) SAVEPOINT active_record_2
1039
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "236"], ["created_at", "2015-04-29 16:46:32.588511"], ["updated_at", "2015-04-29 16:46:32.588511"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1215
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-06-01 13:28:58.711255"], ["updated_at", "2015-06-01 13:28:58.711255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
1216
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
- Processing by PushType::WysiwygMediaController#index as JSON
1042
- Parameters: {"filter"=>"file"}
1043
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1044
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1045
- Completed 200 OK in 11ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1046
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1047
-  (0.1ms) ROLLBACK
1048
-  (0.1ms) BEGIN
1049
- ----------------------------------------------------------------------
1050
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
1051
- ----------------------------------------------------------------------
1052
-  (0.1ms) SAVEPOINT active_record_1
1053
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1054
-  (0.1ms) SAVEPOINT active_record_1
1055
1217
   (0.1ms) SAVEPOINT active_record_2
1056
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "237"], ["created_at", "2015-04-29 16:46:32.607494"], ["updated_at", "2015-04-29 16:46:32.607494"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-06-01 13:28:58.713519"], ["updated_at", "2015-06-01 13:28:58.713519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1057
1219
   (0.1ms) RELEASE SAVEPOINT active_record_2
1220
+ Processing by PushType::WysiwygMediaController#index as JSON
1221
+ Parameters: {"filter"=>"file"}
1222
+ 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
1223
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1224
+ Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1058
1225
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1059
1226
   (0.1ms) ROLLBACK
1060
1227
   (0.1ms) BEGIN
1061
- ----------------------------------------------------------------------
1062
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
1063
- ----------------------------------------------------------------------
1064
-  (0.1ms) SAVEPOINT active_record_1
1228
+ --------------------------------------------------------------------------------------
1229
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1230
+ --------------------------------------------------------------------------------------
1231
+  (0.0ms) SAVEPOINT active_record_1
1065
1232
   (0.0ms) RELEASE SAVEPOINT active_record_1
1066
1233
   (0.0ms) SAVEPOINT active_record_1
1067
1234
   (0.1ms) SAVEPOINT active_record_2
1068
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "238"], ["created_at", "2015-04-29 16:46:32.611462"], ["updated_at", "2015-04-29 16:46:32.611462"], ["file_ext", "png"], ["mime_type", "image/png"]]
1235
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.731743"], ["updated_at", "2015-06-01 13:28:58.731743"], ["file_ext", "png"], ["mime_type", "image/png"]]
1069
1236
   (0.1ms) RELEASE SAVEPOINT active_record_2
1070
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1071
-  (0.1ms) ROLLBACK
1072
-  (0.1ms) BEGIN
1073
- ----------------------------------------------------------------------
1074
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
1075
- ----------------------------------------------------------------------
1076
-  (0.1ms) SAVEPOINT active_record_1
1077
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1078
-  (0.1ms) SAVEPOINT active_record_1
1079
1237
   (0.1ms) SAVEPOINT active_record_2
1080
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-04-29 16:46:32.615448"], ["updated_at", "2015-04-29 16:46:32.615448"], ["file_ext", "png"], ["mime_type", "image/png"]]
1238
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.734198"], ["updated_at", "2015-06-01 13:28:58.734198"], ["file_ext", "png"], ["mime_type", "image/png"]]
1081
1239
   (0.1ms) RELEASE SAVEPOINT active_record_2
1082
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1083
-  (0.1ms) ROLLBACK
1084
-  (0.1ms) BEGIN
1085
- ----------------------------------------------------------------------
1086
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
1087
- ----------------------------------------------------------------------
1088
-  (0.0ms) SAVEPOINT active_record_1
1089
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1090
-  (0.0ms) SAVEPOINT active_record_1
1091
1240
   (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", "240"], ["created_at", "2015-04-29 16:46:32.619245"], ["updated_at", "2015-04-29 16:46:32.619245"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "234"], ["created_at", "2015-06-01 13:28:58.736392"], ["updated_at", "2015-06-01 13:28:58.736392"], ["file_ext", "png"], ["mime_type", "image/png"]]
1093
1242
   (0.1ms) RELEASE SAVEPOINT active_record_2
1094
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1095
-  (0.1ms) ROLLBACK
1096
-  (0.1ms) BEGIN
1097
- ----------------------------------------------------------------------
1098
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
1099
- ----------------------------------------------------------------------
1100
-  (0.0ms) SAVEPOINT active_record_1
1101
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1102
-  (0.0ms) SAVEPOINT active_record_1
1103
1243
   (0.1ms) SAVEPOINT active_record_2
1104
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-04-29 16:46:32.622922"], ["updated_at", "2015-04-29 16:46:32.622922"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "235"], ["created_at", "2015-06-01 13:28:58.738593"], ["updated_at", "2015-06-01 13:28:58.738593"], ["file_ext", "png"], ["mime_type", "image/png"]]
1105
1245
   (0.1ms) RELEASE SAVEPOINT active_record_2
1106
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1107
-  (0.1ms) ROLLBACK
1108
-  (0.1ms) BEGIN
1109
- ----------------------------------------------------------------------
1110
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
1111
- ----------------------------------------------------------------------
1112
-  (0.1ms) SAVEPOINT active_record_1
1113
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1114
-  (0.0ms) SAVEPOINT active_record_1
1115
1246
   (0.1ms) SAVEPOINT active_record_2
1116
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-04-29 16:46:32.626874"], ["updated_at", "2015-04-29 16:46:32.626874"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "236"], ["created_at", "2015-06-01 13:28:58.740853"], ["updated_at", "2015-06-01 13:28:58.740853"], ["file_ext", "png"], ["mime_type", "image/png"]]
1117
1248
   (0.1ms) RELEASE SAVEPOINT active_record_2
1118
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1119
-  (0.1ms) ROLLBACK
1120
-  (0.1ms) BEGIN
1121
- ----------------------------------------------------------------------
1122
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
1123
- ----------------------------------------------------------------------
1124
-  (0.0ms) SAVEPOINT active_record_1
1125
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1126
-  (0.0ms) SAVEPOINT active_record_1
1127
1249
   (0.1ms) SAVEPOINT active_record_2
1128
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-04-29 16:46:32.630653"], ["updated_at", "2015-04-29 16:46:32.630653"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-06-01 13:28:58.743163"], ["updated_at", "2015-06-01 13:28:58.743163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1129
1251
   (0.1ms) RELEASE SAVEPOINT active_record_2
1130
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1131
-  (0.1ms) ROLLBACK
1132
-  (0.1ms) BEGIN
1133
- ----------------------------------------------------------------------------------------
1134
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
1135
- ----------------------------------------------------------------------------------------
1136
-  (0.1ms) SAVEPOINT active_record_1
1137
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1138
-  (0.1ms) SAVEPOINT active_record_1
1139
- Processing by PushType::WysiwygMediaController#create as JSON
1140
- Parameters: {"asset"=>{}}
1141
-  (0.1ms) SAVEPOINT active_record_2
1142
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1143
- Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 0.2ms)
1144
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1145
-  (0.1ms) ROLLBACK
1146
-  (0.1ms) BEGIN
1147
- ----------------------------------------------------------------------------------------
1148
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
1149
- ----------------------------------------------------------------------------------------
1150
-  (0.1ms) SAVEPOINT active_record_1
1151
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1152
-  (0.0ms) SAVEPOINT active_record_1
1153
- Processing by PushType::WysiwygMediaController#create as JSON
1154
- Parameters: {"asset"=>{}}
1155
-  (0.1ms) SAVEPOINT active_record_2
1156
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1157
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.1ms)
1158
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1159
-  (0.1ms) ROLLBACK
1160
-  (0.1ms) BEGIN
1161
- ----------------------------------------------------------------------------------------
1162
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
1163
- ----------------------------------------------------------------------------------------
1164
-  (0.1ms) SAVEPOINT active_record_1
1165
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1166
-  (0.1ms) SAVEPOINT active_record_1
1167
- Processing by PushType::WysiwygMediaController#create as JSON
1168
- Parameters: {"asset"=>{}}
1169
-  (0.1ms) SAVEPOINT active_record_2
1170
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
1171
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1172
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1173
-  (0.1ms) ROLLBACK
1174
-  (0.1ms) BEGIN
1175
- -----------------------------------------------------------------------
1176
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1177
- -----------------------------------------------------------------------
1178
-  (0.1ms) SAVEPOINT active_record_1
1179
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1180
-  (0.0ms) SAVEPOINT active_record_1
1181
1252
   (0.1ms) SAVEPOINT active_record_2
1182
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2015-04-29 16:46:32.658483"], ["updated_at", "2015-04-29 16:46:32.658483"], ["file_ext", "png"], ["mime_type", "image/png"]]
1253
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-06-01 13:28:58.745468"], ["updated_at", "2015-06-01 13:28:58.745468"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1183
1254
   (0.1ms) RELEASE SAVEPOINT active_record_2
1184
1255
   (0.1ms) SAVEPOINT active_record_2
1185
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-04-29 16:46:32.660978"], ["updated_at", "2015-04-29 16:46:32.660978"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-06-01 13:28:58.747613"], ["updated_at", "2015-06-01 13:28:58.747613"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1186
1257
   (0.1ms) RELEASE SAVEPOINT active_record_2
1187
1258
   (0.1ms) SAVEPOINT active_record_2
1188
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-04-29 16:46:32.663133"], ["updated_at", "2015-04-29 16:46:32.663133"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-06-01 13:28:58.749760"], ["updated_at", "2015-06-01 13:28:58.749760"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1189
1260
   (0.1ms) RELEASE SAVEPOINT active_record_2
1190
1261
   (0.1ms) SAVEPOINT active_record_2
1191
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-04-29 16:46:32.665289"], ["updated_at", "2015-04-29 16:46:32.665289"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "241"], ["created_at", "2015-06-01 13:28:58.751862"], ["updated_at", "2015-06-01 13:28:58.751862"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1192
1263
   (0.1ms) RELEASE SAVEPOINT active_record_2
1193
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1194
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1195
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1196
-  (0.1ms) ROLLBACK
1197
-  (0.1ms) BEGIN
1198
- -----------------------------------------------------------------------
1199
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1200
- -----------------------------------------------------------------------
1201
-  (0.1ms) SAVEPOINT active_record_1
1202
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1203
-  (0.0ms) SAVEPOINT active_record_1
1204
1264
   (0.1ms) SAVEPOINT active_record_2
1205
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-04-29 16:46:32.671011"], ["updated_at", "2015-04-29 16:46:32.671011"], ["file_ext", "png"], ["mime_type", "image/png"]]
1265
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "242"], ["created_at", "2015-06-01 13:28:58.754101"], ["updated_at", "2015-06-01 13:28:58.754101"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1206
1266
   (0.1ms) RELEASE SAVEPOINT active_record_2
1207
1267
   (0.1ms) SAVEPOINT active_record_2
1208
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-04-29 16:46:32.673406"], ["updated_at", "2015-04-29 16:46:32.673406"], ["file_ext", "png"], ["mime_type", "image/png"]]
1268
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "243"], ["created_at", "2015-06-01 13:28:58.756402"], ["updated_at", "2015-06-01 13:28:58.756402"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1209
1269
   (0.1ms) RELEASE SAVEPOINT active_record_2
1210
1270
   (0.1ms) SAVEPOINT active_record_2
1211
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-04-29 16:46:32.675540"], ["updated_at", "2015-04-29 16:46:32.675540"], ["file_ext", "png"], ["mime_type", "image/png"]]
1271
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "244"], ["created_at", "2015-06-01 13:28:58.758722"], ["updated_at", "2015-06-01 13:28:58.758722"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1212
1272
   (0.1ms) RELEASE SAVEPOINT active_record_2
1213
1273
   (0.1ms) SAVEPOINT active_record_2
1214
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-04-29 16:46:32.677841"], ["updated_at", "2015-04-29 16:46:32.677841"], ["file_ext", "png"], ["mime_type", "image/png"]]
1274
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "245"], ["created_at", "2015-06-01 13:28:58.760994"], ["updated_at", "2015-06-01 13:28:58.760994"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1215
1275
   (0.1ms) RELEASE SAVEPOINT active_record_2
1216
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1217
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1218
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1219
-  (0.1ms) ROLLBACK
1220
-  (0.0ms) BEGIN
1221
- -----------------------------------------------------------------------
1222
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1223
- -----------------------------------------------------------------------
1224
-  (0.1ms) SAVEPOINT active_record_1
1225
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1226
-  (0.0ms) SAVEPOINT active_record_1
1227
1276
   (0.1ms) SAVEPOINT active_record_2
1228
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-04-29 16:46:32.683694"], ["updated_at", "2015-04-29 16:46:32.683694"], ["file_ext", "png"], ["mime_type", "image/png"]]
1277
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-06-01 13:28:58.763215"], ["updated_at", "2015-06-01 13:28:58.763215"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1229
1278
   (0.1ms) RELEASE SAVEPOINT active_record_2
1230
1279
   (0.1ms) SAVEPOINT active_record_2
1231
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-04-29 16:46:32.686123"], ["updated_at", "2015-04-29 16:46:32.686123"], ["file_ext", "png"], ["mime_type", "image/png"]]
1280
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-06-01 13:28:58.765874"], ["updated_at", "2015-06-01 13:28:58.765874"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1232
1281
   (0.1ms) RELEASE SAVEPOINT active_record_2
1233
1282
   (0.1ms) SAVEPOINT active_record_2
1234
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-04-29 16:46:32.688232"], ["updated_at", "2015-04-29 16:46:32.688232"], ["file_ext", "png"], ["mime_type", "image/png"]]
1283
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-06-01 13:28:58.768333"], ["updated_at", "2015-06-01 13:28:58.768333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1235
1284
   (0.1ms) RELEASE SAVEPOINT active_record_2
1236
1285
   (0.1ms) SAVEPOINT active_record_2
1237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-04-29 16:46:32.690341"], ["updated_at", "2015-04-29 16:46:32.690341"], ["file_ext", "png"], ["mime_type", "image/png"]]
1286
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-06-01 13:28:58.770544"], ["updated_at", "2015-06-01 13:28:58.770544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1238
1287
   (0.1ms) RELEASE SAVEPOINT active_record_2
1239
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1240
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1288
+ Processing by PushType::WysiwygMediaController#index as JSON
1289
+ Parameters: {"filter"=>"file"}
1290
+ 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
1291
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1292
+ Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1241
1293
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1242
1294
   (0.1ms) ROLLBACK
1243
1295
   (0.1ms) BEGIN
1244
- -----------------------------------------------------------------------
1245
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1246
- -----------------------------------------------------------------------
1296
+ --------------------------------------------------------------------------------------
1297
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1298
+ --------------------------------------------------------------------------------------
1247
1299
   (0.0ms) SAVEPOINT active_record_1
1248
1300
   (0.0ms) RELEASE SAVEPOINT active_record_1
1249
1301
   (0.0ms) SAVEPOINT active_record_1
1250
1302
   (0.1ms) SAVEPOINT active_record_2
1251
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-04-29 16:46:32.696173"], ["updated_at", "2015-04-29 16:46:32.696173"], ["file_ext", "png"], ["mime_type", "image/png"]]
1303
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.787927"], ["updated_at", "2015-06-01 13:28:58.787927"], ["file_ext", "png"], ["mime_type", "image/png"]]
1252
1304
   (0.1ms) RELEASE SAVEPOINT active_record_2
1253
1305
   (0.1ms) SAVEPOINT active_record_2
1254
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-04-29 16:46:32.698519"], ["updated_at", "2015-04-29 16:46:32.698519"], ["file_ext", "png"], ["mime_type", "image/png"]]
1306
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.790123"], ["updated_at", "2015-06-01 13:28:58.790123"], ["file_ext", "png"], ["mime_type", "image/png"]]
1255
1307
   (0.1ms) RELEASE SAVEPOINT active_record_2
1256
1308
   (0.1ms) SAVEPOINT active_record_2
1257
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-04-29 16:46:32.700700"], ["updated_at", "2015-04-29 16:46:32.700700"], ["file_ext", "png"], ["mime_type", "image/png"]]
1309
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.792536"], ["updated_at", "2015-06-01 13:28:58.792536"], ["file_ext", "png"], ["mime_type", "image/png"]]
1258
1310
   (0.1ms) RELEASE SAVEPOINT active_record_2
1259
1311
   (0.1ms) SAVEPOINT active_record_2
1260
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-04-29 16:46:32.702804"], ["updated_at", "2015-04-29 16:46:32.702804"], ["file_ext", "png"], ["mime_type", "image/png"]]
1312
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.794662"], ["updated_at", "2015-06-01 13:28:58.794662"], ["file_ext", "png"], ["mime_type", "image/png"]]
1261
1313
   (0.1ms) RELEASE SAVEPOINT active_record_2
1262
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1263
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1264
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1265
-  (0.2ms) ROLLBACK
1266
-  (0.1ms) BEGIN
1267
- -----------------------------------------------------------------------
1268
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1269
- -----------------------------------------------------------------------
1270
-  (0.0ms) SAVEPOINT active_record_1
1271
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1272
-  (0.1ms) SAVEPOINT active_record_1
1273
1314
   (0.1ms) SAVEPOINT active_record_2
1274
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-04-29 16:46:32.708473"], ["updated_at", "2015-04-29 16:46:32.708473"], ["file_ext", "png"], ["mime_type", "image/png"]]
1315
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06-01 13:28:58.796686"], ["updated_at", "2015-06-01 13:28:58.796686"], ["file_ext", "png"], ["mime_type", "image/png"]]
1275
1316
   (0.1ms) RELEASE SAVEPOINT active_record_2
1276
1317
   (0.1ms) SAVEPOINT active_record_2
1277
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-04-29 16:46:32.710810"], ["updated_at", "2015-04-29 16:46:32.710810"], ["file_ext", "png"], ["mime_type", "image/png"]]
1318
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-06-01 13:28:58.798771"], ["updated_at", "2015-06-01 13:28:58.798771"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1278
1319
   (0.1ms) RELEASE SAVEPOINT active_record_2
1279
1320
   (0.1ms) SAVEPOINT active_record_2
1280
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-04-29 16:46:32.713075"], ["updated_at", "2015-04-29 16:46:32.713075"], ["file_ext", "png"], ["mime_type", "image/png"]]
1321
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-06-01 13:28:58.800847"], ["updated_at", "2015-06-01 13:28:58.800847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1281
1322
   (0.1ms) RELEASE SAVEPOINT active_record_2
1282
1323
   (0.1ms) SAVEPOINT active_record_2
1283
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-04-29 16:46:32.715260"], ["updated_at", "2015-04-29 16:46:32.715260"], ["file_ext", "png"], ["mime_type", "image/png"]]
1324
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-06-01 13:28:58.802926"], ["updated_at", "2015-06-01 13:28:58.802926"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1284
1325
   (0.1ms) RELEASE SAVEPOINT active_record_2
1285
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1286
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1287
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1288
-  (0.1ms) ROLLBACK
1289
-  (0.1ms) BEGIN
1290
- -------------------------------------------------------------------------------------
1291
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
1292
- -------------------------------------------------------------------------------------
1293
-  (0.0ms) SAVEPOINT active_record_1
1294
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1295
-  (0.0ms) SAVEPOINT active_record_1
1296
- Processing by PushType::WysiwygMediaController#create as JSON
1297
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff595d17b20 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-z2jhqq>>}}
1298
1326
   (0.1ms) SAVEPOINT active_record_2
1299
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-04-29 16:46:32.723504"], ["updated_at", "2015-04-29 16:46:32.723504"], ["file_ext", "png"], ["mime_type", "image/png"]]
1327
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "258"], ["created_at", "2015-06-01 13:28:58.804971"], ["updated_at", "2015-06-01 13:28:58.804971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1300
1328
   (0.1ms) RELEASE SAVEPOINT active_record_2
1301
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1302
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1303
-  (0.1ms) ROLLBACK
1304
-  (0.1ms) BEGIN
1305
- -------------------------------------------------------------------------------------
1306
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1307
- -------------------------------------------------------------------------------------
1308
-  (0.1ms) SAVEPOINT active_record_1
1309
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1310
-  (0.1ms) SAVEPOINT active_record_1
1311
- Processing by PushType::WysiwygMediaController#create as JSON
1312
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff595c86eb8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-1ghipio>>}}
1313
1329
   (0.1ms) SAVEPOINT active_record_2
1314
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-04-29 16:46:32.729492"], ["updated_at", "2015-04-29 16:46:32.729492"], ["file_ext", "png"], ["mime_type", "image/png"]]
1330
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "259"], ["created_at", "2015-06-01 13:28:58.807031"], ["updated_at", "2015-06-01 13:28:58.807031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1315
1331
   (0.1ms) RELEASE SAVEPOINT active_record_2
1316
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1317
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1318
-  (0.1ms) ROLLBACK
1319
-  (0.1ms) BEGIN
1320
- -------------------------------------------------------------------------------------
1321
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1322
- -------------------------------------------------------------------------------------
1323
-  (0.0ms) SAVEPOINT active_record_1
1324
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1325
-  (0.0ms) SAVEPOINT active_record_1
1326
- Processing by PushType::WysiwygMediaController#create as JSON
1327
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff595bf6638 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-17uf5z1>>}}
1328
1332
   (0.1ms) SAVEPOINT active_record_2
1329
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-04-29 16:46:32.735292"], ["updated_at", "2015-04-29 16:46:32.735292"], ["file_ext", "png"], ["mime_type", "image/png"]]
1333
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "260"], ["created_at", "2015-06-01 13:28:58.809361"], ["updated_at", "2015-06-01 13:28:58.809361"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1330
1334
   (0.1ms) RELEASE SAVEPOINT active_record_2
1331
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
1332
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1333
-  (0.1ms) ROLLBACK
1334
-  (0.1ms) BEGIN
1335
- --------------------------------------------------------------------------------
1336
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1337
- --------------------------------------------------------------------------------
1338
-  (0.1ms) SAVEPOINT active_record_1
1339
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1340
-  (0.0ms) SAVEPOINT active_record_1
1341
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1342
- Processing by PushType::WysiwygMediaController#create as JSON
1343
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007ff59596a158 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150429-9740-1tde7t3>>}}
1335
+  (0.1ms) SAVEPOINT active_record_2
1336
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-06-01 13:28:58.813656"], ["updated_at", "2015-06-01 13:28:58.813656"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1337
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1344
1338
   (0.1ms) SAVEPOINT active_record_2
1345
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-04-29 16:46:32.742356"], ["updated_at", "2015-04-29 16:46:32.742356"], ["file_ext", "png"], ["mime_type", "image/png"]]
1339
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "262"], ["created_at", "2015-06-01 13:28:58.815998"], ["updated_at", "2015-06-01 13:28:58.815998"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1346
1340
   (0.1ms) RELEASE SAVEPOINT active_record_2
1347
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1348
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1341
+  (0.1ms) SAVEPOINT active_record_2
1342
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-06-01 13:28:58.818185"], ["updated_at", "2015-06-01 13:28:58.818185"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1343
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1344
+  (0.1ms) SAVEPOINT active_record_2
1345
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-06-01 13:28:58.820298"], ["updated_at", "2015-06-01 13:28:58.820298"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1346
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1347
+  (0.1ms) SAVEPOINT active_record_2
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", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-06-01 13:28:58.822681"], ["updated_at", "2015-06-01 13:28:58.822681"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-06-01 13:28:58.824824"], ["updated_at", "2015-06-01 13:28:58.824824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1352
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1353
+  (0.1ms) SAVEPOINT active_record_2
1354
+ 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", "267"], ["created_at", "2015-06-01 13:28:58.827368"], ["updated_at", "2015-06-01 13:28:58.827368"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1355
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1356
+ Processing by PushType::WysiwygMediaController#index as JSON
1357
+ Parameters: {"filter"=>"file"}
1358
+ 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
1359
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1360
+ Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 0.6ms)
1349
1361
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1350
1362
   (0.1ms) ROLLBACK