push_type_wysiwyg 0.4.0.beta.3 → 0.4.0

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