push_type_wysiwyg 0.3.3 → 0.4.0.beta.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,31 +1,44 @@
1
-  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.9ms) 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 (20150310192221)
4
+ Migrating to CreatePushTypeUsers (20150406131611)
5
5
   (0.1ms) BEGIN
6
6
  SQL (1.8ms) 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, "updated_at" timestamp)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150310192221"]]
7
+  (2.3ms) 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", "20150406131611"]]
9
9
   (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150310192222)
10
+ Migrating to CreatePushTypeNodes (20150406131612)
11
11
   (0.1ms) BEGIN
12
-  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150310192222"]]
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", "20150406131612"]]
14
14
   (0.4ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150310192223)
15
+ Migrating to CreatePushTypeNodeHierarchies (20150406131613)
16
16
   (0.1ms) BEGIN
17
17
   (0.4ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.6ms) CREATE UNIQUE INDEX "anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
-  (0.5ms) CREATE INDEX "desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150310192223"]]
18
+  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
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", "20150406131613"]]
21
21
   (0.4ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150310192224)
22
+ Migrating to CreatePushTypeAssets (20150406131614)
23
23
   (0.1ms) BEGIN
24
-  (2.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp, "updated_at" timestamp, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150310192224"]]
26
-  (0.5ms) COMMIT
27
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
28
-  (1.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
24
+  (2.1ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150406131614"]]
26
+  (0.4ms) COMMIT
27
+ Migrating to CreatePushTypeTaxonomies (20150406131615)
28
+  (0.1ms) BEGIN
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
+  (0.2ms) ALTER TABLE "push_type_assets" ADD "tags" character varying[]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150406131615"]]
32
+  (0.3ms) COMMIT
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150406131616)
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.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", "20150406131616"]]
39
+  (0.5ms) 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
29
42
  FROM pg_constraint c
30
43
  JOIN pg_class t1 ON c.conrelid = t1.oid
31
44
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -36,8 +49,8 @@ WHERE c.contype = 'f'
36
49
  AND t1.relname = 'push_type_assets'
37
50
  AND t3.nspname = ANY (current_schemas(false))
38
51
  ORDER BY c.conname
39
-
40
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
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
41
54
  FROM pg_constraint c
42
55
  JOIN pg_class t1 ON c.conrelid = t1.oid
43
56
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -48,8 +61,8 @@ WHERE c.contype = 'f'
48
61
  AND t1.relname = 'push_type_node_hierarchies'
49
62
  AND t3.nspname = ANY (current_schemas(false))
50
63
  ORDER BY c.conname
51
- 
52
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
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
53
66
  FROM pg_constraint c
54
67
  JOIN pg_class t1 ON c.conrelid = t1.oid
55
68
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -60,8 +73,20 @@ WHERE c.contype = 'f'
60
73
  AND t1.relname = 'push_type_nodes'
61
74
  AND t3.nspname = ANY (current_schemas(false))
62
75
  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
78
+ FROM pg_constraint c
79
+ JOIN pg_class t1 ON c.conrelid = t1.oid
80
+ JOIN pg_class t2 ON c.confrelid = t2.oid
81
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
82
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
83
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
84
+ WHERE c.contype = 'f'
85
+ AND t1.relname = 'push_type_taxonomies'
86
+ AND t3.nspname = ANY (current_schemas(false))
87
+ ORDER BY c.conname
63
88
 
64
-  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
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
65
90
  FROM pg_constraint c
66
91
  JOIN pg_class t1 ON c.conrelid = t1.oid
67
92
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -69,936 +94,1054 @@ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
69
94
  JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
70
95
  JOIN pg_namespace t3 ON c.connamespace = t3.oid
71
96
  WHERE c.contype = 'f'
72
- AND t1.relname = 'push_type_users'
97
+ AND t1.relname = 'push_type_taxonomy_hierarchies'
73
98
  AND t3.nspname = ANY (current_schemas(false))
74
99
  ORDER BY c.conname
75
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
102
+ FROM pg_constraint c
103
+ JOIN pg_class t1 ON c.conrelid = t1.oid
104
+ JOIN pg_class t2 ON c.confrelid = t2.oid
105
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
106
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
107
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
108
+ WHERE c.contype = 'f'
109
+ AND t1.relname = 'push_type_users'
110
+ AND t3.nspname = ANY (current_schemas(false))
111
+ ORDER BY c.conname
112
+
76
113
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
77
-  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL
78
-  (1.0ms)  SELECT schemaname || '.' || tablename
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
+  (0.9ms)  SELECT schemaname || '.' || tablename
79
116
  FROM pg_tables
80
117
  WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
81
118
  
82
-  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
83
-  (7.8ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_assets" RESTART IDENTITY CASCADE;
84
-  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL
119
+  (1.2ms) select table_name from information_schema.views where table_schema = 'dummy_test'
120
+  (10.2ms) 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
+  (0.4ms) 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
85
122
   (0.1ms) BEGIN
86
- --------------------------------------------------------------------------------------
87
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
88
- --------------------------------------------------------------------------------------
123
+ ---------------------------------------------------------------------------------------
124
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
125
+ ---------------------------------------------------------------------------------------
89
126
   (0.1ms) SAVEPOINT active_record_1
90
127
   (0.1ms) RELEASE SAVEPOINT active_record_1
91
-  (0.1ms) SAVEPOINT active_record_1
128
+  (0.0ms) SAVEPOINT active_record_1
92
129
   (0.1ms) SAVEPOINT active_record_2
93
- SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-03-10 19:22:25.903316"], ["updated_at", "2015-03-10 19:22:25.903316"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06 13:16:16.062469"], ["updated_at", "2015-04-06 13:16:16.062469"], ["file_ext", "png"], ["mime_type", "image/png"]]
94
131
   (0.1ms) RELEASE SAVEPOINT active_record_2
95
132
   (0.1ms) SAVEPOINT active_record_2
96
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-03-10 19:22:25.908885"], ["updated_at", "2015-03-10 19:22:25.908885"], ["file_ext", "png"], ["mime_type", "image/png"]]
133
+ 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", "2"], ["created_at", "2015-04-06 13:16:16.068207"], ["updated_at", "2015-04-06 13:16:16.068207"], ["file_ext", "png"], ["mime_type", "image/png"]]
97
134
   (0.1ms) RELEASE SAVEPOINT active_record_2
98
135
   (0.1ms) SAVEPOINT active_record_2
99
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-03-10 19:22:25.911569"], ["updated_at", "2015-03-10 19:22:25.911569"], ["file_ext", "png"], ["mime_type", "image/png"]]
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-06 13:16:16.071048"], ["updated_at", "2015-04-06 13:16:16.071048"], ["file_ext", "png"], ["mime_type", "image/png"]]
100
137
   (0.1ms) RELEASE SAVEPOINT active_record_2
101
138
   (0.1ms) SAVEPOINT active_record_2
102
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-03-10 19:22:25.914121"], ["updated_at", "2015-03-10 19:22:25.914121"], ["file_ext", "png"], ["mime_type", "image/png"]]
139
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-04-06 13:16:16.073518"], ["updated_at", "2015-04-06 13:16:16.073518"], ["file_ext", "png"], ["mime_type", "image/png"]]
103
140
   (0.1ms) RELEASE SAVEPOINT active_record_2
104
141
   (0.1ms) SAVEPOINT active_record_2
105
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-03-10 19:22:25.916602"], ["updated_at", "2015-03-10 19:22:25.916602"], ["file_ext", "png"], ["mime_type", "image/png"]]
142
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.076047"], ["updated_at", "2015-04-06 13:16:16.076047"], ["file_ext", "png"], ["mime_type", "image/png"]]
106
143
   (0.1ms) RELEASE SAVEPOINT active_record_2
107
144
   (0.1ms) SAVEPOINT active_record_2
108
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-03-10 19:22:25.919370"], ["updated_at", "2015-03-10 19:22:25.919370"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-04-06 13:16:16.079607"], ["updated_at", "2015-04-06 13:16:16.079607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
109
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
110
147
   (0.1ms) SAVEPOINT active_record_2
111
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-03-10 19:22:25.921915"], ["updated_at", "2015-03-10 19:22:25.921915"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-04-06 13:16:16.082208"], ["updated_at", "2015-04-06 13:16:16.082208"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
112
149
   (0.1ms) RELEASE SAVEPOINT active_record_2
113
150
   (0.1ms) SAVEPOINT active_record_2
114
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-03-10 19:22:25.925283"], ["updated_at", "2015-03-10 19:22:25.925283"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
151
+ 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", "8"], ["created_at", "2015-04-06 13:16:16.085173"], ["updated_at", "2015-04-06 13:16:16.085173"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
115
152
   (0.1ms) RELEASE SAVEPOINT active_record_2
116
153
   (0.1ms) SAVEPOINT active_record_2
117
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-03-10 19:22:25.928339"], ["updated_at", "2015-03-10 19:22:25.928339"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-04-06 13:16:16.088039"], ["updated_at", "2015-04-06 13:16:16.088039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
118
155
   (0.1ms) RELEASE SAVEPOINT active_record_2
119
156
   (0.1ms) SAVEPOINT active_record_2
120
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-03-10 19:22:25.931065"], ["updated_at", "2015-03-10 19:22:25.931065"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
157
+ 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", "10"], ["created_at", "2015-04-06 13:16:16.090740"], ["updated_at", "2015-04-06 13:16:16.090740"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
121
158
   (0.1ms) RELEASE SAVEPOINT active_record_2
122
159
   (0.1ms) SAVEPOINT active_record_2
123
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-03-10 19:22:25.933730"], ["updated_at", "2015-03-10 19:22:25.933730"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
160
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-04-06 13:16:16.093505"], ["updated_at", "2015-04-06 13:16:16.093505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
124
161
   (0.1ms) RELEASE SAVEPOINT active_record_2
125
162
   (0.1ms) SAVEPOINT active_record_2
126
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-03-10 19:22:25.936293"], ["updated_at", "2015-03-10 19:22:25.936293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
163
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-04-06 13:16:16.096103"], ["updated_at", "2015-04-06 13:16:16.096103"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
127
164
   (0.1ms) RELEASE SAVEPOINT active_record_2
128
165
   (0.1ms) SAVEPOINT active_record_2
129
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-03-10 19:22:25.938854"], ["updated_at", "2015-03-10 19:22:25.938854"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
166
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-04-06 13:16:16.098618"], ["updated_at", "2015-04-06 13:16:16.098618"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
130
167
   (0.1ms) RELEASE SAVEPOINT active_record_2
131
168
   (0.1ms) SAVEPOINT active_record_2
132
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-03-10 19:22:25.941767"], ["updated_at", "2015-03-10 19:22:25.941767"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-04-06 13:16:16.101083"], ["updated_at", "2015-04-06 13:16:16.101083"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
133
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
134
171
   (0.1ms) SAVEPOINT active_record_2
135
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-03-10 19:22:25.944424"], ["updated_at", "2015-03-10 19:22:25.944424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-04-06 13:16:16.103834"], ["updated_at", "2015-04-06 13:16:16.103834"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
136
173
   (0.1ms) RELEASE SAVEPOINT active_record_2
137
174
   (0.1ms) SAVEPOINT active_record_2
138
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-03-10 19:22:25.946963"], ["updated_at", "2015-03-10 19:22:25.946963"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-04-06 13:16:16.106401"], ["updated_at", "2015-04-06 13:16:16.106401"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
139
176
   (0.1ms) RELEASE SAVEPOINT active_record_2
140
177
   (0.1ms) SAVEPOINT active_record_2
141
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-03-10 19:22:25.949544"], ["updated_at", "2015-03-10 19:22:25.949544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-04-06 13:16:16.108992"], ["updated_at", "2015-04-06 13:16:16.108992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
142
179
   (0.1ms) RELEASE SAVEPOINT active_record_2
143
180
   (0.1ms) SAVEPOINT active_record_2
144
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-03-10 19:22:25.952323"], ["updated_at", "2015-03-10 19:22:25.952323"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
181
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-04-06 13:16:16.111464"], ["updated_at", "2015-04-06 13:16:16.111464"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
145
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
146
183
  Processing by PushType::WysiwygMediaController#index as JSON
147
- Parameters: {"filter"=>"file"}
148
- PushType::Asset Load (0.7ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
149
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
150
- Completed 200 OK in 26ms (Views: 0.8ms | ActiveRecord: 0.9ms)
184
+ Parameters: {"filter"=>"image"}
185
+ 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
186
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
187
+ Completed 200 OK in 20ms (Views: 0.4ms | ActiveRecord: 1.0ms)
151
188
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
152
189
   (0.1ms) ROLLBACK
153
190
   (0.1ms) BEGIN
154
- --------------------------------------------------------------------------------------
155
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
156
- --------------------------------------------------------------------------------------
191
+ ---------------------------------------------------------------------------------------
192
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
193
+ ---------------------------------------------------------------------------------------
157
194
   (0.1ms) SAVEPOINT active_record_1
158
-  (0.0ms) RELEASE SAVEPOINT active_record_1
195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
159
196
   (0.0ms) SAVEPOINT active_record_1
160
197
   (0.1ms) SAVEPOINT active_record_2
161
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-03-10 19:22:25.989085"], ["updated_at", "2015-03-10 19:22:25.989085"], ["file_ext", "png"], ["mime_type", "image/png"]]
198
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-04-06 13:16:16.142163"], ["updated_at", "2015-04-06 13:16:16.142163"], ["file_ext", "png"], ["mime_type", "image/png"]]
162
199
   (0.1ms) RELEASE SAVEPOINT active_record_2
163
200
   (0.1ms) SAVEPOINT active_record_2
164
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-03-10 19:22:25.991824"], ["updated_at", "2015-03-10 19:22:25.991824"], ["file_ext", "png"], ["mime_type", "image/png"]]
201
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.151656"], ["updated_at", "2015-04-06 13:16:16.151656"], ["file_ext", "png"], ["mime_type", "image/png"]]
165
202
   (0.1ms) RELEASE SAVEPOINT active_record_2
166
203
   (0.1ms) SAVEPOINT active_record_2
167
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-03-10 19:22:25.994419"], ["updated_at", "2015-03-10 19:22:25.994419"], ["file_ext", "png"], ["mime_type", "image/png"]]
204
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.154405"], ["updated_at", "2015-04-06 13:16:16.154405"], ["file_ext", "png"], ["mime_type", "image/png"]]
168
205
   (0.1ms) RELEASE SAVEPOINT active_record_2
169
206
   (0.1ms) SAVEPOINT active_record_2
170
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-03-10 19:22:25.996913"], ["updated_at", "2015-03-10 19:22:25.996913"], ["file_ext", "png"], ["mime_type", "image/png"]]
207
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-04-06 13:16:16.156947"], ["updated_at", "2015-04-06 13:16:16.156947"], ["file_ext", "png"], ["mime_type", "image/png"]]
171
208
   (0.1ms) RELEASE SAVEPOINT active_record_2
172
209
   (0.1ms) SAVEPOINT active_record_2
173
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-03-10 19:22:25.999688"], ["updated_at", "2015-03-10 19:22:25.999688"], ["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", "23"], ["created_at", "2015-04-06 13:16:16.159408"], ["updated_at", "2015-04-06 13:16:16.159408"], ["file_ext", "png"], ["mime_type", "image/png"]]
174
211
   (0.1ms) RELEASE SAVEPOINT active_record_2
175
212
   (0.1ms) SAVEPOINT active_record_2
176
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-03-10 19:22:26.002270"], ["updated_at", "2015-03-10 19:22:26.002270"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-04-06 13:16:16.161957"], ["updated_at", "2015-04-06 13:16:16.161957"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
177
214
   (0.1ms) RELEASE SAVEPOINT active_record_2
178
215
   (0.1ms) SAVEPOINT active_record_2
179
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-03-10 19:22:26.004759"], ["updated_at", "2015-03-10 19:22:26.004759"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-04-06 13:16:16.164580"], ["updated_at", "2015-04-06 13:16:16.164580"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
180
217
   (0.1ms) RELEASE SAVEPOINT active_record_2
181
218
   (0.1ms) SAVEPOINT active_record_2
182
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-03-10 19:22:26.007210"], ["updated_at", "2015-03-10 19:22:26.007210"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-04-06 13:16:16.167122"], ["updated_at", "2015-04-06 13:16:16.167122"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
183
220
   (0.1ms) RELEASE SAVEPOINT active_record_2
184
221
   (0.1ms) SAVEPOINT active_record_2
185
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-03-10 19:22:26.009744"], ["updated_at", "2015-03-10 19:22:26.009744"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-04-06 13:16:16.169609"], ["updated_at", "2015-04-06 13:16:16.169609"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
186
223
   (0.1ms) RELEASE SAVEPOINT active_record_2
187
224
   (0.1ms) SAVEPOINT active_record_2
188
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-03-10 19:22:26.012291"], ["updated_at", "2015-03-10 19:22:26.012291"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
225
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-04-06 13:16:16.172065"], ["updated_at", "2015-04-06 13:16:16.172065"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
189
226
   (0.1ms) RELEASE SAVEPOINT active_record_2
190
227
   (0.1ms) SAVEPOINT active_record_2
191
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-03-10 19:22:26.014785"], ["updated_at", "2015-03-10 19:22:26.014785"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
228
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-04-06 13:16:16.174836"], ["updated_at", "2015-04-06 13:16:16.174836"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
192
229
   (0.1ms) RELEASE SAVEPOINT active_record_2
193
230
   (0.1ms) SAVEPOINT active_record_2
194
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-03-10 19:22:26.017295"], ["updated_at", "2015-03-10 19:22:26.017295"], ["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", "30"], ["created_at", "2015-04-06 13:16:16.177625"], ["updated_at", "2015-04-06 13:16:16.177625"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
195
232
   (0.1ms) RELEASE SAVEPOINT active_record_2
196
233
   (0.1ms) SAVEPOINT active_record_2
197
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-03-10 19:22:26.019843"], ["updated_at", "2015-03-10 19:22:26.019843"], ["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", "31"], ["created_at", "2015-04-06 13:16:16.180169"], ["updated_at", "2015-04-06 13:16:16.180169"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
198
235
   (0.1ms) RELEASE SAVEPOINT active_record_2
199
236
   (0.1ms) SAVEPOINT active_record_2
200
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-03-10 19:22:26.022815"], ["updated_at", "2015-03-10 19:22:26.022815"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
201
-  (0.2ms) RELEASE SAVEPOINT active_record_2
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", "32"], ["created_at", "2015-04-06 13:16:16.182831"], ["updated_at", "2015-04-06 13:16:16.182831"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
238
+  (0.1ms) RELEASE SAVEPOINT active_record_2
202
239
   (0.1ms) SAVEPOINT active_record_2
203
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-03-10 19:22:26.031995"], ["updated_at", "2015-03-10 19:22:26.031995"], ["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", "33"], ["created_at", "2015-04-06 13:16:16.185519"], ["updated_at", "2015-04-06 13:16:16.185519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
204
241
   (0.1ms) RELEASE SAVEPOINT active_record_2
205
242
   (0.1ms) SAVEPOINT active_record_2
206
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-03-10 19:22:26.034562"], ["updated_at", "2015-03-10 19:22:26.034562"], ["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", "34"], ["created_at", "2015-04-06 13:16:16.188043"], ["updated_at", "2015-04-06 13:16:16.188043"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
207
244
   (0.1ms) RELEASE SAVEPOINT active_record_2
208
245
   (0.1ms) SAVEPOINT active_record_2
209
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-03-10 19:22:26.037070"], ["updated_at", "2015-03-10 19:22:26.037070"], ["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", "35"], ["created_at", "2015-04-06 13:16:16.190749"], ["updated_at", "2015-04-06 13:16:16.190749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
210
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
211
248
   (0.1ms) SAVEPOINT active_record_2
212
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-03-10 19:22:26.039491"], ["updated_at", "2015-03-10 19:22:26.039491"], ["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", "36"], ["created_at", "2015-04-06 13:16:16.193442"], ["updated_at", "2015-04-06 13:16:16.193442"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
213
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
214
251
  Processing by PushType::WysiwygMediaController#index as JSON
215
- Parameters: {"filter"=>"file"}
216
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
217
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
218
- Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.5ms)
252
+ Parameters: {"filter"=>"image"}
253
+ 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
254
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
255
+ Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
219
256
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
220
257
   (0.1ms) ROLLBACK
221
258
   (0.1ms) BEGIN
222
- --------------------------------------------------------------------------------------
223
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
224
- --------------------------------------------------------------------------------------
225
-  (0.1ms) SAVEPOINT active_record_1
226
-  (0.1ms) RELEASE SAVEPOINT active_record_1
227
-  (0.1ms) SAVEPOINT active_record_1
259
+ ---------------------------------------------------------------------------------------
260
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
261
+ ---------------------------------------------------------------------------------------
262
+  (0.0ms) SAVEPOINT active_record_1
263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
264
+  (0.0ms) SAVEPOINT active_record_1
228
265
   (0.1ms) SAVEPOINT active_record_2
229
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-03-10 19:22:26.060717"], ["updated_at", "2015-03-10 19:22:26.060717"], ["file_ext", "png"], ["mime_type", "image/png"]]
266
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-04-06 13:16:16.211484"], ["updated_at", "2015-04-06 13:16:16.211484"], ["file_ext", "png"], ["mime_type", "image/png"]]
230
267
   (0.1ms) RELEASE SAVEPOINT active_record_2
231
268
   (0.1ms) SAVEPOINT active_record_2
232
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-03-10 19:22:26.063417"], ["updated_at", "2015-03-10 19:22:26.063417"], ["file_ext", "png"], ["mime_type", "image/png"]]
269
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-04-06 13:16:16.214259"], ["updated_at", "2015-04-06 13:16:16.214259"], ["file_ext", "png"], ["mime_type", "image/png"]]
233
270
   (0.1ms) RELEASE SAVEPOINT active_record_2
234
271
   (0.1ms) SAVEPOINT active_record_2
235
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-03-10 19:22:26.066036"], ["updated_at", "2015-03-10 19:22:26.066036"], ["file_ext", "png"], ["mime_type", "image/png"]]
272
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.216805"], ["updated_at", "2015-04-06 13:16:16.216805"], ["file_ext", "png"], ["mime_type", "image/png"]]
236
273
   (0.1ms) RELEASE SAVEPOINT active_record_2
237
274
   (0.1ms) SAVEPOINT active_record_2
238
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-03-10 19:22:26.068489"], ["updated_at", "2015-03-10 19:22:26.068489"], ["file_ext", "png"], ["mime_type", "image/png"]]
275
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.219494"], ["updated_at", "2015-04-06 13:16:16.219494"], ["file_ext", "png"], ["mime_type", "image/png"]]
239
276
   (0.1ms) RELEASE SAVEPOINT active_record_2
240
277
   (0.1ms) SAVEPOINT active_record_2
241
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-03-10 19:22:26.071143"], ["updated_at", "2015-03-10 19:22:26.071143"], ["file_ext", "png"], ["mime_type", "image/png"]]
278
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-04-06 13:16:16.222129"], ["updated_at", "2015-04-06 13:16:16.222129"], ["file_ext", "png"], ["mime_type", "image/png"]]
242
279
   (0.1ms) RELEASE SAVEPOINT active_record_2
243
280
   (0.1ms) SAVEPOINT active_record_2
244
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-03-10 19:22:26.073829"], ["updated_at", "2015-03-10 19:22:26.073829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-04-06 13:16:16.224615"], ["updated_at", "2015-04-06 13:16:16.224615"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
245
282
   (0.1ms) RELEASE SAVEPOINT active_record_2
246
283
   (0.1ms) SAVEPOINT active_record_2
247
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-03-10 19:22:26.076378"], ["updated_at", "2015-03-10 19:22:26.076378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-04-06 13:16:16.227161"], ["updated_at", "2015-04-06 13:16:16.227161"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
248
285
   (0.1ms) RELEASE SAVEPOINT active_record_2
249
286
   (0.1ms) SAVEPOINT active_record_2
250
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-03-10 19:22:26.078846"], ["updated_at", "2015-03-10 19:22:26.078846"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-04-06 13:16:16.229669"], ["updated_at", "2015-04-06 13:16:16.229669"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
251
288
   (0.1ms) RELEASE SAVEPOINT active_record_2
252
289
   (0.1ms) SAVEPOINT active_record_2
253
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-03-10 19:22:26.081440"], ["updated_at", "2015-03-10 19:22:26.081440"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-04-06 13:16:16.232350"], ["updated_at", "2015-04-06 13:16:16.232350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
254
291
   (0.1ms) RELEASE SAVEPOINT active_record_2
255
292
   (0.1ms) SAVEPOINT active_record_2
256
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-03-10 19:22:26.084607"], ["updated_at", "2015-03-10 19:22:26.084607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
293
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-04-06 13:16:16.234986"], ["updated_at", "2015-04-06 13:16:16.234986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
257
294
   (0.1ms) RELEASE SAVEPOINT active_record_2
258
295
   (0.1ms) SAVEPOINT active_record_2
259
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-03-10 19:22:26.087942"], ["updated_at", "2015-03-10 19:22:26.087942"], ["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", "47"], ["created_at", "2015-04-06 13:16:16.237576"], ["updated_at", "2015-04-06 13:16:16.237576"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
260
297
   (0.1ms) RELEASE SAVEPOINT active_record_2
261
298
   (0.1ms) SAVEPOINT active_record_2
262
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-03-10 19:22:26.090819"], ["updated_at", "2015-03-10 19:22:26.090819"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-04-06 13:16:16.240046"], ["updated_at", "2015-04-06 13:16:16.240046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
263
300
   (0.1ms) RELEASE SAVEPOINT active_record_2
264
301
   (0.1ms) SAVEPOINT active_record_2
265
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-03-10 19:22:26.093483"], ["updated_at", "2015-03-10 19:22:26.093483"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "49"], ["created_at", "2015-04-06 13:16:16.242544"], ["updated_at", "2015-04-06 13:16:16.242544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
266
303
   (0.1ms) RELEASE SAVEPOINT active_record_2
267
304
   (0.1ms) SAVEPOINT active_record_2
268
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-03-10 19:22:26.096728"], ["updated_at", "2015-03-10 19:22:26.096728"], ["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", "50"], ["created_at", "2015-04-06 13:16:16.245417"], ["updated_at", "2015-04-06 13:16:16.245417"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
269
306
   (0.1ms) RELEASE SAVEPOINT active_record_2
270
307
   (0.1ms) SAVEPOINT active_record_2
271
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-03-10 19:22:26.099491"], ["updated_at", "2015-03-10 19:22:26.099491"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "51"], ["created_at", "2015-04-06 13:16:16.248130"], ["updated_at", "2015-04-06 13:16:16.248130"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
272
309
   (0.1ms) RELEASE SAVEPOINT active_record_2
273
310
   (0.1ms) SAVEPOINT active_record_2
274
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-03-10 19:22:26.102067"], ["updated_at", "2015-03-10 19:22:26.102067"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "52"], ["created_at", "2015-04-06 13:16:16.250989"], ["updated_at", "2015-04-06 13:16:16.250989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
275
312
   (0.1ms) RELEASE SAVEPOINT active_record_2
276
313
   (0.1ms) SAVEPOINT active_record_2
277
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-03-10 19:22:26.104624"], ["updated_at", "2015-03-10 19:22:26.104624"], ["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", "53"], ["created_at", "2015-04-06 13:16:16.253695"], ["updated_at", "2015-04-06 13:16:16.253695"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
278
315
   (0.1ms) RELEASE SAVEPOINT active_record_2
279
316
   (0.1ms) SAVEPOINT active_record_2
280
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-03-10 19:22:26.107435"], ["updated_at", "2015-03-10 19:22:26.107435"], ["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", "54"], ["created_at", "2015-04-06 13:16:16.256539"], ["updated_at", "2015-04-06 13:16:16.256539"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
281
318
   (0.1ms) RELEASE SAVEPOINT active_record_2
282
319
  Processing by PushType::WysiwygMediaController#index as JSON
283
- Parameters: {"filter"=>"file"}
284
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
285
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
286
- Completed 200 OK in 15ms (Views: 0.8ms | ActiveRecord: 0.6ms)
320
+ Parameters: {"filter"=>"image"}
321
+ 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
322
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
323
+ Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 0.5ms)
287
324
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
288
325
   (0.1ms) ROLLBACK
289
326
   (0.1ms) BEGIN
290
- --------------------------------------------------------------------------------------
291
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
292
- --------------------------------------------------------------------------------------
327
+ ---------------------------------------------------------------------------------------
328
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
329
+ ---------------------------------------------------------------------------------------
293
330
   (0.1ms) SAVEPOINT active_record_1
294
-  (0.0ms) RELEASE SAVEPOINT active_record_1
331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
295
332
   (0.1ms) SAVEPOINT active_record_1
296
333
   (0.1ms) SAVEPOINT active_record_2
297
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-03-10 19:22:26.131092"], ["updated_at", "2015-03-10 19:22:26.131092"], ["file_ext", "png"], ["mime_type", "image/png"]]
334
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-04-06 13:16:16.275497"], ["updated_at", "2015-04-06 13:16:16.275497"], ["file_ext", "png"], ["mime_type", "image/png"]]
298
335
   (0.1ms) RELEASE SAVEPOINT active_record_2
299
336
   (0.1ms) SAVEPOINT active_record_2
300
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-03-10 19:22:26.133794"], ["updated_at", "2015-03-10 19:22:26.133794"], ["file_ext", "png"], ["mime_type", "image/png"]]
337
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-04-06 13:16:16.278195"], ["updated_at", "2015-04-06 13:16:16.278195"], ["file_ext", "png"], ["mime_type", "image/png"]]
301
338
   (0.1ms) RELEASE SAVEPOINT active_record_2
302
339
   (0.1ms) SAVEPOINT active_record_2
303
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-03-10 19:22:26.136265"], ["updated_at", "2015-03-10 19:22:26.136265"], ["file_ext", "png"], ["mime_type", "image/png"]]
340
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.280934"], ["updated_at", "2015-04-06 13:16:16.280934"], ["file_ext", "png"], ["mime_type", "image/png"]]
304
341
   (0.1ms) RELEASE SAVEPOINT active_record_2
305
342
   (0.1ms) SAVEPOINT active_record_2
306
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-03-10 19:22:26.138646"], ["updated_at", "2015-03-10 19:22:26.138646"], ["file_ext", "png"], ["mime_type", "image/png"]]
343
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.283557"], ["updated_at", "2015-04-06 13:16:16.283557"], ["file_ext", "png"], ["mime_type", "image/png"]]
307
344
   (0.1ms) RELEASE SAVEPOINT active_record_2
308
345
   (0.1ms) SAVEPOINT active_record_2
309
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-03-10 19:22:26.141312"], ["updated_at", "2015-03-10 19:22:26.141312"], ["file_ext", "png"], ["mime_type", "image/png"]]
346
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-04-06 13:16:16.286006"], ["updated_at", "2015-04-06 13:16:16.286006"], ["file_ext", "png"], ["mime_type", "image/png"]]
310
347
   (0.1ms) RELEASE SAVEPOINT active_record_2
311
348
   (0.1ms) SAVEPOINT active_record_2
312
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-03-10 19:22:26.143978"], ["updated_at", "2015-03-10 19:22:26.143978"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-04-06 13:16:16.288695"], ["updated_at", "2015-04-06 13:16:16.288695"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
313
350
   (0.1ms) RELEASE SAVEPOINT active_record_2
314
351
   (0.1ms) SAVEPOINT active_record_2
315
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-03-10 19:22:26.146511"], ["updated_at", "2015-03-10 19:22:26.146511"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-04-06 13:16:16.291245"], ["updated_at", "2015-04-06 13:16:16.291245"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
316
353
   (0.1ms) RELEASE SAVEPOINT active_record_2
317
354
   (0.1ms) SAVEPOINT active_record_2
318
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-03-10 19:22:26.149083"], ["updated_at", "2015-03-10 19:22:26.149083"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-04-06 13:16:16.293950"], ["updated_at", "2015-04-06 13:16:16.293950"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
319
356
   (0.1ms) RELEASE SAVEPOINT active_record_2
320
357
   (0.1ms) SAVEPOINT active_record_2
321
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-03-10 19:22:26.151536"], ["updated_at", "2015-03-10 19:22:26.151536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-04-06 13:16:16.296581"], ["updated_at", "2015-04-06 13:16:16.296581"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
322
359
   (0.1ms) RELEASE SAVEPOINT active_record_2
323
360
   (0.1ms) SAVEPOINT active_record_2
324
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-03-10 19:22:26.154161"], ["updated_at", "2015-03-10 19:22:26.154161"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
361
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-04-06 13:16:16.299151"], ["updated_at", "2015-04-06 13:16:16.299151"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
325
362
   (0.1ms) RELEASE SAVEPOINT active_record_2
326
363
   (0.1ms) SAVEPOINT active_record_2
327
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-03-10 19:22:26.156796"], ["updated_at", "2015-03-10 19:22:26.156796"], ["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", "65"], ["created_at", "2015-04-06 13:16:16.301684"], ["updated_at", "2015-04-06 13:16:16.301684"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
328
365
   (0.1ms) RELEASE SAVEPOINT active_record_2
329
366
   (0.1ms) SAVEPOINT active_record_2
330
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-03-10 19:22:26.159367"], ["updated_at", "2015-03-10 19:22:26.159367"], ["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", "66"], ["created_at", "2015-04-06 13:16:16.304257"], ["updated_at", "2015-04-06 13:16:16.304257"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
331
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
332
369
   (0.1ms) SAVEPOINT active_record_2
333
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-03-10 19:22:26.161840"], ["updated_at", "2015-03-10 19:22:26.161840"], ["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", "67"], ["created_at", "2015-04-06 13:16:16.332248"], ["updated_at", "2015-04-06 13:16:16.332248"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
334
371
   (0.1ms) RELEASE SAVEPOINT active_record_2
335
372
   (0.1ms) SAVEPOINT active_record_2
336
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-03-10 19:22:26.164478"], ["updated_at", "2015-03-10 19:22:26.164478"], ["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", "68"], ["created_at", "2015-04-06 13:16:16.335340"], ["updated_at", "2015-04-06 13:16:16.335340"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
337
374
   (0.1ms) RELEASE SAVEPOINT active_record_2
338
375
   (0.1ms) SAVEPOINT active_record_2
339
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-03-10 19:22:26.167176"], ["updated_at", "2015-03-10 19:22:26.167176"], ["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", "69"], ["created_at", "2015-04-06 13:16:16.338335"], ["updated_at", "2015-04-06 13:16:16.338335"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
340
377
   (0.1ms) RELEASE SAVEPOINT active_record_2
341
378
   (0.1ms) SAVEPOINT active_record_2
342
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-03-10 19:22:26.169722"], ["updated_at", "2015-03-10 19:22:26.169722"], ["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", "70"], ["created_at", "2015-04-06 13:16:16.341155"], ["updated_at", "2015-04-06 13:16:16.341155"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
343
380
   (0.1ms) RELEASE SAVEPOINT active_record_2
344
381
   (0.1ms) SAVEPOINT active_record_2
345
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-03-10 19:22:26.172288"], ["updated_at", "2015-03-10 19:22:26.172288"], ["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", "71"], ["created_at", "2015-04-06 13:16:16.344082"], ["updated_at", "2015-04-06 13:16:16.344082"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
346
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
347
384
   (0.1ms) SAVEPOINT active_record_2
348
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-03-10 19:22:26.174880"], ["updated_at", "2015-03-10 19:22:26.174880"], ["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", "72"], ["created_at", "2015-04-06 13:16:16.346873"], ["updated_at", "2015-04-06 13:16:16.346873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
349
386
   (0.1ms) RELEASE SAVEPOINT active_record_2
350
387
  Processing by PushType::WysiwygMediaController#index as JSON
351
- Parameters: {"filter"=>"file"}
352
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
353
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
354
- Completed 200 OK in 39ms (Views: 0.8ms | ActiveRecord: 0.5ms)
388
+ Parameters: {"filter"=>"image"}
389
+ 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
390
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
391
+ Completed 200 OK in 11ms (Views: 0.5ms | ActiveRecord: 0.5ms)
355
392
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
356
393
   (0.2ms) ROLLBACK
357
394
   (0.1ms) BEGIN
358
- -------------------------------------------------------------------------------------
359
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
360
- -------------------------------------------------------------------------------------
395
+ ----------------------------------------------------------------------------------------
396
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
397
+ ----------------------------------------------------------------------------------------
361
398
   (0.1ms) SAVEPOINT active_record_1
362
399
   (0.1ms) RELEASE SAVEPOINT active_record_1
363
400
   (0.0ms) SAVEPOINT active_record_1
364
401
  Processing by PushType::WysiwygMediaController#create as JSON
365
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fec03b44a50 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-s2ssbv>>}}
402
+ Parameters: {"asset"=>{}}
366
403
   (0.1ms) SAVEPOINT active_record_2
367
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-03-10 19:22:26.231718"], ["updated_at", "2015-03-10 19:22:26.231718"], ["file_ext", "png"], ["mime_type", "image/png"]]
368
-  (0.1ms) RELEASE SAVEPOINT active_record_2
369
- Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.3ms)
370
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
371
-  (0.1ms) ROLLBACK
372
-  (0.1ms) BEGIN
373
- -------------------------------------------------------------------------------------
374
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
375
- -------------------------------------------------------------------------------------
376
-  (0.1ms) SAVEPOINT active_record_1
377
-  (0.0ms) RELEASE SAVEPOINT active_record_1
378
-  (0.1ms) SAVEPOINT active_record_1
379
- Processing by PushType::WysiwygMediaController#create as JSON
380
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fec03965130 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-pvl1v2>>}}
381
-  (0.2ms) SAVEPOINT active_record_2
382
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-03-10 19:22:26.240925"], ["updated_at", "2015-03-10 19:22:26.240925"], ["file_ext", "png"], ["mime_type", "image/png"]]
383
-  (0.1ms) RELEASE SAVEPOINT active_record_2
384
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
404
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
405
+ Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.2ms)
385
406
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
386
407
   (0.1ms) ROLLBACK
387
408
   (0.1ms) BEGIN
388
- -------------------------------------------------------------------------------------
389
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
390
- -------------------------------------------------------------------------------------
391
-  (0.1ms) SAVEPOINT active_record_1
392
-  (0.1ms) RELEASE SAVEPOINT active_record_1
393
-  (0.1ms) SAVEPOINT active_record_1
394
- Processing by PushType::WysiwygMediaController#create as JSON
395
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007febfdf2f5d0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-sezb2e>>}}
396
-  (0.1ms) SAVEPOINT active_record_2
397
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-03-10 19:22:26.249228"], ["updated_at", "2015-03-10 19:22:26.249228"], ["file_ext", "png"], ["mime_type", "image/png"]]
398
-  (0.1ms) RELEASE SAVEPOINT active_record_2
399
- Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
400
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
401
-  (0.1ms) ROLLBACK
402
-  (0.1ms) BEGIN
403
409
  ----------------------------------------------------------------------------------------
404
410
  PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
405
411
  ----------------------------------------------------------------------------------------
406
-  (0.1ms) SAVEPOINT active_record_1
407
-  (0.1ms) RELEASE SAVEPOINT active_record_1
408
-  (0.1ms) SAVEPOINT active_record_1
409
- Processing by PushType::WysiwygMediaController#create as JSON
410
- Parameters: {"asset"=>{}}
411
-  (0.1ms) SAVEPOINT active_record_2
412
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
413
- Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.2ms)
414
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
415
-  (0.1ms) ROLLBACK
416
-  (0.1ms) BEGIN
417
- ----------------------------------------------------------------------------------------
418
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
419
- ----------------------------------------------------------------------------------------
420
-  (0.1ms) SAVEPOINT active_record_1
421
-  (0.1ms) RELEASE SAVEPOINT active_record_1
422
-  (0.1ms) SAVEPOINT active_record_1
412
+  (0.1ms) SAVEPOINT active_record_1
413
+  (0.1ms) RELEASE SAVEPOINT active_record_1
414
+  (0.1ms) SAVEPOINT active_record_1
423
415
  Processing by PushType::WysiwygMediaController#create as JSON
424
416
  Parameters: {"asset"=>{}}
425
-  (0.1ms) SAVEPOINT active_record_2
426
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
417
+  (0.1ms) SAVEPOINT active_record_2
418
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
427
419
  Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
428
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
429
-  (0.1ms) ROLLBACK
430
-  (0.1ms) BEGIN
420
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
421
+  (0.1ms) ROLLBACK
422
+  (0.1ms) BEGIN
431
423
  ----------------------------------------------------------------------------------------
432
424
  PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
433
425
  ----------------------------------------------------------------------------------------
434
-  (0.1ms) SAVEPOINT active_record_1
435
-  (0.0ms) RELEASE SAVEPOINT active_record_1
436
-  (0.0ms) SAVEPOINT active_record_1
426
+  (0.1ms) SAVEPOINT active_record_1
427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
428
+  (0.0ms) SAVEPOINT active_record_1
437
429
  Processing by PushType::WysiwygMediaController#create as JSON
438
430
  Parameters: {"asset"=>{}}
439
-  (0.1ms) SAVEPOINT active_record_2
440
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
431
+  (0.1ms) SAVEPOINT active_record_2
432
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
441
433
  Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
434
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
435
+  (0.1ms) ROLLBACK
436
+  (0.1ms) BEGIN
437
+ -------------------------------------------------------------------------------------
438
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
439
+ -------------------------------------------------------------------------------------
440
+  (0.1ms) SAVEPOINT active_record_1
441
+  (0.1ms) RELEASE SAVEPOINT active_record_1
442
+  (0.1ms) SAVEPOINT active_record_1
443
+ Processing by PushType::WysiwygMediaController#create as JSON
444
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fd544ad83f8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150406-22663-1wysri9>>}}
445
+  (0.1ms) SAVEPOINT active_record_2
446
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-04-06 13:16:16.395955"], ["updated_at", "2015-04-06 13:16:16.395955"], ["file_ext", "png"], ["mime_type", "image/png"]]
447
+  (0.1ms) RELEASE SAVEPOINT active_record_2
448
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
442
449
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
443
450
   (0.1ms) ROLLBACK
444
451
   (0.1ms) BEGIN
445
- ----------------------------------------------------------------------
446
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
447
- ----------------------------------------------------------------------
448
-  (0.1ms) SAVEPOINT active_record_1
452
+ -------------------------------------------------------------------------------------
453
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
454
+ -------------------------------------------------------------------------------------
455
+  (0.0ms) SAVEPOINT active_record_1
449
456
   (0.1ms) RELEASE SAVEPOINT active_record_1
450
457
   (0.0ms) SAVEPOINT active_record_1
458
+ Processing by PushType::WysiwygMediaController#create as JSON
459
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fd5449b2ff0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150406-22663-f0e9hn>>}}
451
460
   (0.1ms) SAVEPOINT active_record_2
452
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-03-10 19:22:26.278016"], ["updated_at", "2015-03-10 19:22:26.278016"], ["file_ext", "png"], ["mime_type", "image/png"]]
461
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-04-06 13:16:16.404764"], ["updated_at", "2015-04-06 13:16:16.404764"], ["file_ext", "png"], ["mime_type", "image/png"]]
453
462
   (0.1ms) RELEASE SAVEPOINT active_record_2
463
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
454
464
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
455
465
   (0.1ms) ROLLBACK
456
466
   (0.1ms) BEGIN
457
- ----------------------------------------------------------------------
458
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
459
- ----------------------------------------------------------------------
467
+ -------------------------------------------------------------------------------------
468
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
469
+ -------------------------------------------------------------------------------------
460
470
   (0.1ms) SAVEPOINT active_record_1
461
471
   (0.1ms) RELEASE SAVEPOINT active_record_1
462
472
   (0.1ms) SAVEPOINT active_record_1
473
+ Processing by PushType::WysiwygMediaController#create as JSON
474
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fd548e3c838 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150406-22663-xq2z15>>}}
463
475
   (0.1ms) SAVEPOINT active_record_2
464
- SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-03-10 19:22:26.286876"], ["updated_at", "2015-03-10 19:22:26.286876"], ["file_ext", "png"], ["mime_type", "image/png"]]
476
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-04-06 13:16:16.414034"], ["updated_at", "2015-04-06 13:16:16.414034"], ["file_ext", "png"], ["mime_type", "image/png"]]
465
477
   (0.1ms) RELEASE SAVEPOINT active_record_2
478
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
466
479
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
467
480
   (0.1ms) ROLLBACK
468
481
   (0.1ms) BEGIN
469
- ----------------------------------------------------------------------
470
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
471
- ----------------------------------------------------------------------
482
+ --------------------------------------------------------------------------------------
483
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
484
+ --------------------------------------------------------------------------------------
472
485
   (0.1ms) SAVEPOINT active_record_1
473
486
   (0.0ms) RELEASE SAVEPOINT active_record_1
474
487
   (0.0ms) SAVEPOINT active_record_1
475
488
   (0.1ms) SAVEPOINT active_record_2
476
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-03-10 19:22:26.294209"], ["updated_at", "2015-03-10 19:22:26.294209"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-04-06 13:16:16.420777"], ["updated_at", "2015-04-06 13:16:16.420777"], ["file_ext", "png"], ["mime_type", "image/png"]]
477
490
   (0.1ms) RELEASE SAVEPOINT active_record_2
478
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
479
-  (0.1ms) ROLLBACK
480
-  (0.1ms) BEGIN
481
- ----------------------------------------------------------------------
482
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
483
- ----------------------------------------------------------------------
484
-  (0.0ms) SAVEPOINT active_record_1
485
-  (0.0ms) RELEASE SAVEPOINT active_record_1
486
-  (0.0ms) SAVEPOINT active_record_1
487
491
   (0.1ms) SAVEPOINT active_record_2
488
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "79"], ["created_at", "2015-03-10 19:22:26.301306"], ["updated_at", "2015-03-10 19:22:26.301306"], ["file_ext", "png"], ["mime_type", "image/png"]]
492
+ 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-06 13:16:16.423549"], ["updated_at", "2015-04-06 13:16:16.423549"], ["file_ext", "png"], ["mime_type", "image/png"]]
489
493
   (0.1ms) RELEASE SAVEPOINT active_record_2
490
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
491
-  (0.1ms) ROLLBACK
492
-  (0.1ms) BEGIN
493
- ----------------------------------------------------------------------
494
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
495
- ----------------------------------------------------------------------
496
-  (0.1ms) SAVEPOINT active_record_1
497
-  (0.0ms) RELEASE SAVEPOINT active_record_1
498
-  (0.1ms) SAVEPOINT active_record_1
499
494
   (0.1ms) SAVEPOINT active_record_2
500
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-03-10 19:22:26.308542"], ["updated_at", "2015-03-10 19:22:26.308542"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-04-06 13:16:16.426300"], ["updated_at", "2015-04-06 13:16:16.426300"], ["file_ext", "png"], ["mime_type", "image/png"]]
501
496
   (0.1ms) RELEASE SAVEPOINT active_record_2
502
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
503
-  (0.1ms) ROLLBACK
504
-  (0.1ms) BEGIN
505
- ----------------------------------------------------------------------
506
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
507
- ----------------------------------------------------------------------
508
-  (0.1ms) SAVEPOINT active_record_1
509
-  (0.0ms) RELEASE SAVEPOINT active_record_1
510
-  (0.0ms) SAVEPOINT active_record_1
511
497
   (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", "81"], ["created_at", "2015-03-10 19:22:26.315762"], ["updated_at", "2015-03-10 19:22:26.315762"], ["file_ext", "png"], ["mime_type", "image/png"]]
498
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.429027"], ["updated_at", "2015-04-06 13:16:16.429027"], ["file_ext", "png"], ["mime_type", "image/png"]]
513
499
   (0.1ms) RELEASE SAVEPOINT active_record_2
514
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
515
-  (0.1ms) ROLLBACK
516
-  (0.1ms) BEGIN
517
- ----------------------------------------------------------------------
518
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
519
- ----------------------------------------------------------------------
520
-  (0.0ms) SAVEPOINT active_record_1
521
-  (0.0ms) RELEASE SAVEPOINT active_record_1
522
-  (0.0ms) SAVEPOINT active_record_1
523
500
   (0.1ms) SAVEPOINT active_record_2
524
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "82"], ["created_at", "2015-03-10 19:22:26.322540"], ["updated_at", "2015-03-10 19:22:26.322540"], ["file_ext", "png"], ["mime_type", "image/png"]]
501
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "80"], ["created_at", "2015-04-06 13:16:16.431781"], ["updated_at", "2015-04-06 13:16:16.431781"], ["file_ext", "png"], ["mime_type", "image/png"]]
525
502
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
527
-  (0.1ms) ROLLBACK
528
-  (0.1ms) BEGIN
529
- ---------------------------------------------------------------------------------------
530
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
531
- ---------------------------------------------------------------------------------------
532
-  (0.1ms) SAVEPOINT active_record_1
533
-  (0.1ms) RELEASE SAVEPOINT active_record_1
534
-  (0.1ms) SAVEPOINT active_record_1
535
503
   (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", "image.png"], ["file_size", 2643], ["file_uid", "83"], ["created_at", "2015-03-10 19:22:26.331116"], ["updated_at", "2015-03-10 19:22:26.331116"], ["file_ext", "png"], ["mime_type", "image/png"]]
504
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.434434"], ["updated_at", "2015-04-06 13:16:16.434434"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
537
505
   (0.1ms) RELEASE SAVEPOINT active_record_2
538
506
   (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", "image.png"], ["file_size", 2643], ["file_uid", "84"], ["created_at", "2015-03-10 19:22:26.333963"], ["updated_at", "2015-03-10 19:22:26.333963"], ["file_ext", "png"], ["mime_type", "image/png"]]
507
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.436976"], ["updated_at", "2015-04-06 13:16:16.436976"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
540
508
   (0.1ms) RELEASE SAVEPOINT active_record_2
541
509
   (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", "image.png"], ["file_size", 2643], ["file_uid", "85"], ["created_at", "2015-03-10 19:22:26.336624"], ["updated_at", "2015-03-10 19:22:26.336624"], ["file_ext", "png"], ["mime_type", "image/png"]]
510
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-04-06 13:16:16.439525"], ["updated_at", "2015-04-06 13:16:16.439525"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
543
511
   (0.1ms) RELEASE SAVEPOINT active_record_2
544
512
   (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", "image.png"], ["file_size", 2643], ["file_uid", "86"], ["created_at", "2015-03-10 19:22:26.339252"], ["updated_at", "2015-03-10 19:22:26.339252"], ["file_ext", "png"], ["mime_type", "image/png"]]
513
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-04-06 13:16:16.442427"], ["updated_at", "2015-04-06 13:16:16.442427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
546
514
   (0.1ms) RELEASE SAVEPOINT active_record_2
547
515
   (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", "image.png"], ["file_size", 2643], ["file_uid", "87"], ["created_at", "2015-03-10 19:22:26.342303"], ["updated_at", "2015-03-10 19:22:26.342303"], ["file_ext", "png"], ["mime_type", "image/png"]]
516
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-04-06 13:16:16.445290"], ["updated_at", "2015-04-06 13:16:16.445290"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
549
517
   (0.1ms) RELEASE SAVEPOINT active_record_2
550
518
   (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", "88"], ["created_at", "2015-03-10 19:22:26.345017"], ["updated_at", "2015-03-10 19:22:26.345017"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-04-06 13:16:16.447909"], ["updated_at", "2015-04-06 13:16:16.447909"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
552
520
   (0.1ms) RELEASE SAVEPOINT active_record_2
553
521
   (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", "89"], ["created_at", "2015-03-10 19:22:26.347665"], ["updated_at", "2015-03-10 19:22:26.347665"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.451401"], ["updated_at", "2015-04-06 13:16:16.451401"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
555
523
   (0.1ms) RELEASE SAVEPOINT active_record_2
556
524
   (0.1ms) SAVEPOINT active_record_2
557
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-03-10 19:22:26.350183"], ["updated_at", "2015-03-10 19:22:26.350183"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
525
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.454322"], ["updated_at", "2015-04-06 13:16:16.454322"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
558
526
   (0.1ms) RELEASE SAVEPOINT active_record_2
559
527
   (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", "91"], ["created_at", "2015-03-10 19:22:26.352857"], ["updated_at", "2015-03-10 19:22:26.352857"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
528
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.457029"], ["updated_at", "2015-04-06 13:16:16.457029"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
561
529
   (0.1ms) RELEASE SAVEPOINT active_record_2
562
530
   (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", "92"], ["created_at", "2015-03-10 19:22:26.355385"], ["updated_at", "2015-03-10 19:22:26.355385"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
531
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.459918"], ["updated_at", "2015-04-06 13:16:16.459918"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
564
532
   (0.1ms) RELEASE SAVEPOINT active_record_2
565
533
   (0.1ms) SAVEPOINT active_record_2
566
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-03-10 19:22:26.358160"], ["updated_at", "2015-03-10 19:22:26.358160"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
534
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.462529"], ["updated_at", "2015-04-06 13:16:16.462529"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
567
535
   (0.1ms) RELEASE SAVEPOINT active_record_2
568
536
   (0.1ms) SAVEPOINT active_record_2
569
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "94"], ["created_at", "2015-03-10 19:22:26.360831"], ["updated_at", "2015-03-10 19:22:26.360831"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
537
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.465219"], ["updated_at", "2015-04-06 13:16:16.465219"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
570
538
   (0.1ms) RELEASE SAVEPOINT active_record_2
571
539
   (0.1ms) SAVEPOINT active_record_2
572
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "95"], ["created_at", "2015-03-10 19:22:26.363629"], ["updated_at", "2015-03-10 19:22:26.363629"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
540
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "93"], ["created_at", "2015-04-06 13:16:16.467798"], ["updated_at", "2015-04-06 13:16:16.467798"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
573
541
   (0.1ms) RELEASE SAVEPOINT active_record_2
542
+ Processing by PushType::WysiwygMediaController#index as JSON
543
+ Parameters: {"filter"=>"file"}
544
+ 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
545
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
546
+ Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 0.6ms)
547
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
548
+  (0.1ms) ROLLBACK
549
+  (0.1ms) BEGIN
550
+ --------------------------------------------------------------------------------------
551
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
552
+ --------------------------------------------------------------------------------------
553
+  (0.1ms) SAVEPOINT active_record_1
554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
555
+  (0.0ms) SAVEPOINT active_record_1
574
556
   (0.1ms) SAVEPOINT active_record_2
575
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-03-10 19:22:26.366253"], ["updated_at", "2015-03-10 19:22:26.366253"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-04-06 13:16:16.493492"], ["updated_at", "2015-04-06 13:16:16.493492"], ["file_ext", "png"], ["mime_type", "image/png"]]
576
558
   (0.1ms) RELEASE SAVEPOINT active_record_2
577
559
   (0.1ms) SAVEPOINT active_record_2
578
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-03-10 19:22:26.369046"], ["updated_at", "2015-03-10 19:22:26.369046"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
560
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-04-06 13:16:16.496885"], ["updated_at", "2015-04-06 13:16:16.496885"], ["file_ext", "png"], ["mime_type", "image/png"]]
579
561
   (0.1ms) RELEASE SAVEPOINT active_record_2
580
562
   (0.1ms) SAVEPOINT active_record_2
581
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-03-10 19:22:26.371632"], ["updated_at", "2015-03-10 19:22:26.371632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
563
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-04-06 13:16:16.499630"], ["updated_at", "2015-04-06 13:16:16.499630"], ["file_ext", "png"], ["mime_type", "image/png"]]
582
564
   (0.1ms) RELEASE SAVEPOINT active_record_2
583
565
   (0.1ms) SAVEPOINT active_record_2
584
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-03-10 19:22:26.374535"], ["updated_at", "2015-03-10 19:22:26.374535"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
566
+ 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", "97"], ["created_at", "2015-04-06 13:16:16.502036"], ["updated_at", "2015-04-06 13:16:16.502036"], ["file_ext", "png"], ["mime_type", "image/png"]]
585
567
   (0.1ms) RELEASE SAVEPOINT active_record_2
586
568
   (0.1ms) SAVEPOINT active_record_2
587
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-03-10 19:22:26.377260"], ["updated_at", "2015-03-10 19:22:26.377260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
569
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "98"], ["created_at", "2015-04-06 13:16:16.504853"], ["updated_at", "2015-04-06 13:16:16.504853"], ["file_ext", "png"], ["mime_type", "image/png"]]
588
570
   (0.1ms) RELEASE SAVEPOINT active_record_2
589
- Processing by PushType::WysiwygMediaController#index as JSON
590
- Parameters: {"filter"=>"image"}
591
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
592
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
593
- Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 0.5ms)
594
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
595
-  (0.1ms) ROLLBACK
596
-  (0.1ms) BEGIN
597
- ---------------------------------------------------------------------------------------
598
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
599
- ---------------------------------------------------------------------------------------
600
-  (0.0ms) SAVEPOINT active_record_1
601
-  (0.1ms) RELEASE SAVEPOINT active_record_1
602
-  (0.1ms) SAVEPOINT active_record_1
603
571
   (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", "image.png"], ["file_size", 2643], ["file_uid", "101"], ["created_at", "2015-03-10 19:22:26.400311"], ["updated_at", "2015-03-10 19:22:26.400311"], ["file_ext", "png"], ["mime_type", "image/png"]]
572
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-04-06 13:16:16.507361"], ["updated_at", "2015-04-06 13:16:16.507361"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
605
573
   (0.1ms) RELEASE SAVEPOINT active_record_2
606
574
   (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", "image.png"], ["file_size", 2643], ["file_uid", "102"], ["created_at", "2015-03-10 19:22:26.403317"], ["updated_at", "2015-03-10 19:22:26.403317"], ["file_ext", "png"], ["mime_type", "image/png"]]
575
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-04-06 13:16:16.509758"], ["updated_at", "2015-04-06 13:16:16.509758"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
608
576
   (0.1ms) RELEASE SAVEPOINT active_record_2
609
577
   (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", "image.png"], ["file_size", 2643], ["file_uid", "103"], ["created_at", "2015-03-10 19:22:26.406131"], ["updated_at", "2015-03-10 19:22:26.406131"], ["file_ext", "png"], ["mime_type", "image/png"]]
578
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-04-06 13:16:16.512259"], ["updated_at", "2015-04-06 13:16:16.512259"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
611
579
   (0.1ms) RELEASE SAVEPOINT active_record_2
612
580
   (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", "image.png"], ["file_size", 2643], ["file_uid", "104"], ["created_at", "2015-03-10 19:22:26.408659"], ["updated_at", "2015-03-10 19:22:26.408659"], ["file_ext", "png"], ["mime_type", "image/png"]]
581
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-04-06 13:16:16.514641"], ["updated_at", "2015-04-06 13:16:16.514641"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
614
582
   (0.1ms) RELEASE SAVEPOINT active_record_2
615
583
   (0.1ms) SAVEPOINT active_record_2
616
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "105"], ["created_at", "2015-03-10 19:22:26.411179"], ["updated_at", "2015-03-10 19:22:26.411179"], ["file_ext", "png"], ["mime_type", "image/png"]]
584
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-04-06 13:16:16.517245"], ["updated_at", "2015-04-06 13:16:16.517245"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
617
585
   (0.1ms) RELEASE SAVEPOINT active_record_2
618
586
   (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", "106"], ["created_at", "2015-03-10 19:22:26.413656"], ["updated_at", "2015-03-10 19:22:26.413656"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-04-06 13:16:16.519669"], ["updated_at", "2015-04-06 13:16:16.519669"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
620
588
   (0.1ms) RELEASE SAVEPOINT active_record_2
621
589
   (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", "107"], ["created_at", "2015-03-10 19:22:26.416037"], ["updated_at", "2015-03-10 19:22:26.416037"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.522135"], ["updated_at", "2015-04-06 13:16:16.522135"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
623
591
   (0.1ms) RELEASE SAVEPOINT active_record_2
624
592
   (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", "108"], ["created_at", "2015-03-10 19:22:26.418392"], ["updated_at", "2015-03-10 19:22:26.418392"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
593
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.524589"], ["updated_at", "2015-04-06 13:16:16.524589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
626
594
   (0.1ms) RELEASE SAVEPOINT active_record_2
627
595
   (0.1ms) SAVEPOINT active_record_2
628
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-03-10 19:22:26.420709"], ["updated_at", "2015-03-10 19:22:26.420709"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
596
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.527220"], ["updated_at", "2015-04-06 13:16:16.527220"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
629
597
   (0.1ms) RELEASE SAVEPOINT active_record_2
630
598
   (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", "110"], ["created_at", "2015-03-10 19:22:26.423310"], ["updated_at", "2015-03-10 19:22:26.423310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
599
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.529695"], ["updated_at", "2015-04-06 13:16:16.529695"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
632
600
   (0.1ms) RELEASE SAVEPOINT active_record_2
633
601
   (0.1ms) SAVEPOINT active_record_2
634
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-03-10 19:22:26.425776"], ["updated_at", "2015-03-10 19:22:26.425776"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
602
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.532060"], ["updated_at", "2015-04-06 13:16:16.532060"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
635
603
   (0.1ms) RELEASE SAVEPOINT active_record_2
636
604
   (0.1ms) SAVEPOINT active_record_2
637
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "112"], ["created_at", "2015-03-10 19:22:26.428082"], ["updated_at", "2015-03-10 19:22:26.428082"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
605
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.534565"], ["updated_at", "2015-04-06 13:16:16.534565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
638
606
   (0.1ms) RELEASE SAVEPOINT active_record_2
639
607
   (0.1ms) SAVEPOINT active_record_2
640
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "113"], ["created_at", "2015-03-10 19:22:26.430519"], ["updated_at", "2015-03-10 19:22:26.430519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
608
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "111"], ["created_at", "2015-04-06 13:16:16.537012"], ["updated_at", "2015-04-06 13:16:16.537012"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
641
609
   (0.1ms) RELEASE SAVEPOINT active_record_2
610
+ Processing by PushType::WysiwygMediaController#index as JSON
611
+ Parameters: {"filter"=>"file"}
612
+ 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
613
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
614
+ Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.5ms)
615
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
616
+  (0.1ms) ROLLBACK
617
+  (0.1ms) BEGIN
618
+ --------------------------------------------------------------------------------------
619
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
620
+ --------------------------------------------------------------------------------------
621
+  (0.1ms) SAVEPOINT active_record_1
622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
623
+  (0.0ms) SAVEPOINT active_record_1
642
624
   (0.1ms) SAVEPOINT active_record_2
643
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-03-10 19:22:26.433223"], ["updated_at", "2015-03-10 19:22:26.433223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-04-06 13:16:16.557857"], ["updated_at", "2015-04-06 13:16:16.557857"], ["file_ext", "png"], ["mime_type", "image/png"]]
644
626
   (0.1ms) RELEASE SAVEPOINT active_record_2
645
627
   (0.1ms) SAVEPOINT active_record_2
646
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-03-10 19:22:26.435807"], ["updated_at", "2015-03-10 19:22:26.435807"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-04-06 13:16:16.560538"], ["updated_at", "2015-04-06 13:16:16.560538"], ["file_ext", "png"], ["mime_type", "image/png"]]
647
629
   (0.1ms) RELEASE SAVEPOINT active_record_2
648
630
   (0.1ms) SAVEPOINT active_record_2
649
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-03-10 19:22:26.438312"], ["updated_at", "2015-03-10 19:22:26.438312"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-04-06 13:16:16.562973"], ["updated_at", "2015-04-06 13:16:16.562973"], ["file_ext", "png"], ["mime_type", "image/png"]]
650
632
   (0.1ms) RELEASE SAVEPOINT active_record_2
651
633
   (0.1ms) SAVEPOINT active_record_2
652
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-03-10 19:22:26.440849"], ["updated_at", "2015-03-10 19:22:26.440849"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
634
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "115"], ["created_at", "2015-04-06 13:16:16.565421"], ["updated_at", "2015-04-06 13:16:16.565421"], ["file_ext", "png"], ["mime_type", "image/png"]]
653
635
   (0.1ms) RELEASE SAVEPOINT active_record_2
654
636
   (0.1ms) SAVEPOINT active_record_2
655
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-03-10 19:22:26.443358"], ["updated_at", "2015-03-10 19:22:26.443358"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
637
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "116"], ["created_at", "2015-04-06 13:16:16.568063"], ["updated_at", "2015-04-06 13:16:16.568063"], ["file_ext", "png"], ["mime_type", "image/png"]]
656
638
   (0.1ms) RELEASE SAVEPOINT active_record_2
657
- Processing by PushType::WysiwygMediaController#index as JSON
658
- Parameters: {"filter"=>"image"}
659
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
660
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
661
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
662
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
663
-  (0.1ms) ROLLBACK
664
-  (0.1ms) BEGIN
665
- ---------------------------------------------------------------------------------------
666
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
667
- ---------------------------------------------------------------------------------------
668
-  (0.1ms) SAVEPOINT active_record_1
669
-  (0.1ms) RELEASE SAVEPOINT active_record_1
670
-  (0.1ms) SAVEPOINT active_record_1
671
639
   (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", "image.png"], ["file_size", 2643], ["file_uid", "119"], ["created_at", "2015-03-10 19:22:26.461703"], ["updated_at", "2015-03-10 19:22:26.461703"], ["file_ext", "png"], ["mime_type", "image/png"]]
640
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-04-06 13:16:16.570690"], ["updated_at", "2015-04-06 13:16:16.570690"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
673
641
   (0.1ms) RELEASE SAVEPOINT active_record_2
674
642
   (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", "image.png"], ["file_size", 2643], ["file_uid", "120"], ["created_at", "2015-03-10 19:22:26.464313"], ["updated_at", "2015-03-10 19:22:26.464313"], ["file_ext", "png"], ["mime_type", "image/png"]]
643
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-04-06 13:16:16.573134"], ["updated_at", "2015-04-06 13:16:16.573134"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
676
644
   (0.1ms) RELEASE SAVEPOINT active_record_2
677
645
   (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", "image.png"], ["file_size", 2643], ["file_uid", "121"], ["created_at", "2015-03-10 19:22:26.466731"], ["updated_at", "2015-03-10 19:22:26.466731"], ["file_ext", "png"], ["mime_type", "image/png"]]
646
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-04-06 13:16:16.575628"], ["updated_at", "2015-04-06 13:16:16.575628"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
679
647
   (0.1ms) RELEASE SAVEPOINT active_record_2
680
648
   (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", "image.png"], ["file_size", 2643], ["file_uid", "122"], ["created_at", "2015-03-10 19:22:26.469100"], ["updated_at", "2015-03-10 19:22:26.469100"], ["file_ext", "png"], ["mime_type", "image/png"]]
649
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-04-06 13:16:16.579017"], ["updated_at", "2015-04-06 13:16:16.579017"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
682
650
   (0.1ms) RELEASE SAVEPOINT active_record_2
683
651
   (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", "image.png"], ["file_size", 2643], ["file_uid", "123"], ["created_at", "2015-03-10 19:22:26.471791"], ["updated_at", "2015-03-10 19:22:26.471791"], ["file_ext", "png"], ["mime_type", "image/png"]]
652
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-04-06 13:16:16.581503"], ["updated_at", "2015-04-06 13:16:16.581503"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
685
653
   (0.1ms) RELEASE SAVEPOINT active_record_2
686
654
   (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", "124"], ["created_at", "2015-03-10 19:22:26.474237"], ["updated_at", "2015-03-10 19:22:26.474237"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-04-06 13:16:16.583872"], ["updated_at", "2015-04-06 13:16:16.583872"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
688
656
   (0.1ms) RELEASE SAVEPOINT active_record_2
689
657
   (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", "125"], ["created_at", "2015-03-10 19:22:26.476812"], ["updated_at", "2015-03-10 19:22:26.476812"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
658
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-04-06 13:16:16.586320"], ["updated_at", "2015-04-06 13:16:16.586320"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
691
659
   (0.1ms) RELEASE SAVEPOINT active_record_2
692
660
   (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", "126"], ["created_at", "2015-03-10 19:22:26.479249"], ["updated_at", "2015-03-10 19:22:26.479249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
661
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.588742"], ["updated_at", "2015-04-06 13:16:16.588742"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
694
662
   (0.1ms) RELEASE SAVEPOINT active_record_2
695
663
   (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", "127"], ["created_at", "2015-03-10 19:22:26.481801"], ["updated_at", "2015-03-10 19:22:26.481801"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
664
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-04-06 13:16:16.591608"], ["updated_at", "2015-04-06 13:16:16.591608"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
697
665
   (0.1ms) RELEASE SAVEPOINT active_record_2
698
666
   (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", "128"], ["created_at", "2015-03-10 19:22:26.484348"], ["updated_at", "2015-03-10 19:22:26.484348"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
667
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.594231"], ["updated_at", "2015-04-06 13:16:16.594231"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
700
668
   (0.1ms) RELEASE SAVEPOINT active_record_2
701
669
   (0.1ms) SAVEPOINT active_record_2
702
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-03-10 19:22:26.486880"], ["updated_at", "2015-03-10 19:22:26.486880"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
670
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.596698"], ["updated_at", "2015-04-06 13:16:16.596698"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
703
671
   (0.1ms) RELEASE SAVEPOINT active_record_2
704
672
   (0.1ms) SAVEPOINT active_record_2
705
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "130"], ["created_at", "2015-03-10 19:22:26.489209"], ["updated_at", "2015-03-10 19:22:26.489209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
673
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.599156"], ["updated_at", "2015-04-06 13:16:16.599156"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
706
674
   (0.1ms) RELEASE SAVEPOINT active_record_2
707
675
   (0.1ms) SAVEPOINT active_record_2
708
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "131"], ["created_at", "2015-03-10 19:22:26.491663"], ["updated_at", "2015-03-10 19:22:26.491663"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
676
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "129"], ["created_at", "2015-04-06 13:16:16.601637"], ["updated_at", "2015-04-06 13:16:16.601637"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
709
677
   (0.1ms) RELEASE SAVEPOINT active_record_2
678
+ Processing by PushType::WysiwygMediaController#index as JSON
679
+ Parameters: {"filter"=>"file"}
680
+ 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
681
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
682
+ Completed 200 OK in 13ms (Views: 0.7ms | ActiveRecord: 0.5ms)
683
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
684
+  (0.1ms) ROLLBACK
685
+  (0.1ms) BEGIN
686
+ --------------------------------------------------------------------------------------
687
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
688
+ --------------------------------------------------------------------------------------
689
+  (0.0ms) SAVEPOINT active_record_1
690
+  (0.0ms) RELEASE SAVEPOINT active_record_1
691
+  (0.1ms) SAVEPOINT active_record_1
710
692
   (0.1ms) SAVEPOINT active_record_2
711
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-03-10 19:22:26.494292"], ["updated_at", "2015-03-10 19:22:26.494292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-04-06 13:16:16.622532"], ["updated_at", "2015-04-06 13:16:16.622532"], ["file_ext", "png"], ["mime_type", "image/png"]]
712
694
   (0.1ms) RELEASE SAVEPOINT active_record_2
713
695
   (0.1ms) SAVEPOINT active_record_2
714
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-03-10 19:22:26.497019"], ["updated_at", "2015-03-10 19:22:26.497019"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-04-06 13:16:16.625166"], ["updated_at", "2015-04-06 13:16:16.625166"], ["file_ext", "png"], ["mime_type", "image/png"]]
715
697
   (0.1ms) RELEASE SAVEPOINT active_record_2
716
698
   (0.1ms) SAVEPOINT active_record_2
717
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-03-10 19:22:26.499467"], ["updated_at", "2015-03-10 19:22:26.499467"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
699
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "132"], ["created_at", "2015-04-06 13:16:16.627559"], ["updated_at", "2015-04-06 13:16:16.627559"], ["file_ext", "png"], ["mime_type", "image/png"]]
718
700
   (0.1ms) RELEASE SAVEPOINT active_record_2
719
701
   (0.1ms) SAVEPOINT active_record_2
720
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-03-10 19:22:26.501887"], ["updated_at", "2015-03-10 19:22:26.501887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
702
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "133"], ["created_at", "2015-04-06 13:16:16.629905"], ["updated_at", "2015-04-06 13:16:16.629905"], ["file_ext", "png"], ["mime_type", "image/png"]]
721
703
   (0.1ms) RELEASE SAVEPOINT active_record_2
722
704
   (0.1ms) SAVEPOINT active_record_2
723
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-03-10 19:22:26.504451"], ["updated_at", "2015-03-10 19:22:26.504451"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
705
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "134"], ["created_at", "2015-04-06 13:16:16.632493"], ["updated_at", "2015-04-06 13:16:16.632493"], ["file_ext", "png"], ["mime_type", "image/png"]]
724
706
   (0.1ms) RELEASE SAVEPOINT active_record_2
725
- Processing by PushType::WysiwygMediaController#index as JSON
726
- Parameters: {"filter"=>"image"}
727
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
728
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
729
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
730
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
731
-  (0.1ms) ROLLBACK
732
-  (0.1ms) BEGIN
733
- ---------------------------------------------------------------------------------------
734
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
735
- ---------------------------------------------------------------------------------------
736
-  (0.1ms) SAVEPOINT active_record_1
737
-  (0.1ms) RELEASE SAVEPOINT active_record_1
738
-  (0.0ms) SAVEPOINT active_record_1
739
707
   (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", "image.png"], ["file_size", 2643], ["file_uid", "137"], ["created_at", "2015-03-10 19:22:26.522794"], ["updated_at", "2015-03-10 19:22:26.522794"], ["file_ext", "png"], ["mime_type", "image/png"]]
708
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-04-06 13:16:16.634985"], ["updated_at", "2015-04-06 13:16:16.634985"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
741
709
   (0.1ms) RELEASE SAVEPOINT active_record_2
742
710
   (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", "image.png"], ["file_size", 2643], ["file_uid", "138"], ["created_at", "2015-03-10 19:22:26.525424"], ["updated_at", "2015-03-10 19:22:26.525424"], ["file_ext", "png"], ["mime_type", "image/png"]]
711
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-04-06 13:16:16.637413"], ["updated_at", "2015-04-06 13:16:16.637413"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
744
712
   (0.1ms) RELEASE SAVEPOINT active_record_2
745
713
   (0.1ms) SAVEPOINT active_record_2
746
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "139"], ["created_at", "2015-03-10 19:22:26.528132"], ["updated_at", "2015-03-10 19:22:26.528132"], ["file_ext", "png"], ["mime_type", "image/png"]]
714
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-04-06 13:16:16.639852"], ["updated_at", "2015-04-06 13:16:16.639852"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
747
715
   (0.1ms) RELEASE SAVEPOINT active_record_2
748
716
   (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", "image.png"], ["file_size", 2643], ["file_uid", "140"], ["created_at", "2015-03-10 19:22:26.530547"], ["updated_at", "2015-03-10 19:22:26.530547"], ["file_ext", "png"], ["mime_type", "image/png"]]
717
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-04-06 13:16:16.642336"], ["updated_at", "2015-04-06 13:16:16.642336"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
750
718
   (0.1ms) RELEASE SAVEPOINT active_record_2
751
719
   (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", "image.png"], ["file_size", 2643], ["file_uid", "141"], ["created_at", "2015-03-10 19:22:26.533125"], ["updated_at", "2015-03-10 19:22:26.533125"], ["file_ext", "png"], ["mime_type", "image/png"]]
720
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-04-06 13:16:16.644894"], ["updated_at", "2015-04-06 13:16:16.644894"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
753
721
   (0.1ms) RELEASE SAVEPOINT active_record_2
754
722
   (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", "142"], ["created_at", "2015-03-10 19:22:26.535577"], ["updated_at", "2015-03-10 19:22:26.535577"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
723
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-04-06 13:16:16.647368"], ["updated_at", "2015-04-06 13:16:16.647368"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
756
724
   (0.1ms) RELEASE SAVEPOINT active_record_2
757
725
   (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", "143"], ["created_at", "2015-03-10 19:22:26.538109"], ["updated_at", "2015-03-10 19:22:26.538109"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
726
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.649887"], ["updated_at", "2015-04-06 13:16:16.649887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
759
727
   (0.1ms) RELEASE SAVEPOINT active_record_2
760
728
   (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", "144"], ["created_at", "2015-03-10 19:22:26.540620"], ["updated_at", "2015-03-10 19:22:26.540620"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
729
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.652218"], ["updated_at", "2015-04-06 13:16:16.652218"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
762
730
   (0.1ms) RELEASE SAVEPOINT active_record_2
763
731
   (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", "145"], ["created_at", "2015-03-10 19:22:26.543093"], ["updated_at", "2015-03-10 19:22:26.543093"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
732
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.654811"], ["updated_at", "2015-04-06 13:16:16.654811"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
765
733
   (0.1ms) RELEASE SAVEPOINT active_record_2
766
734
   (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", "146"], ["created_at", "2015-03-10 19:22:26.545601"], ["updated_at", "2015-03-10 19:22:26.545601"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
735
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.657529"], ["updated_at", "2015-04-06 13:16:16.657529"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
768
736
   (0.1ms) RELEASE SAVEPOINT active_record_2
769
737
   (0.1ms) SAVEPOINT active_record_2
770
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-03-10 19:22:26.547988"], ["updated_at", "2015-03-10 19:22:26.547988"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
738
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.660255"], ["updated_at", "2015-04-06 13:16:16.660255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
771
739
   (0.1ms) RELEASE SAVEPOINT active_record_2
772
740
   (0.1ms) SAVEPOINT active_record_2
773
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "148"], ["created_at", "2015-03-10 19:22:26.550409"], ["updated_at", "2015-03-10 19:22:26.550409"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
741
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.662800"], ["updated_at", "2015-04-06 13:16:16.662800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
774
742
   (0.1ms) RELEASE SAVEPOINT active_record_2
775
743
   (0.1ms) SAVEPOINT active_record_2
776
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "149"], ["created_at", "2015-03-10 19:22:26.552793"], ["updated_at", "2015-03-10 19:22:26.552793"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
744
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "147"], ["created_at", "2015-04-06 13:16:16.665249"], ["updated_at", "2015-04-06 13:16:16.665249"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
745
+  (0.1ms) RELEASE SAVEPOINT active_record_2
746
+ Processing by PushType::WysiwygMediaController#index as JSON
747
+ Parameters: {"filter"=>"file"}
748
+ 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
749
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
750
+ Completed 200 OK in 13ms (Views: 0.6ms | ActiveRecord: 0.5ms)
751
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
752
+  (0.1ms) ROLLBACK
753
+  (0.1ms) BEGIN
754
+ --------------------------------------------------------------------------------
755
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
756
+ --------------------------------------------------------------------------------
757
+  (0.1ms) SAVEPOINT active_record_1
758
+  (0.1ms) RELEASE SAVEPOINT active_record_1
759
+  (0.0ms) SAVEPOINT active_record_1
760
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
761
+ Processing by PushType::WysiwygMediaController#create as JSON
762
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fd54bada610 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150406-22663-zkzn91>>}}
763
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-04-06 13:16:16.692040"], ["updated_at", "2015-04-06 13:16:16.692040"], ["file_ext", "png"], ["mime_type", "image/png"]]
765
+  (0.1ms) RELEASE SAVEPOINT active_record_2
766
+ Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
767
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
768
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
769
+  (0.1ms) ROLLBACK
770
+  (0.1ms) BEGIN
771
+ -----------------------------------------------------------------------
772
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
773
+ -----------------------------------------------------------------------
774
+  (0.0ms) SAVEPOINT active_record_1
775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
776
+  (0.0ms) SAVEPOINT active_record_1
777
+  (0.1ms) SAVEPOINT active_record_2
778
+ 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", "149"], ["created_at", "2015-04-06 13:16:16.700005"], ["updated_at", "2015-04-06 13:16:16.700005"], ["file_ext", "png"], ["mime_type", "image/png"]]
777
779
   (0.1ms) RELEASE SAVEPOINT active_record_2
778
780
   (0.1ms) SAVEPOINT active_record_2
779
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "150"], ["created_at", "2015-03-10 19:22:26.555322"], ["updated_at", "2015-03-10 19:22:26.555322"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
781
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-04-06 13:16:16.702953"], ["updated_at", "2015-04-06 13:16:16.702953"], ["file_ext", "png"], ["mime_type", "image/png"]]
780
782
   (0.1ms) RELEASE SAVEPOINT active_record_2
781
783
   (0.1ms) SAVEPOINT active_record_2
782
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-03-10 19:22:26.558068"], ["updated_at", "2015-03-10 19:22:26.558068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "151"], ["created_at", "2015-04-06 13:16:16.705402"], ["updated_at", "2015-04-06 13:16:16.705402"], ["file_ext", "png"], ["mime_type", "image/png"]]
783
785
   (0.1ms) RELEASE SAVEPOINT active_record_2
784
786
   (0.1ms) SAVEPOINT active_record_2
785
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-03-10 19:22:26.560772"], ["updated_at", "2015-03-10 19:22:26.560772"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "152"], ["created_at", "2015-04-06 13:16:16.707798"], ["updated_at", "2015-04-06 13:16:16.707798"], ["file_ext", "png"], ["mime_type", "image/png"]]
788
+  (0.1ms) RELEASE SAVEPOINT active_record_2
789
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
790
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
791
+  (0.1ms) ROLLBACK
792
+  (0.1ms) BEGIN
793
+ -----------------------------------------------------------------------
794
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
795
+ -----------------------------------------------------------------------
796
+  (0.0ms) SAVEPOINT active_record_1
797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
798
+  (0.0ms) SAVEPOINT active_record_1
799
+  (0.1ms) SAVEPOINT active_record_2
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", "153"], ["created_at", "2015-04-06 13:16:16.712878"], ["updated_at", "2015-04-06 13:16:16.712878"], ["file_ext", "png"], ["mime_type", "image/png"]]
786
801
   (0.1ms) RELEASE SAVEPOINT active_record_2
787
802
   (0.1ms) SAVEPOINT active_record_2
788
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-03-10 19:22:26.563174"], ["updated_at", "2015-03-10 19:22:26.563174"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "154"], ["created_at", "2015-04-06 13:16:16.715429"], ["updated_at", "2015-04-06 13:16:16.715429"], ["file_ext", "png"], ["mime_type", "image/png"]]
789
804
   (0.1ms) RELEASE SAVEPOINT active_record_2
790
805
   (0.1ms) SAVEPOINT active_record_2
791
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-03-10 19:22:26.565573"], ["updated_at", "2015-03-10 19:22:26.565573"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "155"], ["created_at", "2015-04-06 13:16:16.718062"], ["updated_at", "2015-04-06 13:16:16.718062"], ["file_ext", "png"], ["mime_type", "image/png"]]
792
807
   (0.1ms) RELEASE SAVEPOINT active_record_2
793
- Processing by PushType::WysiwygMediaController#index as JSON
794
- Parameters: {"filter"=>"image"}
795
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
796
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
797
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 0.5ms)
808
+  (0.1ms) SAVEPOINT active_record_2
809
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-04-06 13:16:16.720515"], ["updated_at", "2015-04-06 13:16:16.720515"], ["file_ext", "png"], ["mime_type", "image/png"]]
810
+  (0.1ms) RELEASE SAVEPOINT active_record_2
811
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
798
812
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
799
813
   (0.1ms) ROLLBACK
800
814
   (0.1ms) BEGIN
801
- ----------------------------------------------------------------------------------
802
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
803
- ----------------------------------------------------------------------------------
804
-  (0.1ms) SAVEPOINT active_record_1
805
-  (0.1ms) RELEASE SAVEPOINT active_record_1
815
+ -----------------------------------------------------------------------
816
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
817
+ -----------------------------------------------------------------------
806
818
   (0.1ms) SAVEPOINT active_record_1
819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
820
+  (0.0ms) SAVEPOINT active_record_1
807
821
   (0.1ms) SAVEPOINT active_record_2
808
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-03-10 19:22:26.584732"], ["updated_at", "2015-03-10 19:22:26.584732"], ["file_ext", "png"], ["mime_type", "image/png"]]
822
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-04-06 13:16:16.725626"], ["updated_at", "2015-04-06 13:16:16.725626"], ["file_ext", "png"], ["mime_type", "image/png"]]
809
823
   (0.1ms) RELEASE SAVEPOINT active_record_2
810
824
   (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", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-03-10 19:22:26.587317"], ["updated_at", "2015-03-10 19:22:26.587317"], ["file_ext", "png"], ["mime_type", "image/png"]]
825
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-04-06 13:16:16.728053"], ["updated_at", "2015-04-06 13:16:16.728053"], ["file_ext", "png"], ["mime_type", "image/png"]]
812
826
   (0.1ms) RELEASE SAVEPOINT active_record_2
813
827
   (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", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-03-10 19:22:26.589729"], ["updated_at", "2015-03-10 19:22:26.589729"], ["file_ext", "png"], ["mime_type", "image/png"]]
828
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-04-06 13:16:16.730501"], ["updated_at", "2015-04-06 13:16:16.730501"], ["file_ext", "png"], ["mime_type", "image/png"]]
815
829
   (0.1ms) RELEASE SAVEPOINT active_record_2
816
830
   (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", "image.png"], ["file_size", 2643], ["file_uid", "158"], ["created_at", "2015-03-10 19:22:26.592127"], ["updated_at", "2015-03-10 19:22:26.592127"], ["file_ext", "png"], ["mime_type", "image/png"]]
831
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "160"], ["created_at", "2015-04-06 13:16:16.732895"], ["updated_at", "2015-04-06 13:16:16.732895"], ["file_ext", "png"], ["mime_type", "image/png"]]
818
832
   (0.1ms) RELEASE SAVEPOINT active_record_2
819
-  (0.1ms) SAVEPOINT active_record_2
820
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "159"], ["created_at", "2015-03-10 19:22:26.594741"], ["updated_at", "2015-03-10 19:22:26.594741"], ["file_ext", "png"], ["mime_type", "image/png"]]
821
-  (0.1ms) RELEASE SAVEPOINT active_record_2
833
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
834
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
835
+  (0.1ms) ROLLBACK
836
+  (0.1ms) BEGIN
837
+ -----------------------------------------------------------------------
838
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
839
+ -----------------------------------------------------------------------
840
+  (0.1ms) SAVEPOINT active_record_1
841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
842
+  (0.0ms) SAVEPOINT active_record_1
822
843
   (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", "160"], ["created_at", "2015-03-10 19:22:26.597934"], ["updated_at", "2015-03-10 19:22:26.597934"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
844
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-04-06 13:16:16.737702"], ["updated_at", "2015-04-06 13:16:16.737702"], ["file_ext", "png"], ["mime_type", "image/png"]]
824
845
   (0.1ms) RELEASE SAVEPOINT active_record_2
825
846
   (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", "161"], ["created_at", "2015-03-10 19:22:26.600427"], ["updated_at", "2015-03-10 19:22:26.600427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
847
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-04-06 13:16:16.740343"], ["updated_at", "2015-04-06 13:16:16.740343"], ["file_ext", "png"], ["mime_type", "image/png"]]
827
848
   (0.1ms) RELEASE SAVEPOINT active_record_2
828
849
   (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", "162"], ["created_at", "2015-03-10 19:22:26.602829"], ["updated_at", "2015-03-10 19:22:26.602829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
850
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-04-06 13:16:16.742862"], ["updated_at", "2015-04-06 13:16:16.742862"], ["file_ext", "png"], ["mime_type", "image/png"]]
830
851
   (0.1ms) RELEASE SAVEPOINT active_record_2
831
852
   (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", "163"], ["created_at", "2015-03-10 19:22:26.605298"], ["updated_at", "2015-03-10 19:22:26.605298"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
853
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-04-06 13:16:16.745361"], ["updated_at", "2015-04-06 13:16:16.745361"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
+  (0.1ms) RELEASE SAVEPOINT active_record_2
855
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
856
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
857
+  (0.1ms) ROLLBACK
858
+  (0.1ms) BEGIN
859
+ -----------------------------------------------------------------------
860
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
861
+ -----------------------------------------------------------------------
862
+  (0.0ms) SAVEPOINT active_record_1
863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
864
+  (0.0ms) SAVEPOINT active_record_1
865
+  (0.1ms) SAVEPOINT active_record_2
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", "165"], ["created_at", "2015-04-06 13:16:16.750635"], ["updated_at", "2015-04-06 13:16:16.750635"], ["file_ext", "png"], ["mime_type", "image/png"]]
833
867
   (0.1ms) RELEASE SAVEPOINT active_record_2
834
868
   (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", "164"], ["created_at", "2015-03-10 19:22:26.607775"], ["updated_at", "2015-03-10 19:22:26.607775"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "166"], ["created_at", "2015-04-06 13:16:16.753240"], ["updated_at", "2015-04-06 13:16:16.753240"], ["file_ext", "png"], ["mime_type", "image/png"]]
836
870
   (0.1ms) RELEASE SAVEPOINT active_record_2
837
871
   (0.1ms) SAVEPOINT active_record_2
838
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "165"], ["created_at", "2015-03-10 19:22:26.610278"], ["updated_at", "2015-03-10 19:22:26.610278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
872
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_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-06 13:16:16.755765"], ["updated_at", "2015-04-06 13:16:16.755765"], ["file_ext", "png"], ["mime_type", "image/png"]]
839
873
   (0.1ms) RELEASE SAVEPOINT active_record_2
840
874
   (0.1ms) SAVEPOINT active_record_2
841
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "166"], ["created_at", "2015-03-10 19:22:26.612715"], ["updated_at", "2015-03-10 19:22:26.612715"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
875
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-04-06 13:16:16.758247"], ["updated_at", "2015-04-06 13:16:16.758247"], ["file_ext", "png"], ["mime_type", "image/png"]]
876
+  (0.1ms) RELEASE SAVEPOINT active_record_2
877
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
878
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
879
+  (0.1ms) ROLLBACK
880
+  (0.1ms) BEGIN
881
+ ----------------------------------------------------------------------
882
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
883
+ ----------------------------------------------------------------------
884
+  (0.1ms) SAVEPOINT active_record_1
885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
886
+  (0.1ms) SAVEPOINT active_record_1
887
+  (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", "image.png"], ["file_size", 2643], ["file_uid", "169"], ["created_at", "2015-04-06 13:16:16.764171"], ["updated_at", "2015-04-06 13:16:16.764171"], ["file_ext", "png"], ["mime_type", "image/png"]]
842
889
   (0.1ms) RELEASE SAVEPOINT active_record_2
890
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
891
+  (0.1ms) ROLLBACK
892
+  (0.1ms) BEGIN
893
+ ----------------------------------------------------------------------
894
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
895
+ ----------------------------------------------------------------------
896
+  (0.1ms) SAVEPOINT active_record_1
897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
898
+  (0.0ms) SAVEPOINT active_record_1
843
899
   (0.1ms) SAVEPOINT active_record_2
844
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "167"], ["created_at", "2015-03-10 19:22:26.615282"], ["updated_at", "2015-03-10 19:22:26.615282"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-04-06 13:16:16.770673"], ["updated_at", "2015-04-06 13:16:16.770673"], ["file_ext", "png"], ["mime_type", "image/png"]]
845
901
   (0.1ms) RELEASE SAVEPOINT active_record_2
902
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
903
+  (0.1ms) ROLLBACK
904
+  (0.1ms) BEGIN
905
+ ----------------------------------------------------------------------
906
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
907
+ ----------------------------------------------------------------------
908
+  (0.1ms) SAVEPOINT active_record_1
909
+  (0.0ms) RELEASE SAVEPOINT active_record_1
910
+  (0.0ms) SAVEPOINT active_record_1
846
911
   (0.1ms) SAVEPOINT active_record_2
847
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "168"], ["created_at", "2015-03-10 19:22:26.617905"], ["updated_at", "2015-03-10 19:22:26.617905"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
912
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-04-06 13:16:16.777011"], ["updated_at", "2015-04-06 13:16:16.777011"], ["file_ext", "png"], ["mime_type", "image/png"]]
848
913
   (0.1ms) RELEASE SAVEPOINT active_record_2
914
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
915
+  (0.1ms) ROLLBACK
916
+  (0.1ms) BEGIN
917
+ ----------------------------------------------------------------------
918
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
919
+ ----------------------------------------------------------------------
920
+  (0.0ms) SAVEPOINT active_record_1
921
+  (0.0ms) RELEASE SAVEPOINT active_record_1
922
+  (0.0ms) SAVEPOINT active_record_1
849
923
   (0.1ms) SAVEPOINT active_record_2
850
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-03-10 19:22:26.620497"], ["updated_at", "2015-03-10 19:22:26.620497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
924
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "172"], ["created_at", "2015-04-06 13:16:16.783218"], ["updated_at", "2015-04-06 13:16:16.783218"], ["file_ext", "png"], ["mime_type", "image/png"]]
851
925
   (0.1ms) RELEASE SAVEPOINT active_record_2
926
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
927
+  (0.1ms) ROLLBACK
928
+  (0.1ms) BEGIN
929
+ ----------------------------------------------------------------------
930
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
931
+ ----------------------------------------------------------------------
932
+  (0.0ms) SAVEPOINT active_record_1
933
+  (0.0ms) RELEASE SAVEPOINT active_record_1
934
+  (0.0ms) SAVEPOINT active_record_1
852
935
   (0.1ms) SAVEPOINT active_record_2
853
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-03-10 19:22:26.622987"], ["updated_at", "2015-03-10 19:22:26.622987"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
936
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-04-06 13:16:16.789798"], ["updated_at", "2015-04-06 13:16:16.789798"], ["file_ext", "png"], ["mime_type", "image/png"]]
854
937
   (0.1ms) RELEASE SAVEPOINT active_record_2
938
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
939
+  (0.1ms) ROLLBACK
940
+  (0.1ms) BEGIN
941
+ ----------------------------------------------------------------------
942
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
943
+ ----------------------------------------------------------------------
944
+  (0.1ms) SAVEPOINT active_record_1
945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
946
+  (0.0ms) SAVEPOINT active_record_1
855
947
   (0.1ms) SAVEPOINT active_record_2
856
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-03-10 19:22:26.625621"], ["updated_at", "2015-03-10 19:22:26.625621"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "174"], ["created_at", "2015-04-06 13:16:16.796192"], ["updated_at", "2015-04-06 13:16:16.796192"], ["file_ext", "png"], ["mime_type", "image/png"]]
857
949
   (0.1ms) RELEASE SAVEPOINT active_record_2
950
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
951
+  (0.1ms) ROLLBACK
952
+  (0.0ms) BEGIN
953
+ ----------------------------------------------------------------------
954
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
955
+ ----------------------------------------------------------------------
956
+  (0.0ms) SAVEPOINT active_record_1
957
+  (0.1ms) RELEASE SAVEPOINT active_record_1
958
+  (0.0ms) SAVEPOINT active_record_1
858
959
   (0.1ms) SAVEPOINT active_record_2
859
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-03-10 19:22:26.628218"], ["updated_at", "2015-03-10 19:22:26.628218"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
960
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-04-06 13:16:16.802033"], ["updated_at", "2015-04-06 13:16:16.802033"], ["file_ext", "png"], ["mime_type", "image/png"]]
860
961
   (0.1ms) RELEASE SAVEPOINT active_record_2
861
- Processing by PushType::WysiwygMediaController#index as JSON
862
- Parameters: {"filter"=>"file", "page"=>2}
863
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
864
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
865
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
866
962
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
867
963
   (0.1ms) ROLLBACK
868
964
   (0.1ms) BEGIN
869
- ----------------------------------------------------------------------------------
870
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
871
- ----------------------------------------------------------------------------------
965
+ -----------------------------------------------------------------------
966
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
967
+ -----------------------------------------------------------------------
872
968
   (0.1ms) SAVEPOINT active_record_1
873
969
   (0.1ms) RELEASE SAVEPOINT active_record_1
874
970
   (0.1ms) SAVEPOINT active_record_1
875
971
   (0.1ms) SAVEPOINT active_record_2
876
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-03-10 19:22:26.639439"], ["updated_at", "2015-03-10 19:22:26.639439"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "176"], ["created_at", "2015-04-06 13:16:16.809022"], ["updated_at", "2015-04-06 13:16:16.809022"], ["file_ext", "png"], ["mime_type", "image/png"]]
877
973
   (0.1ms) RELEASE SAVEPOINT active_record_2
878
974
   (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", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-03-10 19:22:26.642048"], ["updated_at", "2015-03-10 19:22:26.642048"], ["file_ext", "png"], ["mime_type", "image/png"]]
975
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-04-06 13:16:16.811727"], ["updated_at", "2015-04-06 13:16:16.811727"], ["file_ext", "png"], ["mime_type", "image/png"]]
880
976
   (0.1ms) RELEASE SAVEPOINT active_record_2
881
977
   (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", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-03-10 19:22:26.644568"], ["updated_at", "2015-03-10 19:22:26.644568"], ["file_ext", "png"], ["mime_type", "image/png"]]
978
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-04-06 13:16:16.814237"], ["updated_at", "2015-04-06 13:16:16.814237"], ["file_ext", "png"], ["mime_type", "image/png"]]
883
979
   (0.1ms) RELEASE SAVEPOINT active_record_2
884
980
   (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", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-03-10 19:22:26.647019"], ["updated_at", "2015-03-10 19:22:26.647019"], ["file_ext", "png"], ["mime_type", "image/png"]]
981
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-04-06 13:16:16.816700"], ["updated_at", "2015-04-06 13:16:16.816700"], ["file_ext", "png"], ["mime_type", "image/png"]]
886
982
   (0.1ms) RELEASE SAVEPOINT active_record_2
983
+ 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
984
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
985
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
986
+  (0.1ms) ROLLBACK
987
+  (0.1ms) BEGIN
988
+ -----------------------------------------------------------------------
989
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
990
+ -----------------------------------------------------------------------
991
+  (0.0ms) SAVEPOINT active_record_1
992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
993
+  (0.0ms) SAVEPOINT active_record_1
887
994
   (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", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-03-10 19:22:26.649517"], ["updated_at", "2015-03-10 19:22:26.649517"], ["file_ext", "png"], ["mime_type", "image/png"]]
995
+ 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", "180"], ["created_at", "2015-04-06 13:16:16.826206"], ["updated_at", "2015-04-06 13:16:16.826206"], ["file_ext", "png"], ["mime_type", "image/png"]]
889
996
   (0.1ms) RELEASE SAVEPOINT active_record_2
890
997
   (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", "178"], ["created_at", "2015-03-10 19:22:26.652216"], ["updated_at", "2015-03-10 19:22:26.652216"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
998
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-04-06 13:16:16.828972"], ["updated_at", "2015-04-06 13:16:16.828972"], ["file_ext", "png"], ["mime_type", "image/png"]]
892
999
   (0.1ms) RELEASE SAVEPOINT active_record_2
893
1000
   (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", "179"], ["created_at", "2015-03-10 19:22:26.654707"], ["updated_at", "2015-03-10 19:22:26.654707"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1001
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-04-06 13:16:16.831416"], ["updated_at", "2015-04-06 13:16:16.831416"], ["file_ext", "png"], ["mime_type", "image/png"]]
895
1002
   (0.1ms) RELEASE SAVEPOINT active_record_2
896
1003
   (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", "180"], ["created_at", "2015-03-10 19:22:26.657239"], ["updated_at", "2015-03-10 19:22:26.657239"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1004
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-04-06 13:16:16.834071"], ["updated_at", "2015-04-06 13:16:16.834071"], ["file_ext", "png"], ["mime_type", "image/png"]]
898
1005
   (0.1ms) RELEASE SAVEPOINT active_record_2
1006
+ 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
1007
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1008
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1009
+  (0.1ms) ROLLBACK
1010
+  (0.1ms) BEGIN
1011
+ -----------------------------------------------------------------------
1012
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1013
+ -----------------------------------------------------------------------
1014
+  (0.0ms) SAVEPOINT active_record_1
1015
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1016
+  (0.0ms) SAVEPOINT active_record_1
899
1017
   (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", "181"], ["created_at", "2015-03-10 19:22:26.659640"], ["updated_at", "2015-03-10 19:22:26.659640"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1018
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "184"], ["created_at", "2015-04-06 13:16:16.843946"], ["updated_at", "2015-04-06 13:16:16.843946"], ["file_ext", "png"], ["mime_type", "image/png"]]
901
1019
   (0.1ms) RELEASE SAVEPOINT active_record_2
902
1020
   (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", "182"], ["created_at", "2015-03-10 19:22:26.662259"], ["updated_at", "2015-03-10 19:22:26.662259"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1021
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-04-06 13:16:16.846603"], ["updated_at", "2015-04-06 13:16:16.846603"], ["file_ext", "png"], ["mime_type", "image/png"]]
904
1022
   (0.1ms) RELEASE SAVEPOINT active_record_2
905
1023
   (0.1ms) SAVEPOINT active_record_2
906
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "183"], ["created_at", "2015-03-10 19:22:26.664759"], ["updated_at", "2015-03-10 19:22:26.664759"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1024
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-04-06 13:16:16.848961"], ["updated_at", "2015-04-06 13:16:16.848961"], ["file_ext", "png"], ["mime_type", "image/png"]]
907
1025
   (0.1ms) RELEASE SAVEPOINT active_record_2
908
1026
   (0.1ms) SAVEPOINT active_record_2
909
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "184"], ["created_at", "2015-03-10 19:22:26.667209"], ["updated_at", "2015-03-10 19:22:26.667209"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "187"], ["created_at", "2015-04-06 13:16:16.851537"], ["updated_at", "2015-04-06 13:16:16.851537"], ["file_ext", "png"], ["mime_type", "image/png"]]
910
1028
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1030
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1031
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1032
+  (0.1ms) ROLLBACK
1033
+  (0.1ms) BEGIN
1034
+ -----------------------------------------------------------------------
1035
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1036
+ -----------------------------------------------------------------------
1037
+  (0.0ms) SAVEPOINT active_record_1
1038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1039
+  (0.0ms) SAVEPOINT active_record_1
911
1040
   (0.1ms) SAVEPOINT active_record_2
912
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "185"], ["created_at", "2015-03-10 19:22:26.669589"], ["updated_at", "2015-03-10 19:22:26.669589"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1041
+ 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", "188"], ["created_at", "2015-04-06 13:16:16.926108"], ["updated_at", "2015-04-06 13:16:16.926108"], ["file_ext", "png"], ["mime_type", "image/png"]]
913
1042
   (0.1ms) RELEASE SAVEPOINT active_record_2
914
1043
   (0.1ms) SAVEPOINT active_record_2
915
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "186"], ["created_at", "2015-03-10 19:22:26.672192"], ["updated_at", "2015-03-10 19:22:26.672192"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1044
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-04-06 13:16:16.941297"], ["updated_at", "2015-04-06 13:16:16.941297"], ["file_ext", "png"], ["mime_type", "image/png"]]
916
1045
   (0.1ms) RELEASE SAVEPOINT active_record_2
917
1046
   (0.1ms) SAVEPOINT active_record_2
918
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-03-10 19:22:26.674956"], ["updated_at", "2015-03-10 19:22:26.674956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1047
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "190"], ["created_at", "2015-04-06 13:16:16.944029"], ["updated_at", "2015-04-06 13:16:16.944029"], ["file_ext", "png"], ["mime_type", "image/png"]]
919
1048
   (0.1ms) RELEASE SAVEPOINT active_record_2
920
1049
   (0.1ms) SAVEPOINT active_record_2
921
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-03-10 19:22:26.677598"], ["updated_at", "2015-03-10 19:22:26.677598"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1050
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-04-06 13:16:16.946414"], ["updated_at", "2015-04-06 13:16:16.946414"], ["file_ext", "png"], ["mime_type", "image/png"]]
922
1051
   (0.1ms) RELEASE SAVEPOINT active_record_2
1052
+ 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
1053
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1054
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1055
+  (0.1ms) ROLLBACK
1056
+  (0.1ms) BEGIN
1057
+ -----------------------------------------------------------------------
1058
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1059
+ -----------------------------------------------------------------------
1060
+  (0.0ms) SAVEPOINT active_record_1
1061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1062
+  (0.0ms) SAVEPOINT active_record_1
923
1063
   (0.1ms) SAVEPOINT active_record_2
924
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-03-10 19:22:26.680414"], ["updated_at", "2015-03-10 19:22:26.680414"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-04-06 13:16:16.956117"], ["updated_at", "2015-04-06 13:16:16.956117"], ["file_ext", "png"], ["mime_type", "image/png"]]
925
1065
   (0.1ms) RELEASE SAVEPOINT active_record_2
926
1066
   (0.1ms) SAVEPOINT active_record_2
927
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-03-10 19:22:26.683070"], ["updated_at", "2015-03-10 19:22:26.683070"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-04-06 13:16:16.958881"], ["updated_at", "2015-04-06 13:16:16.958881"], ["file_ext", "png"], ["mime_type", "image/png"]]
928
1068
   (0.1ms) RELEASE SAVEPOINT active_record_2
929
- Processing by PushType::WysiwygMediaController#index as JSON
930
- Parameters: {"filter"=>"file", "page"=>2}
931
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
932
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
933
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms)
1069
+  (0.1ms) SAVEPOINT active_record_2
1070
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-04-06 13:16:16.961448"], ["updated_at", "2015-04-06 13:16:16.961448"], ["file_ext", "png"], ["mime_type", "image/png"]]
1071
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1072
+  (0.1ms) SAVEPOINT active_record_2
1073
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-04-06 13:16:16.963878"], ["updated_at", "2015-04-06 13:16:16.963878"], ["file_ext", "png"], ["mime_type", "image/png"]]
1074
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1075
+ 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
1076
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
934
1077
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
935
1078
   (0.1ms) ROLLBACK
936
-  (0.1ms) BEGIN
1079
+  (0.0ms) BEGIN
937
1080
  ----------------------------------------------------------------------------------
938
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
1081
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
939
1082
  ----------------------------------------------------------------------------------
940
-  (0.1ms) SAVEPOINT active_record_1
941
-  (0.1ms) RELEASE SAVEPOINT active_record_1
942
-  (0.1ms) SAVEPOINT active_record_1
1083
+  (0.0ms) SAVEPOINT active_record_1
1084
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1085
+  (0.0ms) SAVEPOINT active_record_1
943
1086
   (0.1ms) SAVEPOINT active_record_2
944
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-03-10 19:22:26.694617"], ["updated_at", "2015-03-10 19:22:26.694617"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "196"], ["created_at", "2015-04-06 13:16:16.974828"], ["updated_at", "2015-04-06 13:16:16.974828"], ["file_ext", "png"], ["mime_type", "image/png"]]
945
1088
   (0.1ms) RELEASE SAVEPOINT active_record_2
946
1089
   (0.1ms) SAVEPOINT active_record_2
947
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-03-10 19:22:26.697310"], ["updated_at", "2015-03-10 19:22:26.697310"], ["file_ext", "png"], ["mime_type", "image/png"]]
1090
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-04-06 13:16:16.977434"], ["updated_at", "2015-04-06 13:16:16.977434"], ["file_ext", "png"], ["mime_type", "image/png"]]
948
1091
   (0.1ms) RELEASE SAVEPOINT active_record_2
949
1092
   (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", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-03-10 19:22:26.699743"], ["updated_at", "2015-03-10 19:22:26.699743"], ["file_ext", "png"], ["mime_type", "image/png"]]
1093
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-04-06 13:16:16.979861"], ["updated_at", "2015-04-06 13:16:16.979861"], ["file_ext", "png"], ["mime_type", "image/png"]]
951
1094
   (0.1ms) RELEASE SAVEPOINT active_record_2
952
1095
   (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", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-03-10 19:22:26.702251"], ["updated_at", "2015-03-10 19:22:26.702251"], ["file_ext", "png"], ["mime_type", "image/png"]]
1096
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-04-06 13:16:16.982296"], ["updated_at", "2015-04-06 13:16:16.982296"], ["file_ext", "png"], ["mime_type", "image/png"]]
954
1097
   (0.1ms) RELEASE SAVEPOINT active_record_2
955
1098
   (0.1ms) SAVEPOINT active_record_2
956
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "195"], ["created_at", "2015-03-10 19:22:26.704773"], ["updated_at", "2015-03-10 19:22:26.704773"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "200"], ["created_at", "2015-04-06 13:16:16.984883"], ["updated_at", "2015-04-06 13:16:16.984883"], ["file_ext", "png"], ["mime_type", "image/png"]]
957
1100
   (0.1ms) RELEASE SAVEPOINT active_record_2
958
1101
   (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", "196"], ["created_at", "2015-03-10 19:22:26.707285"], ["updated_at", "2015-03-10 19:22:26.707285"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1102
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-04-06 13:16:16.987283"], ["updated_at", "2015-04-06 13:16:16.987283"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
960
1103
   (0.1ms) RELEASE SAVEPOINT active_record_2
961
1104
   (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", "197"], ["created_at", "2015-03-10 19:22:26.709741"], ["updated_at", "2015-03-10 19:22:26.709741"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1105
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-04-06 13:16:16.989943"], ["updated_at", "2015-04-06 13:16:16.989943"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
963
1106
   (0.1ms) RELEASE SAVEPOINT active_record_2
964
1107
   (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", "198"], ["created_at", "2015-03-10 19:22:26.712280"], ["updated_at", "2015-03-10 19:22:26.712280"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-04-06 13:16:16.992722"], ["updated_at", "2015-04-06 13:16:16.992722"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
966
1109
   (0.1ms) RELEASE SAVEPOINT active_record_2
967
1110
   (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", "199"], ["created_at", "2015-03-10 19:22:26.714876"], ["updated_at", "2015-03-10 19:22:26.714876"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-04-06 13:16:16.995439"], ["updated_at", "2015-04-06 13:16:16.995439"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
969
1112
   (0.1ms) RELEASE SAVEPOINT active_record_2
970
1113
   (0.1ms) SAVEPOINT active_record_2
971
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "200"], ["created_at", "2015-03-10 19:22:26.717548"], ["updated_at", "2015-03-10 19:22:26.717548"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "205"], ["created_at", "2015-04-06 13:16:16.998194"], ["updated_at", "2015-04-06 13:16:16.998194"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
972
1115
   (0.1ms) RELEASE SAVEPOINT active_record_2
973
1116
   (0.1ms) SAVEPOINT active_record_2
974
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "201"], ["created_at", "2015-03-10 19:22:26.720026"], ["updated_at", "2015-03-10 19:22:26.720026"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "206"], ["created_at", "2015-04-06 13:16:17.000716"], ["updated_at", "2015-04-06 13:16:17.000716"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
975
1118
   (0.1ms) RELEASE SAVEPOINT active_record_2
976
1119
   (0.1ms) SAVEPOINT active_record_2
977
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "202"], ["created_at", "2015-03-10 19:22:26.722443"], ["updated_at", "2015-03-10 19:22:26.722443"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "207"], ["created_at", "2015-04-06 13:16:17.003341"], ["updated_at", "2015-04-06 13:16:17.003341"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
978
1121
   (0.1ms) RELEASE SAVEPOINT active_record_2
979
1122
   (0.1ms) SAVEPOINT active_record_2
980
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "203"], ["created_at", "2015-03-10 19:22:26.724836"], ["updated_at", "2015-03-10 19:22:26.724836"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "208"], ["created_at", "2015-04-06 13:16:17.005746"], ["updated_at", "2015-04-06 13:16:17.005746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
981
1124
   (0.1ms) RELEASE SAVEPOINT active_record_2
982
1125
   (0.1ms) SAVEPOINT active_record_2
983
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "204"], ["created_at", "2015-03-10 19:22:26.791397"], ["updated_at", "2015-03-10 19:22:26.791397"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "209"], ["created_at", "2015-04-06 13:16:17.008229"], ["updated_at", "2015-04-06 13:16:17.008229"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
984
1127
   (0.1ms) RELEASE SAVEPOINT active_record_2
985
1128
   (0.1ms) SAVEPOINT active_record_2
986
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-03-10 19:22:26.794400"], ["updated_at", "2015-03-10 19:22:26.794400"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "210"], ["created_at", "2015-04-06 13:16:17.010843"], ["updated_at", "2015-04-06 13:16:17.010843"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
987
1130
   (0.1ms) RELEASE SAVEPOINT active_record_2
988
1131
   (0.1ms) SAVEPOINT active_record_2
989
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-03-10 19:22:26.796873"], ["updated_at", "2015-03-10 19:22:26.796873"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "211"], ["created_at", "2015-04-06 13:16:17.013310"], ["updated_at", "2015-04-06 13:16:17.013310"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
990
1133
   (0.1ms) RELEASE SAVEPOINT active_record_2
991
1134
   (0.1ms) SAVEPOINT active_record_2
992
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-03-10 19:22:26.799359"], ["updated_at", "2015-03-10 19:22:26.799359"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "212"], ["created_at", "2015-04-06 13:16:17.015777"], ["updated_at", "2015-04-06 13:16:17.015777"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
993
1136
   (0.1ms) RELEASE SAVEPOINT active_record_2
994
1137
   (0.1ms) SAVEPOINT active_record_2
995
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-03-10 19:22:26.801859"], ["updated_at", "2015-03-10 19:22:26.801859"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "213"], ["created_at", "2015-04-06 13:16:17.018229"], ["updated_at", "2015-04-06 13:16:17.018229"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
996
1139
   (0.1ms) RELEASE SAVEPOINT active_record_2
997
1140
  Processing by PushType::WysiwygMediaController#index as JSON
998
1141
  Parameters: {"filter"=>"file", "page"=>2}
999
1142
  PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
1000
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1001
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
1143
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1144
+ Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 0.6ms)
1002
1145
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1003
1146
   (0.1ms) ROLLBACK
1004
1147
   (0.1ms) BEGIN
@@ -1007,60 +1150,60 @@ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymo
1007
1150
  ----------------------------------------------------------------------------------
1008
1151
   (0.1ms) SAVEPOINT active_record_1
1009
1152
   (0.1ms) RELEASE SAVEPOINT active_record_1
1010
-  (0.0ms) SAVEPOINT active_record_1
1153
+  (0.1ms) SAVEPOINT active_record_1
1011
1154
   (0.1ms) SAVEPOINT active_record_2
1012
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "209"], ["created_at", "2015-03-10 19:22:26.813496"], ["updated_at", "2015-03-10 19:22:26.813496"], ["file_ext", "png"], ["mime_type", "image/png"]]
1155
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "214"], ["created_at", "2015-04-06 13:16:17.036235"], ["updated_at", "2015-04-06 13:16:17.036235"], ["file_ext", "png"], ["mime_type", "image/png"]]
1013
1156
   (0.1ms) RELEASE SAVEPOINT active_record_2
1014
1157
   (0.1ms) SAVEPOINT active_record_2
1015
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "210"], ["created_at", "2015-03-10 19:22:26.816222"], ["updated_at", "2015-03-10 19:22:26.816222"], ["file_ext", "png"], ["mime_type", "image/png"]]
1158
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-04-06 13:16:17.038879"], ["updated_at", "2015-04-06 13:16:17.038879"], ["file_ext", "png"], ["mime_type", "image/png"]]
1016
1159
   (0.1ms) RELEASE SAVEPOINT active_record_2
1017
1160
   (0.1ms) SAVEPOINT active_record_2
1018
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "211"], ["created_at", "2015-03-10 19:22:26.818634"], ["updated_at", "2015-03-10 19:22:26.818634"], ["file_ext", "png"], ["mime_type", "image/png"]]
1161
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-04-06 13:16:17.041294"], ["updated_at", "2015-04-06 13:16:17.041294"], ["file_ext", "png"], ["mime_type", "image/png"]]
1019
1162
   (0.1ms) RELEASE SAVEPOINT active_record_2
1020
1163
   (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", "image.png"], ["file_size", 2643], ["file_uid", "212"], ["created_at", "2015-03-10 19:22:26.820989"], ["updated_at", "2015-03-10 19:22:26.820989"], ["file_ext", "png"], ["mime_type", "image/png"]]
1164
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-04-06 13:16:17.043762"], ["updated_at", "2015-04-06 13:16:17.043762"], ["file_ext", "png"], ["mime_type", "image/png"]]
1022
1165
   (0.1ms) RELEASE SAVEPOINT active_record_2
1023
1166
   (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", "image.png"], ["file_size", 2643], ["file_uid", "213"], ["created_at", "2015-03-10 19:22:26.823560"], ["updated_at", "2015-03-10 19:22:26.823560"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "218"], ["created_at", "2015-04-06 13:16:17.046309"], ["updated_at", "2015-04-06 13:16:17.046309"], ["file_ext", "png"], ["mime_type", "image/png"]]
1025
1168
   (0.1ms) RELEASE SAVEPOINT active_record_2
1026
1169
   (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", "214"], ["created_at", "2015-03-10 19:22:26.826008"], ["updated_at", "2015-03-10 19:22:26.826008"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1170
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-04-06 13:16:17.048839"], ["updated_at", "2015-04-06 13:16:17.048839"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1028
1171
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
1172
   (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", "215"], ["created_at", "2015-03-10 19:22:26.828407"], ["updated_at", "2015-03-10 19:22:26.828407"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1173
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-04-06 13:16:17.051353"], ["updated_at", "2015-04-06 13:16:17.051353"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1031
1174
   (0.1ms) RELEASE SAVEPOINT active_record_2
1032
1175
   (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", "216"], ["created_at", "2015-03-10 19:22:26.830981"], ["updated_at", "2015-03-10 19:22:26.830981"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-04-06 13:16:17.053833"], ["updated_at", "2015-04-06 13:16:17.053833"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1034
1177
   (0.1ms) RELEASE SAVEPOINT active_record_2
1035
1178
   (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", "217"], ["created_at", "2015-03-10 19:22:26.833528"], ["updated_at", "2015-03-10 19:22:26.833528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-04-06 13:16:17.057234"], ["updated_at", "2015-04-06 13:16:17.057234"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1037
1180
   (0.1ms) RELEASE SAVEPOINT active_record_2
1038
1181
   (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", "218"], ["created_at", "2015-03-10 19:22:26.836184"], ["updated_at", "2015-03-10 19:22:26.836184"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "223"], ["created_at", "2015-04-06 13:16:17.059961"], ["updated_at", "2015-04-06 13:16:17.059961"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
1183
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
1184
   (0.1ms) SAVEPOINT active_record_2
1042
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "219"], ["created_at", "2015-03-10 19:22:26.838725"], ["updated_at", "2015-03-10 19:22:26.838725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "224"], ["created_at", "2015-04-06 13:16:17.062492"], ["updated_at", "2015-04-06 13:16:17.062492"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1043
1186
   (0.1ms) RELEASE SAVEPOINT active_record_2
1044
1187
   (0.1ms) SAVEPOINT active_record_2
1045
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "220"], ["created_at", "2015-03-10 19:22:26.841165"], ["updated_at", "2015-03-10 19:22:26.841165"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "225"], ["created_at", "2015-04-06 13:16:17.065083"], ["updated_at", "2015-04-06 13:16:17.065083"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1046
1189
   (0.1ms) RELEASE SAVEPOINT active_record_2
1047
1190
   (0.1ms) SAVEPOINT active_record_2
1048
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "221"], ["created_at", "2015-03-10 19:22:26.843633"], ["updated_at", "2015-03-10 19:22:26.843633"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "226"], ["created_at", "2015-04-06 13:16:17.067629"], ["updated_at", "2015-04-06 13:16:17.067629"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1049
1192
   (0.1ms) RELEASE SAVEPOINT active_record_2
1050
1193
   (0.1ms) SAVEPOINT active_record_2
1051
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "222"], ["created_at", "2015-03-10 19:22:26.846136"], ["updated_at", "2015-03-10 19:22:26.846136"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "227"], ["created_at", "2015-04-06 13:16:17.070360"], ["updated_at", "2015-04-06 13:16:17.070360"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1052
1195
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
1196
   (0.1ms) SAVEPOINT active_record_2
1054
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "223"], ["created_at", "2015-03-10 19:22:26.848832"], ["updated_at", "2015-03-10 19:22:26.848832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "228"], ["created_at", "2015-04-06 13:16:17.073086"], ["updated_at", "2015-04-06 13:16:17.073086"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1055
1198
   (0.1ms) RELEASE SAVEPOINT active_record_2
1056
1199
   (0.1ms) SAVEPOINT active_record_2
1057
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "224"], ["created_at", "2015-03-10 19:22:26.851422"], ["updated_at", "2015-03-10 19:22:26.851422"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "229"], ["created_at", "2015-04-06 13:16:17.075772"], ["updated_at", "2015-04-06 13:16:17.075772"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1058
1201
   (0.1ms) RELEASE SAVEPOINT active_record_2
1059
1202
   (0.1ms) SAVEPOINT active_record_2
1060
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "225"], ["created_at", "2015-03-10 19:22:26.854241"], ["updated_at", "2015-03-10 19:22:26.854241"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "230"], ["created_at", "2015-04-06 13:16:17.078378"], ["updated_at", "2015-04-06 13:16:17.078378"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
1204
   (0.1ms) RELEASE SAVEPOINT active_record_2
1062
1205
   (0.1ms) SAVEPOINT active_record_2
1063
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "226"], ["created_at", "2015-03-10 19:22:26.856751"], ["updated_at", "2015-03-10 19:22:26.856751"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
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", "231"], ["created_at", "2015-04-06 13:16:17.080804"], ["updated_at", "2015-04-06 13:16:17.080804"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
1207
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
1208
  Processing by PushType::WysiwygMediaController#index as JSON
1066
1209
  Parameters: {"filter"=>"file", "page"=>2}
@@ -1070,244 +1213,138 @@ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)
1070
1213
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1071
1214
   (0.1ms) ROLLBACK
1072
1215
   (0.1ms) BEGIN
1073
- -----------------------------------------------------------------------
1074
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1075
- -----------------------------------------------------------------------
1216
+ ----------------------------------------------------------------------------------
1217
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
1218
+ ----------------------------------------------------------------------------------
1076
1219
   (0.1ms) SAVEPOINT active_record_1
1077
1220
   (0.0ms) RELEASE SAVEPOINT active_record_1
1078
-  (0.1ms) SAVEPOINT active_record_1
1079
-  (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", "227"], ["created_at", "2015-03-10 19:22:26.869469"], ["updated_at", "2015-03-10 19:22:26.869469"], ["file_ext", "png"], ["mime_type", "image/png"]]
1081
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1082
-  (0.1ms) SAVEPOINT active_record_2
1083
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "228"], ["created_at", "2015-03-10 19:22:26.872086"], ["updated_at", "2015-03-10 19:22:26.872086"], ["file_ext", "png"], ["mime_type", "image/png"]]
1084
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1221
+  (0.0ms) SAVEPOINT active_record_1
1085
1222
   (0.1ms) SAVEPOINT active_record_2
1086
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-03-10 19:22:26.874455"], ["updated_at", "2015-03-10 19:22:26.874455"], ["file_ext", "png"], ["mime_type", "image/png"]]
1223
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-04-06 13:16:17.093023"], ["updated_at", "2015-04-06 13:16:17.093023"], ["file_ext", "png"], ["mime_type", "image/png"]]
1087
1224
   (0.1ms) RELEASE SAVEPOINT active_record_2
1088
1225
   (0.1ms) SAVEPOINT active_record_2
1089
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-03-10 19:22:26.876957"], ["updated_at", "2015-03-10 19:22:26.876957"], ["file_ext", "png"], ["mime_type", "image/png"]]
1226
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-04-06 13:16:17.096322"], ["updated_at", "2015-04-06 13:16:17.096322"], ["file_ext", "png"], ["mime_type", "image/png"]]
1090
1227
   (0.1ms) RELEASE SAVEPOINT active_record_2
1091
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1092
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1093
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1094
-  (0.1ms) ROLLBACK
1095
-  (0.1ms) BEGIN
1096
- -----------------------------------------------------------------------
1097
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1098
- -----------------------------------------------------------------------
1099
-  (0.0ms) SAVEPOINT active_record_1
1100
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1101
-  (0.0ms) SAVEPOINT active_record_1
1102
1228
   (0.1ms) SAVEPOINT active_record_2
1103
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-03-10 19:22:26.886729"], ["updated_at", "2015-03-10 19:22:26.886729"], ["file_ext", "png"], ["mime_type", "image/png"]]
1229
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-04-06 13:16:17.098996"], ["updated_at", "2015-04-06 13:16:17.098996"], ["file_ext", "png"], ["mime_type", "image/png"]]
1104
1230
   (0.1ms) RELEASE SAVEPOINT active_record_2
1105
1231
   (0.1ms) SAVEPOINT active_record_2
1106
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-03-10 19:22:26.889647"], ["updated_at", "2015-03-10 19:22:26.889647"], ["file_ext", "png"], ["mime_type", "image/png"]]
1232
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-04-06 13:16:17.101895"], ["updated_at", "2015-04-06 13:16:17.101895"], ["file_ext", "png"], ["mime_type", "image/png"]]
1107
1233
   (0.1ms) RELEASE SAVEPOINT active_record_2
1108
1234
   (0.1ms) SAVEPOINT active_record_2
1109
- SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-03-10 19:22:26.893171"], ["updated_at", "2015-03-10 19:22:26.893171"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "236"], ["created_at", "2015-04-06 13:16:17.104951"], ["updated_at", "2015-04-06 13:16:17.104951"], ["file_ext", "png"], ["mime_type", "image/png"]]
1110
1236
   (0.1ms) RELEASE SAVEPOINT active_record_2
1111
1237
   (0.1ms) SAVEPOINT active_record_2
1112
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-03-10 19:22:26.896663"], ["updated_at", "2015-03-10 19:22:26.896663"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "237"], ["created_at", "2015-04-06 13:16:17.107698"], ["updated_at", "2015-04-06 13:16:17.107698"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1113
1239
   (0.1ms) RELEASE SAVEPOINT active_record_2
1114
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1115
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1116
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1117
-  (0.1ms) ROLLBACK
1118
-  (0.1ms) BEGIN
1119
- -----------------------------------------------------------------------
1120
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1121
- -----------------------------------------------------------------------
1122
-  (0.0ms) SAVEPOINT active_record_1
1123
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1124
-  (0.0ms) SAVEPOINT active_record_1
1125
1240
   (0.1ms) SAVEPOINT active_record_2
1126
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-03-10 19:22:26.907225"], ["updated_at", "2015-03-10 19:22:26.907225"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "238"], ["created_at", "2015-04-06 13:16:17.110223"], ["updated_at", "2015-04-06 13:16:17.110223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1127
1242
   (0.1ms) RELEASE SAVEPOINT active_record_2
1128
1243
   (0.1ms) SAVEPOINT active_record_2
1129
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-03-10 19:22:26.910161"], ["updated_at", "2015-03-10 19:22:26.910161"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "239"], ["created_at", "2015-04-06 13:16:17.113049"], ["updated_at", "2015-04-06 13:16:17.113049"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1130
1245
   (0.1ms) RELEASE SAVEPOINT active_record_2
1131
1246
   (0.1ms) SAVEPOINT active_record_2
1132
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "237"], ["created_at", "2015-03-10 19:22:26.919007"], ["updated_at", "2015-03-10 19:22:26.919007"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "240"], ["created_at", "2015-04-06 13:16:17.116039"], ["updated_at", "2015-04-06 13:16:17.116039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1133
1248
   (0.1ms) RELEASE SAVEPOINT active_record_2
1134
1249
   (0.1ms) SAVEPOINT active_record_2
1135
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "238"], ["created_at", "2015-03-10 19:22:26.921677"], ["updated_at", "2015-03-10 19:22:26.921677"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "241"], ["created_at", "2015-04-06 13:16:17.119038"], ["updated_at", "2015-04-06 13:16:17.119038"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
1251
   (0.1ms) RELEASE SAVEPOINT active_record_2
1137
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1138
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1139
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1140
-  (0.1ms) ROLLBACK
1141
-  (0.1ms) BEGIN
1142
- -----------------------------------------------------------------------
1143
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1144
- -----------------------------------------------------------------------
1145
-  (0.0ms) SAVEPOINT active_record_1
1146
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1147
-  (0.0ms) SAVEPOINT active_record_1
1148
1252
   (0.1ms) SAVEPOINT active_record_2
1149
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-03-10 19:22:26.932208"], ["updated_at", "2015-03-10 19:22:26.932208"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "242"], ["created_at", "2015-04-06 13:16:17.121883"], ["updated_at", "2015-04-06 13:16:17.121883"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1150
1254
   (0.1ms) RELEASE SAVEPOINT active_record_2
1151
1255
   (0.1ms) SAVEPOINT active_record_2
1152
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "240"], ["created_at", "2015-03-10 19:22:26.934897"], ["updated_at", "2015-03-10 19:22:26.934897"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "243"], ["created_at", "2015-04-06 13:16:17.125424"], ["updated_at", "2015-04-06 13:16:17.125424"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1153
1257
   (0.1ms) RELEASE SAVEPOINT active_record_2
1154
1258
   (0.1ms) SAVEPOINT active_record_2
1155
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-03-10 19:22:26.937439"], ["updated_at", "2015-03-10 19:22:26.937439"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "244"], ["created_at", "2015-04-06 13:16:17.128377"], ["updated_at", "2015-04-06 13:16:17.128377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1156
1260
   (0.1ms) RELEASE SAVEPOINT active_record_2
1157
1261
   (0.1ms) SAVEPOINT active_record_2
1158
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-03-10 19:22:26.940175"], ["updated_at", "2015-03-10 19:22:26.940175"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "245"], ["created_at", "2015-04-06 13:16:17.131013"], ["updated_at", "2015-04-06 13:16:17.131013"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1159
1263
   (0.1ms) RELEASE SAVEPOINT active_record_2
1160
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1161
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1162
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1163
-  (0.1ms) ROLLBACK
1164
-  (0.1ms) BEGIN
1165
- -----------------------------------------------------------------------
1166
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1167
- -----------------------------------------------------------------------
1168
-  (0.1ms) SAVEPOINT active_record_1
1169
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1170
-  (0.0ms) SAVEPOINT active_record_1
1171
1264
   (0.1ms) SAVEPOINT active_record_2
1172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-03-10 19:22:26.951276"], ["updated_at", "2015-03-10 19:22:26.951276"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "246"], ["created_at", "2015-04-06 13:16:17.133781"], ["updated_at", "2015-04-06 13:16:17.133781"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1173
1266
   (0.1ms) RELEASE SAVEPOINT active_record_2
1174
1267
   (0.1ms) SAVEPOINT active_record_2
1175
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2015-03-10 19:22:26.954231"], ["updated_at", "2015-03-10 19:22:26.954231"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "247"], ["created_at", "2015-04-06 13:16:17.136657"], ["updated_at", "2015-04-06 13:16:17.136657"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1176
1269
   (0.1ms) RELEASE SAVEPOINT active_record_2
1177
1270
   (0.1ms) SAVEPOINT active_record_2
1178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-03-10 19:22:26.957304"], ["updated_at", "2015-03-10 19:22:26.957304"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "248"], ["created_at", "2015-04-06 13:16:17.139518"], ["updated_at", "2015-04-06 13:16:17.139518"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1179
1272
   (0.1ms) RELEASE SAVEPOINT active_record_2
1180
1273
   (0.1ms) SAVEPOINT active_record_2
1181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-03-10 19:22:26.960311"], ["updated_at", "2015-03-10 19:22:26.960311"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "249"], ["created_at", "2015-04-06 13:16:17.142498"], ["updated_at", "2015-04-06 13:16:17.142498"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1182
1275
   (0.1ms) RELEASE SAVEPOINT active_record_2
1183
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1184
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1276
+ Processing by PushType::WysiwygMediaController#index as JSON
1277
+ Parameters: {"filter"=>"file", "page"=>2}
1278
+ 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
1279
+  (0.4ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1280
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms)
1185
1281
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1186
1282
   (0.1ms) ROLLBACK
1187
1283
   (0.1ms) BEGIN
1188
- -----------------------------------------------------------------------
1189
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
1190
- -----------------------------------------------------------------------
1191
-  (0.1ms) SAVEPOINT active_record_1
1284
+ ----------------------------------------------------------------------------------
1285
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
1286
+ ----------------------------------------------------------------------------------
1287
+  (0.0ms) SAVEPOINT active_record_1
1192
1288
   (0.1ms) RELEASE SAVEPOINT active_record_1
1193
1289
   (0.1ms) SAVEPOINT active_record_1
1194
1290
   (0.1ms) SAVEPOINT active_record_2
1195
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-03-10 19:22:26.971801"], ["updated_at", "2015-03-10 19:22:26.971801"], ["file_ext", "png"], ["mime_type", "image/png"]]
1291
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-04-06 13:16:17.155064"], ["updated_at", "2015-04-06 13:16:17.155064"], ["file_ext", "png"], ["mime_type", "image/png"]]
1196
1292
   (0.1ms) RELEASE SAVEPOINT active_record_2
1197
1293
   (0.1ms) SAVEPOINT active_record_2
1198
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-03-10 19:22:26.975088"], ["updated_at", "2015-03-10 19:22:26.975088"], ["file_ext", "png"], ["mime_type", "image/png"]]
1294
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-04-06 13:16:17.157995"], ["updated_at", "2015-04-06 13:16:17.157995"], ["file_ext", "png"], ["mime_type", "image/png"]]
1199
1295
   (0.1ms) RELEASE SAVEPOINT active_record_2
1200
1296
   (0.1ms) SAVEPOINT active_record_2
1201
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-03-10 19:22:26.977900"], ["updated_at", "2015-03-10 19:22:26.977900"], ["file_ext", "png"], ["mime_type", "image/png"]]
1297
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-04-06 13:16:17.160615"], ["updated_at", "2015-04-06 13:16:17.160615"], ["file_ext", "png"], ["mime_type", "image/png"]]
1202
1298
   (0.1ms) RELEASE SAVEPOINT active_record_2
1203
1299
   (0.1ms) SAVEPOINT active_record_2
1204
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-03-10 19:22:26.980513"], ["updated_at", "2015-03-10 19:22:26.980513"], ["file_ext", "png"], ["mime_type", "image/png"]]
1205
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1206
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1207
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1208
-  (0.1ms) ROLLBACK
1209
-  (0.1ms) BEGIN
1210
- -----------------------------------------------------------------------
1211
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
1212
- -----------------------------------------------------------------------
1213
-  (0.0ms) SAVEPOINT active_record_1
1214
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1215
-  (0.1ms) SAVEPOINT active_record_1
1216
-  (0.1ms) SAVEPOINT active_record_2
1217
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-03-10 19:22:26.986056"], ["updated_at", "2015-03-10 19:22:26.986056"], ["file_ext", "png"], ["mime_type", "image/png"]]
1300
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-04-06 13:16:17.163415"], ["updated_at", "2015-04-06 13:16:17.163415"], ["file_ext", "png"], ["mime_type", "image/png"]]
1218
1301
   (0.1ms) RELEASE SAVEPOINT active_record_2
1219
1302
   (0.1ms) SAVEPOINT active_record_2
1220
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-03-10 19:22:26.988748"], ["updated_at", "2015-03-10 19:22:26.988748"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "254"], ["created_at", "2015-04-06 13:16:17.166058"], ["updated_at", "2015-04-06 13:16:17.166058"], ["file_ext", "png"], ["mime_type", "image/png"]]
1221
1304
   (0.1ms) RELEASE SAVEPOINT active_record_2
1222
1305
   (0.1ms) SAVEPOINT active_record_2
1223
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-03-10 19:22:26.991620"], ["updated_at", "2015-03-10 19:22:26.991620"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "255"], ["created_at", "2015-04-06 13:16:17.168818"], ["updated_at", "2015-04-06 13:16:17.168818"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1224
1307
   (0.1ms) RELEASE SAVEPOINT active_record_2
1225
1308
   (0.1ms) SAVEPOINT active_record_2
1226
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-03-10 19:22:26.994426"], ["updated_at", "2015-03-10 19:22:26.994426"], ["file_ext", "png"], ["mime_type", "image/png"]]
1227
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1228
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1229
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1230
-  (0.1ms) ROLLBACK
1231
-  (0.1ms) BEGIN
1232
- -----------------------------------------------------------------------
1233
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
1234
- -----------------------------------------------------------------------
1235
-  (0.1ms) SAVEPOINT active_record_1
1236
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1237
-  (0.0ms) SAVEPOINT active_record_1
1238
-  (0.1ms) SAVEPOINT active_record_2
1239
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-03-10 19:22:26.999897"], ["updated_at", "2015-03-10 19:22:26.999897"], ["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", "document.pdf"], ["file_size", 15356], ["file_uid", "256"], ["created_at", "2015-04-06 13:16:17.171268"], ["updated_at", "2015-04-06 13:16:17.171268"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1240
1310
   (0.1ms) RELEASE SAVEPOINT active_record_2
1241
1311
   (0.1ms) SAVEPOINT active_record_2
1242
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-03-10 19:22:27.002905"], ["updated_at", "2015-03-10 19:22:27.002905"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-04-06 13:16:17.174728"], ["updated_at", "2015-04-06 13:16:17.174728"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1243
1313
   (0.1ms) RELEASE SAVEPOINT active_record_2
1244
1314
   (0.1ms) SAVEPOINT active_record_2
1245
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-03-10 19:22:27.005440"], ["updated_at", "2015-03-10 19:22:27.005440"], ["file_ext", "png"], ["mime_type", "image/png"]]
1315
+ 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", "258"], ["created_at", "2015-04-06 13:16:17.177699"], ["updated_at", "2015-04-06 13:16:17.177699"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1246
1316
   (0.1ms) RELEASE SAVEPOINT active_record_2
1247
1317
   (0.1ms) SAVEPOINT active_record_2
1248
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-03-10 19:22:27.008387"], ["updated_at", "2015-03-10 19:22:27.008387"], ["file_ext", "png"], ["mime_type", "image/png"]]
1249
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1250
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1251
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1252
-  (0.1ms) ROLLBACK
1253
-  (0.1ms) BEGIN
1254
- -----------------------------------------------------------------------
1255
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
1256
- -----------------------------------------------------------------------
1257
-  (0.1ms) SAVEPOINT active_record_1
1258
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1259
-  (0.0ms) SAVEPOINT active_record_1
1260
-  (0.1ms) SAVEPOINT active_record_2
1261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-03-10 19:22:27.013802"], ["updated_at", "2015-03-10 19:22:27.013802"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "259"], ["created_at", "2015-04-06 13:16:17.180564"], ["updated_at", "2015-04-06 13:16:17.180564"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1262
1319
   (0.1ms) RELEASE SAVEPOINT active_record_2
1263
1320
   (0.1ms) SAVEPOINT active_record_2
1264
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-03-10 19:22:27.016572"], ["updated_at", "2015-03-10 19:22:27.016572"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "260"], ["created_at", "2015-04-06 13:16:17.183455"], ["updated_at", "2015-04-06 13:16:17.183455"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1265
1322
   (0.1ms) RELEASE SAVEPOINT active_record_2
1266
1323
   (0.1ms) SAVEPOINT active_record_2
1267
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-03-10 19:22:27.019313"], ["updated_at", "2015-03-10 19:22:27.019313"], ["file_ext", "png"], ["mime_type", "image/png"]]
1324
+ 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", "261"], ["created_at", "2015-04-06 13:16:17.186422"], ["updated_at", "2015-04-06 13:16:17.186422"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1268
1325
   (0.1ms) RELEASE SAVEPOINT active_record_2
1269
1326
   (0.1ms) SAVEPOINT active_record_2
1270
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-03-10 19:22:27.022080"], ["updated_at", "2015-03-10 19:22:27.022080"], ["file_ext", "png"], ["mime_type", "image/png"]]
1271
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1272
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1273
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1274
-  (0.1ms) ROLLBACK
1275
-  (0.1ms) BEGIN
1276
- -----------------------------------------------------------------------
1277
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
1278
- -----------------------------------------------------------------------
1279
-  (0.1ms) SAVEPOINT active_record_1
1280
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1281
-  (0.1ms) SAVEPOINT active_record_1
1282
-  (0.1ms) SAVEPOINT active_record_2
1283
- SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-03-10 19:22:27.027660"], ["updated_at", "2015-03-10 19:22:27.027660"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "262"], ["created_at", "2015-04-06 13:16:17.189458"], ["updated_at", "2015-04-06 13:16:17.189458"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1284
1328
   (0.1ms) RELEASE SAVEPOINT active_record_2
1285
1329
   (0.1ms) SAVEPOINT active_record_2
1286
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-03-10 19:22:27.031211"], ["updated_at", "2015-03-10 19:22:27.031211"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "263"], ["created_at", "2015-04-06 13:16:17.192275"], ["updated_at", "2015-04-06 13:16:17.192275"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1287
1331
   (0.1ms) RELEASE SAVEPOINT active_record_2
1288
1332
   (0.1ms) SAVEPOINT active_record_2
1289
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-03-10 19:22:27.034072"], ["updated_at", "2015-03-10 19:22:27.034072"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "264"], ["created_at", "2015-04-06 13:16:17.195117"], ["updated_at", "2015-04-06 13:16:17.195117"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1290
1334
   (0.1ms) RELEASE SAVEPOINT active_record_2
1291
1335
   (0.1ms) SAVEPOINT active_record_2
1292
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-03-10 19:22:27.036776"], ["updated_at", "2015-03-10 19:22:27.036776"], ["file_ext", "png"], ["mime_type", "image/png"]]
1336
+ 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", "265"], ["created_at", "2015-04-06 13:16:17.198270"], ["updated_at", "2015-04-06 13:16:17.198270"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1293
1337
   (0.1ms) RELEASE SAVEPOINT active_record_2
1294
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1295
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1296
-  (0.1ms) ROLLBACK
1297
-  (0.1ms) BEGIN
1298
- --------------------------------------------------------------------------------
1299
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
1300
- --------------------------------------------------------------------------------
1301
-  (0.1ms) SAVEPOINT active_record_1
1302
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1303
-  (0.0ms) SAVEPOINT active_record_1
1304
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1305
- Processing by PushType::WysiwygMediaController#create as JSON
1306
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fec0583bcf8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150310-31430-1c9ikdt>>}}
1307
1338
   (0.1ms) SAVEPOINT active_record_2
1308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-03-10 19:22:27.049556"], ["updated_at", "2015-03-10 19:22:27.049556"], ["file_ext", "png"], ["mime_type", "image/png"]]
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", "266"], ["created_at", "2015-04-06 13:16:17.202398"], ["updated_at", "2015-04-06 13:16:17.202398"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1309
1340
   (0.1ms) RELEASE SAVEPOINT active_record_2
1310
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
1311
-  (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", "267"], ["created_at", "2015-04-06 13:16:17.205165"], ["updated_at", "2015-04-06 13:16:17.205165"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1343
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1344
+ Processing by PushType::WysiwygMediaController#index as JSON
1345
+ Parameters: {"filter"=>"file", "page"=>2}
1346
+ 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
1347
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1348
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.5ms)
1312
1349
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1313
1350
   (0.1ms) ROLLBACK