push_type_wysiwyg 0.5.0.alpha.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. checksums.yaml +4 -4
  2. data/test/dummy/config/initializers/push_type.rb +1 -1
  3. data/test/dummy/config/secrets.yml +2 -2
  4. data/test/dummy/db/migrate/{20150601132852_create_push_type_users.push_type.rb → 20150716155055_create_push_type_users.push_type.rb} +0 -0
  5. data/test/dummy/db/migrate/{20150601132853_create_push_type_nodes.push_type.rb → 20150716155056_create_push_type_nodes.push_type.rb} +0 -0
  6. data/test/dummy/db/migrate/{20150601132854_create_push_type_node_hierarchies.push_type.rb → 20150716155057_create_push_type_node_hierarchies.push_type.rb} +0 -0
  7. data/test/dummy/db/migrate/{20150601132855_create_push_type_assets.push_type.rb → 20150716155058_create_push_type_assets.push_type.rb} +0 -0
  8. data/test/dummy/db/migrate/{20150601132856_create_push_type_taxonomies.push_type.rb → 20150716155059_create_push_type_taxonomies.push_type.rb} +0 -0
  9. data/test/dummy/db/migrate/{20150601132857_create_push_type_taxonomy_hierarchies.push_type.rb → 20150716155060_create_push_type_taxonomy_hierarchies.push_type.rb} +0 -0
  10. data/test/dummy/db/migrate/{20150601132858_add_field_store_default_values.push_type.rb → 20150716155061_add_field_store_default_values.push_type.rb} +0 -0
  11. data/test/dummy/db/schema.rb +1 -1
  12. data/test/dummy/log/test.log +704 -704
  13. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/EbaghK7WkVIzsKnewW2dOyr__okSe5VRDicJ32ZHDyA.cache +2 -0
  14. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/Ei2L0uIaXjgl1f2cOn_RAqHa0efsfucFVRKEI72Scpw.cache +4 -0
  15. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/yQyCExmcScF55PbC62h3j4_x1X37cPjB6OM0Mt9BVP4.cache +1 -0
  16. metadata +30 -30
  17. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/APkO7Y5jGgAltMtew8SHO_mOZoHi4ultsTI-Xfegu7M.cache +0 -1
  18. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/FmSPQu2npp_BNGAl1uB43rU-5z1OzMJ16MFmakAjQ0U.cache +0 -3
  19. data/test/dummy/tmp/cache/assets/test/sprockets/v3.0/pcBJDzQJeDhw_S0sAXVzEqXr-q6ocrojEfTAlMgzh4k.cache +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8983c3b198b2865f170a57d5f8cac85881737890
4
- data.tar.gz: a37bf628639d198ba1f792596058b6aa86345c50
3
+ metadata.gz: 20b03ac15396591be5b47327ca973d400fd73ff0
4
+ data.tar.gz: f45555c09953f780530eb8ea0e78d6f258d6bf75
5
5
  SHA512:
6
- metadata.gz: c457ac2764f6b19bf10f04429207e5f9ab0c4b88ad6d5e798f03856b4829d4107a3b35818d48628ec20f649cd121c1a3a727f97c440bd394c85006d0f677b7ce
7
- data.tar.gz: a41e957f1c400c0a4e86902121f59f65ff4dd7616304683764490c6e9fcfce0230cf9c976ac4bccf52092bbfe9d186f5a84bae081192212e2bf432b7d4d04a53
6
+ metadata.gz: 7ac9ce73f2792164e182d7bbc64473eef7f1a1f440edea221c0cef77a12cf8321d500d1593aeb04f223ce24f6588029b948cfd39a0f0c81d9a91b17afda95ab7
7
+ data.tar.gz: bab437c5aa952963601e57e07872c0ec9d71bafb918b74a41dd9a0e8ea0dae1bd12724b7efea7b29c2b19b44ef17ab8f67cbd1c7b751d64e7f8789ec25bc5c1b
@@ -33,6 +33,6 @@ PushType.setup do |config|
33
33
  # secret_access_key: ENV['SECRET_ACCESS_KEY_ID']
34
34
  # }
35
35
 
36
- # config.dragonfly_secret = '5ef0e099b09eba4846cd410863e632d80403d5990a21f215f46ec1bd94e957f8'
36
+ # config.dragonfly_secret = '381b8f8150cd0db0e97be175ad5873de46dd97503fe5a7b3187c1ea7813822f9'
37
37
 
38
38
  end
@@ -11,10 +11,10 @@
11
11
  # if you're sharing your code publicly.
12
12
 
13
13
  development:
14
- secret_key_base: f99fb74ff92023f80d1b1be90e1251d3d4107e1bcc9b37c7db50dce1f584bb4d9d805f87f037b39467f780a96e6a11675e780b460573d94b5bb7c12c6924231e
14
+ secret_key_base: 932ad0c0a09566d5a36af54e24fedc765c26da20609e662d9370ec3457ac167dce2bba49ed900c5495a2f8079e021afe50bfc4643494d24081c3698fb7455c54
15
15
 
16
16
  test:
17
- secret_key_base: 0d7fbf025e0ce9e98b6fe2e861d0097c0056583762d06f9bb81c7f9cda29e88f68e4f5139f8d76d21045ab6a8b5c8c5bd0e2a2cd2d68369bf6babfcab723865d
17
+ secret_key_base: 501930b5c7586531659800666da830bc6de7d7e5eda29339ba24ed7135c9c36932d2b32ea0aad6c952ea39b1bc7d189eb7b77208ff210b3c987773bd042eefbb
18
18
 
19
19
  # Do not keep production secrets in the repository,
20
20
  # instead read values from the environment.
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150601132858) do
14
+ ActiveRecord::Schema.define(version: 20150716155061) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
@@ -1,43 +1,43 @@
1
-  (12.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
3
  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreatePushTypeUsers (20150601132852)
4
+ Migrating to CreatePushTypeUsers (20150716155055)
5
5
   (0.1ms) BEGIN
6
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (2.5ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132852"]]
9
-  (0.7ms) COMMIT
10
- Migrating to CreatePushTypeNodes (20150601132853)
6
+ SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
+  (2.2ms) CREATE TABLE "push_type_users" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "name" character varying, "email" character varying, "field_store" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155055"]]
9
+  (0.6ms) COMMIT
10
+ Migrating to CreatePushTypeNodes (20150716155056)
11
11
   (0.1ms) BEGIN
12
-  (2.1ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132853"]]
14
-  (0.5ms) COMMIT
15
- Migrating to CreatePushTypeNodeHierarchies (20150601132854)
12
+  (1.9ms) CREATE TABLE "push_type_nodes" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "type" character varying, "title" character varying, "slug" character varying, "field_store" jsonb, "parent_id" uuid, "sort_order" integer, "status" integer, "published_at" timestamp, "published_to" timestamp, "creator_id" uuid, "updater_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
13
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155056"]]
14
+  (0.4ms) COMMIT
15
+ Migrating to CreatePushTypeNodeHierarchies (20150716155057)
16
16
   (0.1ms) BEGIN
17
17
   (0.5ms) CREATE TABLE "push_type_node_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL)
18
-  (0.8ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
-  (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", "20150601132854"]]
21
-  (0.5ms) COMMIT
22
- Migrating to CreatePushTypeAssets (20150601132855)
18
+  (0.6ms) CREATE UNIQUE INDEX "node_anc_desc_idx" ON "push_type_node_hierarchies" ("ancestor_id", "descendant_id", "generations")
19
+  (0.5ms) CREATE INDEX "node_desc_idx" ON "push_type_node_hierarchies" ("descendant_id")
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155057"]]
21
+  (0.4ms) COMMIT
22
+ Migrating to CreatePushTypeAssets (20150716155058)
23
23
   (0.1ms) BEGIN
24
-  (2.0ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132855"]]
24
+  (1.9ms) CREATE TABLE "push_type_assets" ("id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "file_uid" character varying, "file_name" character varying, "file_size" integer, "file_ext" character varying, "mime_type" character varying, "description" character varying, "uploader_id" uuid, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "deleted_at" timestamp)
25
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155058"]]
26
26
   (0.5ms) COMMIT
27
- Migrating to CreatePushTypeTaxonomies (20150601132856)
27
+ Migrating to CreatePushTypeTaxonomies (20150716155059)
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", "20150601132856"]]
31
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155059"]]
32
32
   (0.4ms) COMMIT
33
- Migrating to CreatePushTypeTaxonomyHierarchies (20150601132857)
33
+ Migrating to CreatePushTypeTaxonomyHierarchies (20150716155060)
34
34
   (0.1ms) BEGIN
35
-  (0.5ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
-  (0.8ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
35
+  (0.4ms) CREATE TABLE "push_type_taxonomy_hierarchies" ("ancestor_id" uuid NOT NULL, "descendant_id" uuid NOT NULL, "generations" integer NOT NULL) 
36
+  (0.7ms) CREATE UNIQUE INDEX "taxonomy_anc_desc_idx" ON "push_type_taxonomy_hierarchies" ("ancestor_id", "descendant_id", "generations")
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", "20150601132857"]]
39
-  (0.5ms) COMMIT
40
- Migrating to AddFieldStoreDefaultValues (20150601132858)
38
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155060"]]
39
+  (0.4ms) COMMIT
40
+ Migrating to AddFieldStoreDefaultValues (20150716155061)
41
41
   (0.1ms) BEGIN
42
42
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" TYPE jsonb
43
43
   (0.2ms) ALTER TABLE "push_type_nodes" ALTER COLUMN "field_store" SET DEFAULT '{}'
@@ -47,7 +47,7 @@ Migrating to AddFieldStoreDefaultValues (20150601132858)
47
47
   (0.1ms) ALTER TABLE "push_type_users" ALTER COLUMN "field_store" SET DEFAULT '{}'
48
48
   (0.2ms) UPDATE "push_type_users" SET "field_store"='{}' WHERE "field_store" IS NULL
49
49
   (0.2ms) ALTER TABLE "push_type_users" ALTER "field_store" SET NOT NULL
50
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150601132858"]]
50
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20150716155061"]]
51
51
   (0.4ms) COMMIT
52
52
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
53
53
   (1.7ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
@@ -62,7 +62,7 @@ WHERE c.contype = 'f'
62
62
  AND t3.nspname = ANY (current_schemas(false))
63
63
  ORDER BY c.conname
64
64
 
65
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
65
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
66
66
  FROM pg_constraint c
67
67
  JOIN pg_class t1 ON c.conrelid = t1.oid
68
68
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -74,7 +74,7 @@ WHERE c.contype = 'f'
74
74
  AND t3.nspname = ANY (current_schemas(false))
75
75
  ORDER BY c.conname
76
76
  
77
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
77
+  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
78
78
  FROM pg_constraint c
79
79
  JOIN pg_class t1 ON c.conrelid = t1.oid
80
80
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -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
@@ -98,7 +98,7 @@ WHERE c.contype = 'f'
98
98
  AND t3.nspname = ANY (current_schemas(false))
99
99
  ORDER BY c.conname
100
100
  
101
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
101
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
102
102
  FROM pg_constraint c
103
103
  JOIN pg_class t1 ON c.conrelid = t1.oid
104
104
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -110,7 +110,7 @@ WHERE c.contype = 'f'
110
110
  AND t3.nspname = ANY (current_schemas(false))
111
111
  ORDER BY c.conname
112
112
 
113
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
113
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
114
114
  FROM pg_constraint c
115
115
  JOIN pg_class t1 ON c.conrelid = t1.oid
116
116
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -123,1240 +123,1240 @@ WHERE c.contype = 'f'
123
123
  ORDER BY c.conname
124
124
  
125
125
  ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
126
-  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
-  (0.9ms)  SELECT schemaname || '.' || tablename
126
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "push_type_users" DISABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" DISABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" DISABLE TRIGGER ALL;ALTER TABLE "push_type_assets" DISABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" DISABLE TRIGGER ALL
127
+  (1.0ms)  SELECT schemaname || '.' || tablename
128
128
  FROM pg_tables
129
129
  WHERE tablename !~ '_prt_' AND schemaname = ANY (current_schemas(false))
130
130
  
131
-  (1.1ms) select table_name from information_schema.views where table_schema = 'dummy_test'
132
-  (10.8ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
131
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dummy_test'
132
+  (10.5ms) TRUNCATE TABLE "public"."schema_migrations", "public"."push_type_users", "public"."push_type_nodes", "public"."push_type_node_hierarchies", "public"."push_type_taxonomies", "public"."push_type_assets", "public"."push_type_taxonomy_hierarchies" RESTART IDENTITY CASCADE;
133
133
   (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_assets" ENABLE TRIGGER ALL;ALTER TABLE "push_type_users" ENABLE TRIGGER ALL;ALTER TABLE "push_type_nodes" ENABLE TRIGGER ALL;ALTER TABLE "push_type_node_hierarchies" ENABLE TRIGGER ALL;ALTER TABLE "push_type_taxonomy_hierarchies" ENABLE TRIGGER ALL
134
134
   (0.1ms) BEGIN
135
- ---------------------------------------------------------------------------------------
136
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
137
- ---------------------------------------------------------------------------------------
135
+ ----------------------------------------------------------------------------------
136
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
137
+ ----------------------------------------------------------------------------------
138
138
   (0.1ms) SAVEPOINT active_record_1
139
139
   (0.1ms) RELEASE SAVEPOINT active_record_1
140
140
   (0.1ms) SAVEPOINT active_record_1
141
141
   (0.1ms) SAVEPOINT active_record_2
142
- SQL (0.8ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-06-01 13:28:57.828751"], ["updated_at", "2015-06-01 13:28:57.828751"], ["file_ext", "png"], ["mime_type", "image/png"]]
142
+ SQL (0.7ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "1"], ["created_at", "2015-07-16 15:51:01.218748"], ["updated_at", "2015-07-16 15:51:01.218748"], ["file_ext", "png"], ["mime_type", "image/png"]]
143
143
   (0.1ms) RELEASE SAVEPOINT active_record_2
144
144
   (0.1ms) SAVEPOINT active_record_2
145
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-06-01 13:28:57.834360"], ["updated_at", "2015-06-01 13:28:57.834360"], ["file_ext", "png"], ["mime_type", "image/png"]]
145
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "2"], ["created_at", "2015-07-16 15:51:01.223803"], ["updated_at", "2015-07-16 15:51:01.223803"], ["file_ext", "png"], ["mime_type", "image/png"]]
146
146
   (0.1ms) RELEASE SAVEPOINT active_record_2
147
147
   (0.1ms) SAVEPOINT active_record_2
148
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-06-01 13:28:57.836813"], ["updated_at", "2015-06-01 13:28:57.836813"], ["file_ext", "png"], ["mime_type", "image/png"]]
148
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "3"], ["created_at", "2015-07-16 15:51:01.226012"], ["updated_at", "2015-07-16 15:51:01.226012"], ["file_ext", "png"], ["mime_type", "image/png"]]
149
149
   (0.1ms) RELEASE SAVEPOINT active_record_2
150
150
   (0.1ms) SAVEPOINT active_record_2
151
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-06-01 13:28:57.838829"], ["updated_at", "2015-06-01 13:28:57.838829"], ["file_ext", "png"], ["mime_type", "image/png"]]
151
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "4"], ["created_at", "2015-07-16 15:51:01.228394"], ["updated_at", "2015-07-16 15:51:01.228394"], ["file_ext", "png"], ["mime_type", "image/png"]]
152
152
   (0.1ms) RELEASE SAVEPOINT active_record_2
153
153
   (0.1ms) SAVEPOINT active_record_2
154
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-06-01 13:28:57.840868"], ["updated_at", "2015-06-01 13:28:57.840868"], ["file_ext", "png"], ["mime_type", "image/png"]]
154
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "5"], ["created_at", "2015-07-16 15:51:01.230427"], ["updated_at", "2015-07-16 15:51:01.230427"], ["file_ext", "png"], ["mime_type", "image/png"]]
155
155
   (0.1ms) RELEASE SAVEPOINT active_record_2
156
156
   (0.1ms) SAVEPOINT active_record_2
157
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-06-01 13:28:57.843171"], ["updated_at", "2015-06-01 13:28:57.843171"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
157
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "6"], ["created_at", "2015-07-16 15:51:01.232607"], ["updated_at", "2015-07-16 15:51:01.232607"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
158
158
   (0.1ms) RELEASE SAVEPOINT active_record_2
159
159
   (0.1ms) SAVEPOINT active_record_2
160
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-06-01 13:28:57.845287"], ["updated_at", "2015-06-01 13:28:57.845287"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
160
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "7"], ["created_at", "2015-07-16 15:51:01.234590"], ["updated_at", "2015-07-16 15:51:01.234590"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
161
161
   (0.1ms) RELEASE SAVEPOINT active_record_2
162
162
   (0.1ms) SAVEPOINT active_record_2
163
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-06-01 13:28:57.847723"], ["updated_at", "2015-06-01 13:28:57.847723"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
163
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "8"], ["created_at", "2015-07-16 15:51:01.236547"], ["updated_at", "2015-07-16 15:51:01.236547"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
164
164
   (0.1ms) RELEASE SAVEPOINT active_record_2
165
165
   (0.1ms) SAVEPOINT active_record_2
166
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-06-01 13:28:57.850372"], ["updated_at", "2015-06-01 13:28:57.850372"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
166
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "9"], ["created_at", "2015-07-16 15:51:01.238986"], ["updated_at", "2015-07-16 15:51:01.238986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
167
167
   (0.1ms) RELEASE SAVEPOINT active_record_2
168
168
   (0.1ms) SAVEPOINT active_record_2
169
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-06-01 13:28:57.852914"], ["updated_at", "2015-06-01 13:28:57.852914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
169
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "10"], ["created_at", "2015-07-16 15:51:01.241397"], ["updated_at", "2015-07-16 15:51:01.241397"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
170
170
   (0.1ms) RELEASE SAVEPOINT active_record_2
171
171
   (0.1ms) SAVEPOINT active_record_2
172
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-06-01 13:28:57.855214"], ["updated_at", "2015-06-01 13:28:57.855214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "11"], ["created_at", "2015-07-16 15:51:01.243682"], ["updated_at", "2015-07-16 15:51:01.243682"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
173
173
   (0.1ms) RELEASE SAVEPOINT active_record_2
174
174
   (0.1ms) SAVEPOINT active_record_2
175
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-06-01 13:28:57.857479"], ["updated_at", "2015-06-01 13:28:57.857479"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "12"], ["created_at", "2015-07-16 15:51:01.245956"], ["updated_at", "2015-07-16 15:51:01.245956"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
176
176
   (0.1ms) RELEASE SAVEPOINT active_record_2
177
177
   (0.1ms) SAVEPOINT active_record_2
178
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-06-01 13:28:57.859560"], ["updated_at", "2015-06-01 13:28:57.859560"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "13"], ["created_at", "2015-07-16 15:51:01.248032"], ["updated_at", "2015-07-16 15:51:01.248032"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
179
179
   (0.1ms) RELEASE SAVEPOINT active_record_2
180
180
   (0.1ms) SAVEPOINT active_record_2
181
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-06-01 13:28:57.861603"], ["updated_at", "2015-06-01 13:28:57.861603"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
181
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "14"], ["created_at", "2015-07-16 15:51:01.250191"], ["updated_at", "2015-07-16 15:51:01.250191"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
182
182
   (0.1ms) RELEASE SAVEPOINT active_record_2
183
183
   (0.1ms) SAVEPOINT active_record_2
184
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-06-01 13:28:57.863832"], ["updated_at", "2015-06-01 13:28:57.863832"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
184
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "15"], ["created_at", "2015-07-16 15:51:01.252215"], ["updated_at", "2015-07-16 15:51:01.252215"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
185
185
   (0.1ms) RELEASE SAVEPOINT active_record_2
186
186
   (0.1ms) SAVEPOINT active_record_2
187
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-06-01 13:28:57.866142"], ["updated_at", "2015-06-01 13:28:57.866142"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
187
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "16"], ["created_at", "2015-07-16 15:51:01.254201"], ["updated_at", "2015-07-16 15:51:01.254201"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
188
188
   (0.1ms) RELEASE SAVEPOINT active_record_2
189
189
   (0.1ms) SAVEPOINT active_record_2
190
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-06-01 13:28:57.868534"], ["updated_at", "2015-06-01 13:28:57.868534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
190
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "17"], ["created_at", "2015-07-16 15:51:01.256183"], ["updated_at", "2015-07-16 15:51:01.256183"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
191
191
   (0.1ms) RELEASE SAVEPOINT active_record_2
192
192
   (0.1ms) SAVEPOINT active_record_2
193
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-06-01 13:28:57.870746"], ["updated_at", "2015-06-01 13:28:57.870746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
193
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "18"], ["created_at", "2015-07-16 15:51:01.258205"], ["updated_at", "2015-07-16 15:51:01.258205"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
194
194
   (0.1ms) RELEASE SAVEPOINT active_record_2
195
195
  Processing by PushType::WysiwygMediaController#index as JSON
196
- Parameters: {"filter"=>"image"}
197
- PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
198
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
199
- Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 0.9ms)
196
+ Parameters: {"filter"=>"file", "page"=>2}
197
+ PushType::Asset Load (0.6ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
198
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
199
+ Completed 200 OK in 115ms (Views: 0.3ms | ActiveRecord: 0.9ms)
200
200
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
201
201
   (0.1ms) ROLLBACK
202
-  (0.1ms) BEGIN
203
- ---------------------------------------------------------------------------------------
204
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
205
- ---------------------------------------------------------------------------------------
202
+  (0.0ms) BEGIN
203
+ ----------------------------------------------------------------------------------
204
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
205
+ ----------------------------------------------------------------------------------
206
206
   (0.0ms) SAVEPOINT active_record_1
207
207
   (0.0ms) RELEASE SAVEPOINT active_record_1
208
208
   (0.0ms) SAVEPOINT active_record_1
209
209
   (0.1ms) SAVEPOINT active_record_2
210
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-06-01 13:28:57.890817"], ["updated_at", "2015-06-01 13:28:57.890817"], ["file_ext", "png"], ["mime_type", "image/png"]]
210
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "19"], ["created_at", "2015-07-16 15:51:01.380792"], ["updated_at", "2015-07-16 15:51:01.380792"], ["file_ext", "png"], ["mime_type", "image/png"]]
211
211
   (0.1ms) RELEASE SAVEPOINT active_record_2
212
212
   (0.1ms) SAVEPOINT active_record_2
213
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-06-01 13:28:57.893043"], ["updated_at", "2015-06-01 13:28:57.893043"], ["file_ext", "png"], ["mime_type", "image/png"]]
213
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "20"], ["created_at", "2015-07-16 15:51:01.383425"], ["updated_at", "2015-07-16 15:51:01.383425"], ["file_ext", "png"], ["mime_type", "image/png"]]
214
214
   (0.1ms) RELEASE SAVEPOINT active_record_2
215
215
   (0.1ms) SAVEPOINT active_record_2
216
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-06-01 13:28:57.895138"], ["updated_at", "2015-06-01 13:28:57.895138"], ["file_ext", "png"], ["mime_type", "image/png"]]
216
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "21"], ["created_at", "2015-07-16 15:51:01.386534"], ["updated_at", "2015-07-16 15:51:01.386534"], ["file_ext", "png"], ["mime_type", "image/png"]]
217
217
   (0.1ms) RELEASE SAVEPOINT active_record_2
218
218
   (0.1ms) SAVEPOINT active_record_2
219
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-06-01 13:28:57.897302"], ["updated_at", "2015-06-01 13:28:57.897302"], ["file_ext", "png"], ["mime_type", "image/png"]]
219
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "22"], ["created_at", "2015-07-16 15:51:01.388512"], ["updated_at", "2015-07-16 15:51:01.388512"], ["file_ext", "png"], ["mime_type", "image/png"]]
220
220
   (0.1ms) RELEASE SAVEPOINT active_record_2
221
221
   (0.1ms) SAVEPOINT active_record_2
222
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-06-01 13:28:57.899460"], ["updated_at", "2015-06-01 13:28:57.899460"], ["file_ext", "png"], ["mime_type", "image/png"]]
222
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "23"], ["created_at", "2015-07-16 15:51:01.390481"], ["updated_at", "2015-07-16 15:51:01.390481"], ["file_ext", "png"], ["mime_type", "image/png"]]
223
223
   (0.1ms) RELEASE SAVEPOINT active_record_2
224
224
   (0.1ms) SAVEPOINT active_record_2
225
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-06-01 13:28:57.901889"], ["updated_at", "2015-06-01 13:28:57.901889"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
225
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "24"], ["created_at", "2015-07-16 15:51:01.392505"], ["updated_at", "2015-07-16 15:51:01.392505"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
226
226
   (0.1ms) RELEASE SAVEPOINT active_record_2
227
227
   (0.1ms) SAVEPOINT active_record_2
228
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-06-01 13:28:57.931140"], ["updated_at", "2015-06-01 13:28:57.931140"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
228
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "25"], ["created_at", "2015-07-16 15:51:01.394829"], ["updated_at", "2015-07-16 15:51:01.394829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
229
229
   (0.1ms) RELEASE SAVEPOINT active_record_2
230
230
   (0.1ms) SAVEPOINT active_record_2
231
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-06-01 13:28:57.933744"], ["updated_at", "2015-06-01 13:28:57.933744"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
231
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "26"], ["created_at", "2015-07-16 15:51:01.397121"], ["updated_at", "2015-07-16 15:51:01.397121"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
232
232
   (0.1ms) RELEASE SAVEPOINT active_record_2
233
233
   (0.1ms) SAVEPOINT active_record_2
234
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-06-01 13:28:57.936050"], ["updated_at", "2015-06-01 13:28:57.936050"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
234
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "27"], ["created_at", "2015-07-16 15:51:01.399210"], ["updated_at", "2015-07-16 15:51:01.399210"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
235
235
   (0.1ms) RELEASE SAVEPOINT active_record_2
236
236
   (0.1ms) SAVEPOINT active_record_2
237
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-06-01 13:28:57.938230"], ["updated_at", "2015-06-01 13:28:57.938230"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
237
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "28"], ["created_at", "2015-07-16 15:51:01.401260"], ["updated_at", "2015-07-16 15:51:01.401260"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
238
238
   (0.1ms) RELEASE SAVEPOINT active_record_2
239
239
   (0.1ms) SAVEPOINT active_record_2
240
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-06-01 13:28:57.940334"], ["updated_at", "2015-06-01 13:28:57.940334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
240
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "29"], ["created_at", "2015-07-16 15:51:01.403306"], ["updated_at", "2015-07-16 15:51:01.403306"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
241
241
   (0.1ms) RELEASE SAVEPOINT active_record_2
242
242
   (0.1ms) SAVEPOINT active_record_2
243
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-06-01 13:28:57.942763"], ["updated_at", "2015-06-01 13:28:57.942763"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
243
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "30"], ["created_at", "2015-07-16 15:51:01.405334"], ["updated_at", "2015-07-16 15:51:01.405334"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
244
244
   (0.1ms) RELEASE SAVEPOINT active_record_2
245
245
   (0.1ms) SAVEPOINT active_record_2
246
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-06-01 13:28:57.945168"], ["updated_at", "2015-06-01 13:28:57.945168"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
246
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "31"], ["created_at", "2015-07-16 15:51:01.407276"], ["updated_at", "2015-07-16 15:51:01.407276"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
247
247
   (0.1ms) RELEASE SAVEPOINT active_record_2
248
248
   (0.1ms) SAVEPOINT active_record_2
249
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-06-01 13:28:57.947850"], ["updated_at", "2015-06-01 13:28:57.947850"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
249
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "32"], ["created_at", "2015-07-16 15:51:01.409250"], ["updated_at", "2015-07-16 15:51:01.409250"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
250
250
   (0.1ms) RELEASE SAVEPOINT active_record_2
251
251
   (0.1ms) SAVEPOINT active_record_2
252
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-06-01 13:28:57.950128"], ["updated_at", "2015-06-01 13:28:57.950128"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
252
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "33"], ["created_at", "2015-07-16 15:51:01.411189"], ["updated_at", "2015-07-16 15:51:01.411189"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
253
253
   (0.1ms) RELEASE SAVEPOINT active_record_2
254
254
   (0.1ms) SAVEPOINT active_record_2
255
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-06-01 13:28:57.952296"], ["updated_at", "2015-06-01 13:28:57.952296"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
255
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "34"], ["created_at", "2015-07-16 15:51:01.413531"], ["updated_at", "2015-07-16 15:51:01.413531"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
256
256
   (0.1ms) RELEASE SAVEPOINT active_record_2
257
257
   (0.1ms) SAVEPOINT active_record_2
258
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-06-01 13:28:57.954675"], ["updated_at", "2015-06-01 13:28:57.954675"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
258
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "35"], ["created_at", "2015-07-16 15:51:01.415778"], ["updated_at", "2015-07-16 15:51:01.415778"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
259
259
   (0.1ms) RELEASE SAVEPOINT active_record_2
260
260
   (0.1ms) SAVEPOINT active_record_2
261
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-06-01 13:28:57.957039"], ["updated_at", "2015-06-01 13:28:57.957039"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
261
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "36"], ["created_at", "2015-07-16 15:51:01.417751"], ["updated_at", "2015-07-16 15:51:01.417751"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
262
262
   (0.1ms) RELEASE SAVEPOINT active_record_2
263
263
  Processing by PushType::WysiwygMediaController#index as JSON
264
- Parameters: {"filter"=>"image"}
265
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
266
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
267
- Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
264
+ Parameters: {"filter"=>"file", "page"=>2}
265
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
266
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
267
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
268
268
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
269
269
   (0.1ms) ROLLBACK
270
270
   (0.1ms) BEGIN
271
- ---------------------------------------------------------------------------------------
272
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
273
- ---------------------------------------------------------------------------------------
271
+ ----------------------------------------------------------------------------------
272
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
273
+ ----------------------------------------------------------------------------------
274
274
   (0.1ms) SAVEPOINT active_record_1
275
275
   (0.0ms) RELEASE SAVEPOINT active_record_1
276
276
   (0.0ms) SAVEPOINT active_record_1
277
277
   (0.1ms) SAVEPOINT active_record_2
278
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-06-01 13:28:57.966034"], ["updated_at", "2015-06-01 13:28:57.966034"], ["file_ext", "png"], ["mime_type", "image/png"]]
278
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "37"], ["created_at", "2015-07-16 15:51:01.425087"], ["updated_at", "2015-07-16 15:51:01.425087"], ["file_ext", "png"], ["mime_type", "image/png"]]
279
279
   (0.1ms) RELEASE SAVEPOINT active_record_2
280
280
   (0.1ms) SAVEPOINT active_record_2
281
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-06-01 13:28:57.968350"], ["updated_at", "2015-06-01 13:28:57.968350"], ["file_ext", "png"], ["mime_type", "image/png"]]
281
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "38"], ["created_at", "2015-07-16 15:51:01.427407"], ["updated_at", "2015-07-16 15:51:01.427407"], ["file_ext", "png"], ["mime_type", "image/png"]]
282
282
   (0.1ms) RELEASE SAVEPOINT active_record_2
283
283
   (0.1ms) SAVEPOINT active_record_2
284
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-06-01 13:28:57.970655"], ["updated_at", "2015-06-01 13:28:57.970655"], ["file_ext", "png"], ["mime_type", "image/png"]]
284
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "39"], ["created_at", "2015-07-16 15:51:01.429748"], ["updated_at", "2015-07-16 15:51:01.429748"], ["file_ext", "png"], ["mime_type", "image/png"]]
285
285
   (0.1ms) RELEASE SAVEPOINT active_record_2
286
286
   (0.1ms) SAVEPOINT active_record_2
287
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-06-01 13:28:57.972694"], ["updated_at", "2015-06-01 13:28:57.972694"], ["file_ext", "png"], ["mime_type", "image/png"]]
287
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "40"], ["created_at", "2015-07-16 15:51:01.431851"], ["updated_at", "2015-07-16 15:51:01.431851"], ["file_ext", "png"], ["mime_type", "image/png"]]
288
288
   (0.1ms) RELEASE SAVEPOINT active_record_2
289
289
   (0.1ms) SAVEPOINT active_record_2
290
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-06-01 13:28:57.974846"], ["updated_at", "2015-06-01 13:28:57.974846"], ["file_ext", "png"], ["mime_type", "image/png"]]
290
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "41"], ["created_at", "2015-07-16 15:51:01.433822"], ["updated_at", "2015-07-16 15:51:01.433822"], ["file_ext", "png"], ["mime_type", "image/png"]]
291
291
   (0.1ms) RELEASE SAVEPOINT active_record_2
292
292
   (0.1ms) SAVEPOINT active_record_2
293
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-06-01 13:28:57.977048"], ["updated_at", "2015-06-01 13:28:57.977048"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
293
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "42"], ["created_at", "2015-07-16 15:51:01.435901"], ["updated_at", "2015-07-16 15:51:01.435901"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
294
294
   (0.1ms) RELEASE SAVEPOINT active_record_2
295
295
   (0.1ms) SAVEPOINT active_record_2
296
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-06-01 13:28:57.979293"], ["updated_at", "2015-06-01 13:28:57.979293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
296
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "43"], ["created_at", "2015-07-16 15:51:01.437864"], ["updated_at", "2015-07-16 15:51:01.437864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
297
297
   (0.1ms) RELEASE SAVEPOINT active_record_2
298
298
   (0.1ms) SAVEPOINT active_record_2
299
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-06-01 13:28:57.982120"], ["updated_at", "2015-06-01 13:28:57.982120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "44"], ["created_at", "2015-07-16 15:51:01.440050"], ["updated_at", "2015-07-16 15:51:01.440050"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
300
300
   (0.1ms) RELEASE SAVEPOINT active_record_2
301
301
   (0.1ms) SAVEPOINT active_record_2
302
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-06-01 13:28:57.985021"], ["updated_at", "2015-06-01 13:28:57.985021"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
302
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "45"], ["created_at", "2015-07-16 15:51:01.442166"], ["updated_at", "2015-07-16 15:51:01.442166"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
303
303
   (0.1ms) RELEASE SAVEPOINT active_record_2
304
304
   (0.1ms) SAVEPOINT active_record_2
305
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-06-01 13:28:57.987585"], ["updated_at", "2015-06-01 13:28:57.987585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
305
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "46"], ["created_at", "2015-07-16 15:51:01.444199"], ["updated_at", "2015-07-16 15:51:01.444199"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
306
306
   (0.1ms) RELEASE SAVEPOINT active_record_2
307
307
   (0.1ms) SAVEPOINT active_record_2
308
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-06-01 13:28:57.989766"], ["updated_at", "2015-06-01 13:28:57.989766"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
308
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "47"], ["created_at", "2015-07-16 15:51:01.446281"], ["updated_at", "2015-07-16 15:51:01.446281"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
309
309
   (0.1ms) RELEASE SAVEPOINT active_record_2
310
310
   (0.1ms) SAVEPOINT active_record_2
311
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-06-01 13:28:57.991931"], ["updated_at", "2015-06-01 13:28:57.991931"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "48"], ["created_at", "2015-07-16 15:51:01.448350"], ["updated_at", "2015-07-16 15:51:01.448350"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
312
312
   (0.1ms) RELEASE SAVEPOINT active_record_2
313
313
   (0.1ms) SAVEPOINT active_record_2
314
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-06-01 13:28:57.994088"], ["updated_at", "2015-06-01 13:28:57.994088"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
314
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "49"], ["created_at", "2015-07-16 15:51:01.450333"], ["updated_at", "2015-07-16 15:51:01.450333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
315
315
   (0.1ms) RELEASE SAVEPOINT active_record_2
316
316
   (0.1ms) SAVEPOINT active_record_2
317
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-06-01 13:28:57.996337"], ["updated_at", "2015-06-01 13:28:57.996337"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
317
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "50"], ["created_at", "2015-07-16 15:51:01.452457"], ["updated_at", "2015-07-16 15:51:01.452457"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
318
318
   (0.1ms) RELEASE SAVEPOINT active_record_2
319
319
   (0.1ms) SAVEPOINT active_record_2
320
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-06-01 13:28:57.998992"], ["updated_at", "2015-06-01 13:28:57.998992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
320
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "51"], ["created_at", "2015-07-16 15:51:01.454412"], ["updated_at", "2015-07-16 15:51:01.454412"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
321
321
   (0.1ms) RELEASE SAVEPOINT active_record_2
322
322
   (0.1ms) SAVEPOINT active_record_2
323
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-06-01 13:28:58.001388"], ["updated_at", "2015-06-01 13:28:58.001388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
323
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "52"], ["created_at", "2015-07-16 15:51:01.456330"], ["updated_at", "2015-07-16 15:51:01.456330"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
324
324
   (0.1ms) RELEASE SAVEPOINT active_record_2
325
325
   (0.1ms) SAVEPOINT active_record_2
326
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-06-01 13:28:58.003613"], ["updated_at", "2015-06-01 13:28:58.003613"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
326
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "53"], ["created_at", "2015-07-16 15:51:01.458409"], ["updated_at", "2015-07-16 15:51:01.458409"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
327
327
   (0.1ms) RELEASE SAVEPOINT active_record_2
328
328
   (0.1ms) SAVEPOINT active_record_2
329
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-06-01 13:28:58.005757"], ["updated_at", "2015-06-01 13:28:58.005757"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
329
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "54"], ["created_at", "2015-07-16 15:51:01.460820"], ["updated_at", "2015-07-16 15:51:01.460820"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
330
330
   (0.1ms) RELEASE SAVEPOINT active_record_2
331
331
  Processing by PushType::WysiwygMediaController#index as JSON
332
- Parameters: {"filter"=>"image"}
333
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
334
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
335
- Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.6ms)
332
+ Parameters: {"filter"=>"file", "page"=>2}
333
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
334
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
335
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
336
336
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
337
337
   (0.2ms) ROLLBACK
338
338
   (0.1ms) BEGIN
339
- ---------------------------------------------------------------------------------------
340
- PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
341
- ---------------------------------------------------------------------------------------
342
-  (0.1ms) SAVEPOINT active_record_1
339
+ ----------------------------------------------------------------------------------
340
+ PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
341
+ ----------------------------------------------------------------------------------
342
+  (0.0ms) SAVEPOINT active_record_1
343
343
   (0.0ms) RELEASE SAVEPOINT active_record_1
344
344
   (0.0ms) SAVEPOINT active_record_1
345
345
   (0.1ms) SAVEPOINT active_record_2
346
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-06-01 13:28:58.016253"], ["updated_at", "2015-06-01 13:28:58.016253"], ["file_ext", "png"], ["mime_type", "image/png"]]
346
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "55"], ["created_at", "2015-07-16 15:51:01.468264"], ["updated_at", "2015-07-16 15:51:01.468264"], ["file_ext", "png"], ["mime_type", "image/png"]]
347
347
   (0.1ms) RELEASE SAVEPOINT active_record_2
348
348
   (0.1ms) SAVEPOINT active_record_2
349
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-06-01 13:28:58.018646"], ["updated_at", "2015-06-01 13:28:58.018646"], ["file_ext", "png"], ["mime_type", "image/png"]]
349
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "56"], ["created_at", "2015-07-16 15:51:01.470468"], ["updated_at", "2015-07-16 15:51:01.470468"], ["file_ext", "png"], ["mime_type", "image/png"]]
350
350
   (0.1ms) RELEASE SAVEPOINT active_record_2
351
351
   (0.1ms) SAVEPOINT active_record_2
352
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-06-01 13:28:58.021251"], ["updated_at", "2015-06-01 13:28:58.021251"], ["file_ext", "png"], ["mime_type", "image/png"]]
352
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "57"], ["created_at", "2015-07-16 15:51:01.472399"], ["updated_at", "2015-07-16 15:51:01.472399"], ["file_ext", "png"], ["mime_type", "image/png"]]
353
353
   (0.1ms) RELEASE SAVEPOINT active_record_2
354
354
   (0.1ms) SAVEPOINT active_record_2
355
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-06-01 13:28:58.023493"], ["updated_at", "2015-06-01 13:28:58.023493"], ["file_ext", "png"], ["mime_type", "image/png"]]
355
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "58"], ["created_at", "2015-07-16 15:51:01.474377"], ["updated_at", "2015-07-16 15:51:01.474377"], ["file_ext", "png"], ["mime_type", "image/png"]]
356
356
   (0.1ms) RELEASE SAVEPOINT active_record_2
357
357
   (0.1ms) SAVEPOINT active_record_2
358
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-06-01 13:28:58.025615"], ["updated_at", "2015-06-01 13:28:58.025615"], ["file_ext", "png"], ["mime_type", "image/png"]]
358
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "59"], ["created_at", "2015-07-16 15:51:01.476644"], ["updated_at", "2015-07-16 15:51:01.476644"], ["file_ext", "png"], ["mime_type", "image/png"]]
359
359
   (0.1ms) RELEASE SAVEPOINT active_record_2
360
360
   (0.1ms) SAVEPOINT active_record_2
361
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-06-01 13:28:58.027743"], ["updated_at", "2015-06-01 13:28:58.027743"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
361
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "60"], ["created_at", "2015-07-16 15:51:01.478941"], ["updated_at", "2015-07-16 15:51:01.478941"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
362
362
   (0.1ms) RELEASE SAVEPOINT active_record_2
363
363
   (0.1ms) SAVEPOINT active_record_2
364
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-06-01 13:28:58.029887"], ["updated_at", "2015-06-01 13:28:58.029887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
364
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "61"], ["created_at", "2015-07-16 15:51:01.480990"], ["updated_at", "2015-07-16 15:51:01.480990"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
365
365
   (0.1ms) RELEASE SAVEPOINT active_record_2
366
366
   (0.1ms) SAVEPOINT active_record_2
367
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-06-01 13:28:58.032170"], ["updated_at", "2015-06-01 13:28:58.032170"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
367
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "62"], ["created_at", "2015-07-16 15:51:01.483127"], ["updated_at", "2015-07-16 15:51:01.483127"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
368
368
   (0.1ms) RELEASE SAVEPOINT active_record_2
369
369
   (0.1ms) SAVEPOINT active_record_2
370
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-06-01 13:28:58.034639"], ["updated_at", "2015-06-01 13:28:58.034639"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
370
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "63"], ["created_at", "2015-07-16 15:51:01.485162"], ["updated_at", "2015-07-16 15:51:01.485162"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
371
371
   (0.1ms) RELEASE SAVEPOINT active_record_2
372
372
   (0.1ms) SAVEPOINT active_record_2
373
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-06-01 13:28:58.036829"], ["updated_at", "2015-06-01 13:28:58.036829"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
373
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "64"], ["created_at", "2015-07-16 15:51:01.487178"], ["updated_at", "2015-07-16 15:51:01.487178"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
374
374
   (0.1ms) RELEASE SAVEPOINT active_record_2
375
375
   (0.1ms) SAVEPOINT active_record_2
376
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-06-01 13:28:58.038911"], ["updated_at", "2015-06-01 13:28:58.038911"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
376
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "65"], ["created_at", "2015-07-16 15:51:01.489278"], ["updated_at", "2015-07-16 15:51:01.489278"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
377
377
   (0.1ms) RELEASE SAVEPOINT active_record_2
378
378
   (0.1ms) SAVEPOINT active_record_2
379
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-06-01 13:28:58.041131"], ["updated_at", "2015-06-01 13:28:58.041131"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
379
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "66"], ["created_at", "2015-07-16 15:51:01.491342"], ["updated_at", "2015-07-16 15:51:01.491342"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
380
380
   (0.1ms) RELEASE SAVEPOINT active_record_2
381
381
   (0.1ms) SAVEPOINT active_record_2
382
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-06-01 13:28:58.043528"], ["updated_at", "2015-06-01 13:28:58.043528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
382
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "67"], ["created_at", "2015-07-16 15:51:01.493486"], ["updated_at", "2015-07-16 15:51:01.493486"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
383
383
   (0.1ms) RELEASE SAVEPOINT active_record_2
384
384
   (0.1ms) SAVEPOINT active_record_2
385
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-06-01 13:28:58.045938"], ["updated_at", "2015-06-01 13:28:58.045938"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
385
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "68"], ["created_at", "2015-07-16 15:51:01.495769"], ["updated_at", "2015-07-16 15:51:01.495769"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
386
386
   (0.1ms) RELEASE SAVEPOINT active_record_2
387
387
   (0.1ms) SAVEPOINT active_record_2
388
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-06-01 13:28:58.048143"], ["updated_at", "2015-06-01 13:28:58.048143"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
388
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "69"], ["created_at", "2015-07-16 15:51:01.497949"], ["updated_at", "2015-07-16 15:51:01.497949"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
389
389
   (0.1ms) RELEASE SAVEPOINT active_record_2
390
390
   (0.1ms) SAVEPOINT active_record_2
391
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-06-01 13:28:58.051176"], ["updated_at", "2015-06-01 13:28:58.051176"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
391
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "70"], ["created_at", "2015-07-16 15:51:01.499977"], ["updated_at", "2015-07-16 15:51:01.499977"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
392
392
   (0.1ms) RELEASE SAVEPOINT active_record_2
393
393
   (0.1ms) SAVEPOINT active_record_2
394
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-06-01 13:28:58.053935"], ["updated_at", "2015-06-01 13:28:58.053935"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
394
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "71"], ["created_at", "2015-07-16 15:51:01.502162"], ["updated_at", "2015-07-16 15:51:01.502162"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
395
395
   (0.1ms) RELEASE SAVEPOINT active_record_2
396
396
   (0.1ms) SAVEPOINT active_record_2
397
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-06-01 13:28:58.056565"], ["updated_at", "2015-06-01 13:28:58.056565"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
397
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "72"], ["created_at", "2015-07-16 15:51:01.504399"], ["updated_at", "2015-07-16 15:51:01.504399"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
398
398
   (0.1ms) RELEASE SAVEPOINT active_record_2
399
399
  Processing by PushType::WysiwygMediaController#index as JSON
400
- Parameters: {"filter"=>"image"}
401
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
402
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
403
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.5ms)
400
+ Parameters: {"filter"=>"file", "page"=>2}
401
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
402
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
403
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
404
404
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
405
405
   (0.1ms) ROLLBACK
406
406
   (0.1ms) BEGIN
407
- ----------------------------------------------------------------------------------
408
- PushType::WysiwygMediaController::GET #index::with pagination: test_0004_anonymous
409
- ----------------------------------------------------------------------------------
410
-  (0.1ms) SAVEPOINT active_record_1
411
-  (0.1ms) RELEASE SAVEPOINT active_record_1
407
+ ----------------------------------------------------------------------------------------
408
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
409
+ ----------------------------------------------------------------------------------------
410
+  (0.0ms) SAVEPOINT active_record_1
411
+  (0.0ms) RELEASE SAVEPOINT active_record_1
412
+  (0.0ms) SAVEPOINT active_record_1
413
+ Processing by PushType::WysiwygMediaController#create as JSON
414
+ Parameters: {"asset"=>{}}
415
+  (0.1ms) SAVEPOINT active_record_2
416
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
417
+ Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.2ms)
418
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
419
+  (0.1ms) ROLLBACK
420
+  (0.1ms) BEGIN
421
+ ----------------------------------------------------------------------------------------
422
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
423
+ ----------------------------------------------------------------------------------------
424
+  (0.0ms) SAVEPOINT active_record_1
425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
426
+  (0.0ms) SAVEPOINT active_record_1
427
+ Processing by PushType::WysiwygMediaController#create as JSON
428
+ Parameters: {"asset"=>{}}
429
+  (0.1ms) SAVEPOINT active_record_2
430
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
431
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
432
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
433
+  (0.1ms) ROLLBACK
434
+  (0.2ms) BEGIN
435
+ ----------------------------------------------------------------------------------------
436
+ PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
437
+ ----------------------------------------------------------------------------------------
412
438
   (0.1ms) SAVEPOINT active_record_1
439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
440
+  (0.0ms) SAVEPOINT active_record_1
441
+ Processing by PushType::WysiwygMediaController#create as JSON
442
+ Parameters: {"asset"=>{}}
413
443
   (0.1ms) SAVEPOINT active_record_2
414
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-06-01 13:28:58.066910"], ["updated_at", "2015-06-01 13:28:58.066910"], ["file_ext", "png"], ["mime_type", "image/png"]]
415
-  (0.1ms) RELEASE SAVEPOINT active_record_2
444
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
445
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
446
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
447
+  (0.1ms) ROLLBACK
448
+  (0.1ms) BEGIN
449
+ --------------------------------------------------------------------------------
450
+ PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
451
+ --------------------------------------------------------------------------------
452
+  (0.0ms) SAVEPOINT active_record_1
453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
454
+  (0.0ms) SAVEPOINT active_record_1
455
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
456
+ Processing by PushType::WysiwygMediaController#create as JSON
457
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc24bcee10 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-jk70ef>>}}
416
458
   (0.1ms) SAVEPOINT active_record_2
417
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-06-01 13:28:58.069230"], ["updated_at", "2015-06-01 13:28:58.069230"], ["file_ext", "png"], ["mime_type", "image/png"]]
459
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "73"], ["created_at", "2015-07-16 15:51:01.534627"], ["updated_at", "2015-07-16 15:51:01.534627"], ["file_ext", "png"], ["mime_type", "image/png"]]
418
460
   (0.1ms) RELEASE SAVEPOINT active_record_2
419
-  (0.1ms) SAVEPOINT active_record_2
420
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-06-01 13:28:58.071535"], ["updated_at", "2015-06-01 13:28:58.071535"], ["file_ext", "png"], ["mime_type", "image/png"]]
421
-  (0.1ms) RELEASE SAVEPOINT active_record_2
461
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
462
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
463
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
464
+  (0.1ms) ROLLBACK
465
+  (0.1ms) BEGIN
466
+ ---------------------------------------------------------------------------------------
467
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0002_anonymous
468
+ ---------------------------------------------------------------------------------------
469
+  (0.1ms) SAVEPOINT active_record_1
470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
471
+  (0.1ms) SAVEPOINT active_record_1
422
472
   (0.1ms) SAVEPOINT active_record_2
423
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-06-01 13:28:58.073696"], ["updated_at", "2015-06-01 13:28:58.073696"], ["file_ext", "png"], ["mime_type", "image/png"]]
473
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "74"], ["created_at", "2015-07-16 15:51:01.541810"], ["updated_at", "2015-07-16 15:51:01.541810"], ["file_ext", "png"], ["mime_type", "image/png"]]
424
474
   (0.1ms) RELEASE SAVEPOINT active_record_2
425
475
   (0.1ms) SAVEPOINT active_record_2
426
- SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-06-01 13:28:58.075850"], ["updated_at", "2015-06-01 13:28:58.075850"], ["file_ext", "png"], ["mime_type", "image/png"]]
476
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "75"], ["created_at", "2015-07-16 15:51:01.544022"], ["updated_at", "2015-07-16 15:51:01.544022"], ["file_ext", "png"], ["mime_type", "image/png"]]
427
477
   (0.1ms) RELEASE SAVEPOINT active_record_2
428
478
   (0.1ms) SAVEPOINT active_record_2
429
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "78"], ["created_at", "2015-06-01 13:28:58.078330"], ["updated_at", "2015-06-01 13:28:58.078330"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
479
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "76"], ["created_at", "2015-07-16 15:51:01.546334"], ["updated_at", "2015-07-16 15:51:01.546334"], ["file_ext", "png"], ["mime_type", "image/png"]]
430
480
   (0.1ms) RELEASE SAVEPOINT active_record_2
431
481
   (0.1ms) SAVEPOINT active_record_2
432
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-06-01 13:28:58.080496"], ["updated_at", "2015-06-01 13:28:58.080496"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
482
+ SQL (0.3ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "77"], ["created_at", "2015-07-16 15:51:01.548247"], ["updated_at", "2015-07-16 15:51:01.548247"], ["file_ext", "png"], ["mime_type", "image/png"]]
433
483
   (0.1ms) RELEASE SAVEPOINT active_record_2
434
484
   (0.1ms) SAVEPOINT active_record_2
435
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-06-01 13:28:58.082668"], ["updated_at", "2015-06-01 13:28:58.082668"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
485
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "78"], ["created_at", "2015-07-16 15:51:01.550373"], ["updated_at", "2015-07-16 15:51:01.550373"], ["file_ext", "png"], ["mime_type", "image/png"]]
436
486
   (0.1ms) RELEASE SAVEPOINT active_record_2
437
487
   (0.1ms) SAVEPOINT active_record_2
438
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-06-01 13:28:58.084759"], ["updated_at", "2015-06-01 13:28:58.084759"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
488
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "79"], ["created_at", "2015-07-16 15:51:01.552449"], ["updated_at", "2015-07-16 15:51:01.552449"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
439
489
   (0.1ms) RELEASE SAVEPOINT active_record_2
440
490
   (0.1ms) SAVEPOINT active_record_2
441
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-06-01 13:28:58.086940"], ["updated_at", "2015-06-01 13:28:58.086940"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
491
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "80"], ["created_at", "2015-07-16 15:51:01.554474"], ["updated_at", "2015-07-16 15:51:01.554474"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
442
492
   (0.1ms) RELEASE SAVEPOINT active_record_2
443
493
   (0.1ms) SAVEPOINT active_record_2
444
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-06-01 13:28:58.089154"], ["updated_at", "2015-06-01 13:28:58.089154"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
494
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "81"], ["created_at", "2015-07-16 15:51:01.556704"], ["updated_at", "2015-07-16 15:51:01.556704"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
445
495
   (0.1ms) RELEASE SAVEPOINT active_record_2
446
496
   (0.1ms) SAVEPOINT active_record_2
447
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-06-01 13:28:58.091255"], ["updated_at", "2015-06-01 13:28:58.091255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
497
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "82"], ["created_at", "2015-07-16 15:51:01.559155"], ["updated_at", "2015-07-16 15:51:01.559155"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
448
498
   (0.1ms) RELEASE SAVEPOINT active_record_2
449
499
   (0.1ms) SAVEPOINT active_record_2
450
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-06-01 13:28:58.093295"], ["updated_at", "2015-06-01 13:28:58.093295"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
500
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "83"], ["created_at", "2015-07-16 15:51:01.561377"], ["updated_at", "2015-07-16 15:51:01.561377"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
451
501
   (0.1ms) RELEASE SAVEPOINT active_record_2
452
502
   (0.1ms) SAVEPOINT active_record_2
453
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-06-01 13:28:58.095263"], ["updated_at", "2015-06-01 13:28:58.095263"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
503
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "84"], ["created_at", "2015-07-16 15:51:01.563585"], ["updated_at", "2015-07-16 15:51:01.563585"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
454
504
   (0.1ms) RELEASE SAVEPOINT active_record_2
455
505
   (0.1ms) SAVEPOINT active_record_2
456
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-06-01 13:28:58.097292"], ["updated_at", "2015-06-01 13:28:58.097292"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
506
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "85"], ["created_at", "2015-07-16 15:51:01.565603"], ["updated_at", "2015-07-16 15:51:01.565603"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
457
507
   (0.1ms) RELEASE SAVEPOINT active_record_2
458
508
   (0.1ms) SAVEPOINT active_record_2
459
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-06-01 13:28:58.099488"], ["updated_at", "2015-06-01 13:28:58.099488"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
509
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "86"], ["created_at", "2015-07-16 15:51:01.567726"], ["updated_at", "2015-07-16 15:51:01.567726"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
460
510
   (0.1ms) RELEASE SAVEPOINT active_record_2
461
511
   (0.1ms) SAVEPOINT active_record_2
462
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-06-01 13:28:58.101708"], ["updated_at", "2015-06-01 13:28:58.101708"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
512
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "87"], ["created_at", "2015-07-16 15:51:01.569781"], ["updated_at", "2015-07-16 15:51:01.569781"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
463
513
   (0.1ms) RELEASE SAVEPOINT active_record_2
464
514
   (0.1ms) SAVEPOINT active_record_2
465
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-06-01 13:28:58.103808"], ["updated_at", "2015-06-01 13:28:58.103808"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
515
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "88"], ["created_at", "2015-07-16 15:51:01.571802"], ["updated_at", "2015-07-16 15:51:01.571802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
466
516
   (0.1ms) RELEASE SAVEPOINT active_record_2
467
- Processing by PushType::WysiwygMediaController#index as JSON
468
- Parameters: {"filter"=>"file", "page"=>2}
469
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
470
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
471
- Completed 200 OK in 77ms (Views: 0.2ms | ActiveRecord: 0.6ms)
472
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
473
-  (0.1ms) ROLLBACK
474
-  (0.1ms) BEGIN
475
- ----------------------------------------------------------------------------------
476
- PushType::WysiwygMediaController::GET #index::with pagination: test_0002_anonymous
477
- ----------------------------------------------------------------------------------
478
-  (0.1ms) SAVEPOINT active_record_1
479
-  (0.1ms) RELEASE SAVEPOINT active_record_1
480
-  (0.1ms) SAVEPOINT active_record_1
481
517
   (0.1ms) SAVEPOINT active_record_2
482
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "91"], ["created_at", "2015-06-01 13:28:58.186959"], ["updated_at", "2015-06-01 13:28:58.186959"], ["file_ext", "png"], ["mime_type", "image/png"]]
518
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "89"], ["created_at", "2015-07-16 15:51:01.573725"], ["updated_at", "2015-07-16 15:51:01.573725"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
483
519
   (0.1ms) RELEASE SAVEPOINT active_record_2
484
520
   (0.1ms) SAVEPOINT active_record_2
485
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "92"], ["created_at", "2015-06-01 13:28:58.189502"], ["updated_at", "2015-06-01 13:28:58.189502"], ["file_ext", "png"], ["mime_type", "image/png"]]
521
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "90"], ["created_at", "2015-07-16 15:51:01.575887"], ["updated_at", "2015-07-16 15:51:01.575887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
486
522
   (0.1ms) RELEASE SAVEPOINT active_record_2
487
523
   (0.1ms) SAVEPOINT active_record_2
488
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-06-01 13:28:58.191789"], ["updated_at", "2015-06-01 13:28:58.191789"], ["file_ext", "png"], ["mime_type", "image/png"]]
524
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "91"], ["created_at", "2015-07-16 15:51:01.578062"], ["updated_at", "2015-07-16 15:51:01.578062"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
489
525
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
+ Processing by PushType::WysiwygMediaController#index as JSON
527
+ Parameters: {"filter"=>"image"}
528
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
529
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
530
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
531
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
532
+  (0.1ms) ROLLBACK
533
+  (0.1ms) BEGIN
534
+ ---------------------------------------------------------------------------------------
535
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0001_anonymous
536
+ ---------------------------------------------------------------------------------------
537
+  (0.1ms) SAVEPOINT active_record_1
538
+  (0.1ms) RELEASE SAVEPOINT active_record_1
539
+  (0.0ms) SAVEPOINT active_record_1
490
540
   (0.1ms) SAVEPOINT active_record_2
491
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-06-01 13:28:58.194098"], ["updated_at", "2015-06-01 13:28:58.194098"], ["file_ext", "png"], ["mime_type", "image/png"]]
541
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "92"], ["created_at", "2015-07-16 15:51:01.586177"], ["updated_at", "2015-07-16 15:51:01.586177"], ["file_ext", "png"], ["mime_type", "image/png"]]
492
542
   (0.1ms) RELEASE SAVEPOINT active_record_2
493
543
   (0.1ms) SAVEPOINT active_record_2
494
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-06-01 13:28:58.196206"], ["updated_at", "2015-06-01 13:28:58.196206"], ["file_ext", "png"], ["mime_type", "image/png"]]
544
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "93"], ["created_at", "2015-07-16 15:51:01.588345"], ["updated_at", "2015-07-16 15:51:01.588345"], ["file_ext", "png"], ["mime_type", "image/png"]]
495
545
   (0.1ms) RELEASE SAVEPOINT active_record_2
496
546
   (0.1ms) SAVEPOINT active_record_2
497
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "96"], ["created_at", "2015-06-01 13:28:58.198311"], ["updated_at", "2015-06-01 13:28:58.198311"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
547
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "94"], ["created_at", "2015-07-16 15:51:01.590316"], ["updated_at", "2015-07-16 15:51:01.590316"], ["file_ext", "png"], ["mime_type", "image/png"]]
498
548
   (0.1ms) RELEASE SAVEPOINT active_record_2
499
549
   (0.1ms) SAVEPOINT active_record_2
500
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-06-01 13:28:58.200347"], ["updated_at", "2015-06-01 13:28:58.200347"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
550
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "95"], ["created_at", "2015-07-16 15:51:01.592503"], ["updated_at", "2015-07-16 15:51:01.592503"], ["file_ext", "png"], ["mime_type", "image/png"]]
501
551
   (0.1ms) RELEASE SAVEPOINT active_record_2
502
552
   (0.1ms) SAVEPOINT active_record_2
503
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-06-01 13:28:58.202540"], ["updated_at", "2015-06-01 13:28:58.202540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
553
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "96"], ["created_at", "2015-07-16 15:51:01.594571"], ["updated_at", "2015-07-16 15:51:01.594571"], ["file_ext", "png"], ["mime_type", "image/png"]]
504
554
   (0.1ms) RELEASE SAVEPOINT active_record_2
505
555
   (0.1ms) SAVEPOINT active_record_2
506
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-06-01 13:28:58.204721"], ["updated_at", "2015-06-01 13:28:58.204721"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
556
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "97"], ["created_at", "2015-07-16 15:51:01.596708"], ["updated_at", "2015-07-16 15:51:01.596708"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
507
557
   (0.1ms) RELEASE SAVEPOINT active_record_2
508
558
   (0.1ms) SAVEPOINT active_record_2
509
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-06-01 13:28:58.207120"], ["updated_at", "2015-06-01 13:28:58.207120"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
559
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "98"], ["created_at", "2015-07-16 15:51:01.598852"], ["updated_at", "2015-07-16 15:51:01.598852"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
510
560
   (0.1ms) RELEASE SAVEPOINT active_record_2
511
561
   (0.1ms) SAVEPOINT active_record_2
512
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-06-01 13:28:58.210127"], ["updated_at", "2015-06-01 13:28:58.210127"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
562
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "99"], ["created_at", "2015-07-16 15:51:01.600925"], ["updated_at", "2015-07-16 15:51:01.600925"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
513
563
   (0.1ms) RELEASE SAVEPOINT active_record_2
514
564
   (0.1ms) SAVEPOINT active_record_2
515
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-06-01 13:28:58.213112"], ["updated_at", "2015-06-01 13:28:58.213112"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
565
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "100"], ["created_at", "2015-07-16 15:51:01.602986"], ["updated_at", "2015-07-16 15:51:01.602986"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
516
566
   (0.1ms) RELEASE SAVEPOINT active_record_2
517
567
   (0.1ms) SAVEPOINT active_record_2
518
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-06-01 13:28:58.216368"], ["updated_at", "2015-06-01 13:28:58.216368"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
568
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "101"], ["created_at", "2015-07-16 15:51:01.605030"], ["updated_at", "2015-07-16 15:51:01.605030"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
519
569
   (0.1ms) RELEASE SAVEPOINT active_record_2
520
570
   (0.1ms) SAVEPOINT active_record_2
521
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-06-01 13:28:58.219481"], ["updated_at", "2015-06-01 13:28:58.219481"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
571
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "102"], ["created_at", "2015-07-16 15:51:01.607104"], ["updated_at", "2015-07-16 15:51:01.607104"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
522
572
   (0.1ms) RELEASE SAVEPOINT active_record_2
523
573
   (0.1ms) SAVEPOINT active_record_2
524
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-06-01 13:28:58.222484"], ["updated_at", "2015-06-01 13:28:58.222484"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
574
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "103"], ["created_at", "2015-07-16 15:51:01.609252"], ["updated_at", "2015-07-16 15:51:01.609252"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
525
575
   (0.1ms) RELEASE SAVEPOINT active_record_2
526
576
   (0.1ms) SAVEPOINT active_record_2
527
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-06-01 13:28:58.225068"], ["updated_at", "2015-06-01 13:28:58.225068"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
577
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "104"], ["created_at", "2015-07-16 15:51:01.611293"], ["updated_at", "2015-07-16 15:51:01.611293"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
528
578
   (0.1ms) RELEASE SAVEPOINT active_record_2
529
579
   (0.1ms) SAVEPOINT active_record_2
530
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-06-01 13:28:58.227651"], ["updated_at", "2015-06-01 13:28:58.227651"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
580
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "105"], ["created_at", "2015-07-16 15:51:01.613417"], ["updated_at", "2015-07-16 15:51:01.613417"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
531
581
   (0.1ms) RELEASE SAVEPOINT active_record_2
532
582
   (0.1ms) SAVEPOINT active_record_2
533
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-06-01 13:28:58.230148"], ["updated_at", "2015-06-01 13:28:58.230148"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
583
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "106"], ["created_at", "2015-07-16 15:51:01.615427"], ["updated_at", "2015-07-16 15:51:01.615427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
534
584
   (0.1ms) RELEASE SAVEPOINT active_record_2
535
- Processing by PushType::WysiwygMediaController#index as JSON
536
- Parameters: {"filter"=>"file", "page"=>2}
537
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
538
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
539
- Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms)
540
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
541
-  (0.1ms) ROLLBACK
542
-  (0.1ms) BEGIN
543
- ----------------------------------------------------------------------------------
544
- PushType::WysiwygMediaController::GET #index::with pagination: test_0003_anonymous
545
- ----------------------------------------------------------------------------------
546
-  (0.1ms) SAVEPOINT active_record_1
547
-  (0.1ms) RELEASE SAVEPOINT active_record_1
548
-  (0.1ms) SAVEPOINT active_record_1
549
585
   (0.1ms) SAVEPOINT active_record_2
550
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "109"], ["created_at", "2015-06-01 13:28:58.240017"], ["updated_at", "2015-06-01 13:28:58.240017"], ["file_ext", "png"], ["mime_type", "image/png"]]
586
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "107"], ["created_at", "2015-07-16 15:51:01.617401"], ["updated_at", "2015-07-16 15:51:01.617401"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
551
587
   (0.1ms) RELEASE SAVEPOINT active_record_2
552
588
   (0.1ms) SAVEPOINT active_record_2
553
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "110"], ["created_at", "2015-06-01 13:28:58.258378"], ["updated_at", "2015-06-01 13:28:58.258378"], ["file_ext", "png"], ["mime_type", "image/png"]]
589
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "108"], ["created_at", "2015-07-16 15:51:01.619747"], ["updated_at", "2015-07-16 15:51:01.619747"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
554
590
   (0.1ms) RELEASE SAVEPOINT active_record_2
555
591
   (0.1ms) SAVEPOINT active_record_2
556
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-06-01 13:28:58.261560"], ["updated_at", "2015-06-01 13:28:58.261560"], ["file_ext", "png"], ["mime_type", "image/png"]]
592
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "109"], ["created_at", "2015-07-16 15:51:01.622004"], ["updated_at", "2015-07-16 15:51:01.622004"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
557
593
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
+ Processing by PushType::WysiwygMediaController#index as JSON
595
+ Parameters: {"filter"=>"image"}
596
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
597
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
598
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
599
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
600
+  (0.1ms) ROLLBACK
601
+  (0.1ms) BEGIN
602
+ ---------------------------------------------------------------------------------------
603
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0003_anonymous
604
+ ---------------------------------------------------------------------------------------
605
+  (0.1ms) SAVEPOINT active_record_1
606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
607
+  (0.1ms) SAVEPOINT active_record_1
558
608
   (0.1ms) SAVEPOINT active_record_2
559
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-06-01 13:28:58.282071"], ["updated_at", "2015-06-01 13:28:58.282071"], ["file_ext", "png"], ["mime_type", "image/png"]]
609
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "110"], ["created_at", "2015-07-16 15:51:01.630234"], ["updated_at", "2015-07-16 15:51:01.630234"], ["file_ext", "png"], ["mime_type", "image/png"]]
560
610
   (0.1ms) RELEASE SAVEPOINT active_record_2
561
611
   (0.1ms) SAVEPOINT active_record_2
562
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-06-01 13:28:58.285271"], ["updated_at", "2015-06-01 13:28:58.285271"], ["file_ext", "png"], ["mime_type", "image/png"]]
612
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "111"], ["created_at", "2015-07-16 15:51:01.632513"], ["updated_at", "2015-07-16 15:51:01.632513"], ["file_ext", "png"], ["mime_type", "image/png"]]
563
613
   (0.1ms) RELEASE SAVEPOINT active_record_2
564
614
   (0.1ms) SAVEPOINT active_record_2
565
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "114"], ["created_at", "2015-06-01 13:28:58.287563"], ["updated_at", "2015-06-01 13:28:58.287563"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
615
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "112"], ["created_at", "2015-07-16 15:51:01.634524"], ["updated_at", "2015-07-16 15:51:01.634524"], ["file_ext", "png"], ["mime_type", "image/png"]]
566
616
   (0.1ms) RELEASE SAVEPOINT active_record_2
567
617
   (0.1ms) SAVEPOINT active_record_2
568
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-06-01 13:28:58.289835"], ["updated_at", "2015-06-01 13:28:58.289835"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
618
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "113"], ["created_at", "2015-07-16 15:51:01.636607"], ["updated_at", "2015-07-16 15:51:01.636607"], ["file_ext", "png"], ["mime_type", "image/png"]]
569
619
   (0.1ms) RELEASE SAVEPOINT active_record_2
570
620
   (0.1ms) SAVEPOINT active_record_2
571
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-06-01 13:28:58.292442"], ["updated_at", "2015-06-01 13:28:58.292442"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
621
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "114"], ["created_at", "2015-07-16 15:51:01.638559"], ["updated_at", "2015-07-16 15:51:01.638559"], ["file_ext", "png"], ["mime_type", "image/png"]]
572
622
   (0.1ms) RELEASE SAVEPOINT active_record_2
573
623
   (0.1ms) SAVEPOINT active_record_2
574
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-06-01 13:28:58.295195"], ["updated_at", "2015-06-01 13:28:58.295195"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
624
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "115"], ["created_at", "2015-07-16 15:51:01.640870"], ["updated_at", "2015-07-16 15:51:01.640870"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
575
625
   (0.1ms) RELEASE SAVEPOINT active_record_2
576
626
   (0.1ms) SAVEPOINT active_record_2
577
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-06-01 13:28:58.309691"], ["updated_at", "2015-06-01 13:28:58.309691"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
627
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "116"], ["created_at", "2015-07-16 15:51:01.642919"], ["updated_at", "2015-07-16 15:51:01.642919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
578
628
   (0.1ms) RELEASE SAVEPOINT active_record_2
579
629
   (0.1ms) SAVEPOINT active_record_2
580
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-06-01 13:28:58.312712"], ["updated_at", "2015-06-01 13:28:58.312712"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
630
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "117"], ["created_at", "2015-07-16 15:51:01.645300"], ["updated_at", "2015-07-16 15:51:01.645300"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
581
631
   (0.1ms) RELEASE SAVEPOINT active_record_2
582
632
   (0.1ms) SAVEPOINT active_record_2
583
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-06-01 13:28:58.315460"], ["updated_at", "2015-06-01 13:28:58.315460"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
633
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "118"], ["created_at", "2015-07-16 15:51:01.647475"], ["updated_at", "2015-07-16 15:51:01.647475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
584
634
   (0.1ms) RELEASE SAVEPOINT active_record_2
585
635
   (0.1ms) SAVEPOINT active_record_2
586
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-06-01 13:28:58.317528"], ["updated_at", "2015-06-01 13:28:58.317528"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
636
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "119"], ["created_at", "2015-07-16 15:51:01.649497"], ["updated_at", "2015-07-16 15:51:01.649497"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
587
637
   (0.1ms) RELEASE SAVEPOINT active_record_2
588
638
   (0.1ms) SAVEPOINT active_record_2
589
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-06-01 13:28:58.319632"], ["updated_at", "2015-06-01 13:28:58.319632"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
639
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "120"], ["created_at", "2015-07-16 15:51:01.687303"], ["updated_at", "2015-07-16 15:51:01.687303"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
590
640
   (0.1ms) RELEASE SAVEPOINT active_record_2
591
641
   (0.1ms) SAVEPOINT active_record_2
592
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-06-01 13:28:58.322357"], ["updated_at", "2015-06-01 13:28:58.322357"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
642
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "121"], ["created_at", "2015-07-16 15:51:01.689592"], ["updated_at", "2015-07-16 15:51:01.689592"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
593
643
   (0.1ms) RELEASE SAVEPOINT active_record_2
594
644
   (0.1ms) SAVEPOINT active_record_2
595
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-06-01 13:28:58.324474"], ["updated_at", "2015-06-01 13:28:58.324474"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
645
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "122"], ["created_at", "2015-07-16 15:51:01.692126"], ["updated_at", "2015-07-16 15:51:01.692126"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
596
646
   (0.1ms) RELEASE SAVEPOINT active_record_2
597
647
   (0.1ms) SAVEPOINT active_record_2
598
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-06-01 13:28:58.326566"], ["updated_at", "2015-06-01 13:28:58.326566"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
648
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "123"], ["created_at", "2015-07-16 15:51:01.694540"], ["updated_at", "2015-07-16 15:51:01.694540"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
599
649
   (0.1ms) RELEASE SAVEPOINT active_record_2
600
650
   (0.1ms) SAVEPOINT active_record_2
601
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-06-01 13:28:58.328835"], ["updated_at", "2015-06-01 13:28:58.328835"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
651
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "124"], ["created_at", "2015-07-16 15:51:01.697125"], ["updated_at", "2015-07-16 15:51:01.697125"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
602
652
   (0.1ms) RELEASE SAVEPOINT active_record_2
603
- Processing by PushType::WysiwygMediaController#index as JSON
604
- Parameters: {"filter"=>"file", "page"=>2}
605
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
606
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
607
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
608
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
609
-  (0.1ms) ROLLBACK
610
-  (0.1ms) BEGIN
611
- ----------------------------------------------------------------------------------
612
- PushType::WysiwygMediaController::GET #index::with pagination: test_0001_anonymous
613
- ----------------------------------------------------------------------------------
614
-  (0.0ms) SAVEPOINT active_record_1
615
-  (0.0ms) RELEASE SAVEPOINT active_record_1
616
-  (0.1ms) SAVEPOINT active_record_1
617
653
   (0.1ms) SAVEPOINT active_record_2
618
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "127"], ["created_at", "2015-06-01 13:28:58.336950"], ["updated_at", "2015-06-01 13:28:58.336950"], ["file_ext", "png"], ["mime_type", "image/png"]]
654
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "125"], ["created_at", "2015-07-16 15:51:01.699484"], ["updated_at", "2015-07-16 15:51:01.699484"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
619
655
   (0.1ms) RELEASE SAVEPOINT active_record_2
620
656
   (0.1ms) SAVEPOINT active_record_2
621
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-06-01 13:28:58.339040"], ["updated_at", "2015-06-01 13:28:58.339040"], ["file_ext", "png"], ["mime_type", "image/png"]]
657
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "126"], ["created_at", "2015-07-16 15:51:01.701914"], ["updated_at", "2015-07-16 15:51:01.701914"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
622
658
   (0.1ms) RELEASE SAVEPOINT active_record_2
623
659
   (0.1ms) SAVEPOINT active_record_2
624
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-06-01 13:28:58.341066"], ["updated_at", "2015-06-01 13:28:58.341066"], ["file_ext", "png"], ["mime_type", "image/png"]]
660
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "127"], ["created_at", "2015-07-16 15:51:01.704163"], ["updated_at", "2015-07-16 15:51:01.704163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
625
661
   (0.1ms) RELEASE SAVEPOINT active_record_2
662
+ Processing by PushType::WysiwygMediaController#index as JSON
663
+ Parameters: {"filter"=>"image"}
664
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
665
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
666
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.4ms)
667
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
668
+  (0.1ms) ROLLBACK
669
+  (0.1ms) BEGIN
670
+ ---------------------------------------------------------------------------------------
671
+ PushType::WysiwygMediaController::GET #index::filtering for images: test_0004_anonymous
672
+ ---------------------------------------------------------------------------------------
673
+  (0.1ms) SAVEPOINT active_record_1
674
+  (0.0ms) RELEASE SAVEPOINT active_record_1
675
+  (0.0ms) SAVEPOINT active_record_1
626
676
   (0.1ms) SAVEPOINT active_record_2
627
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-06-01 13:28:58.343217"], ["updated_at", "2015-06-01 13:28:58.343217"], ["file_ext", "png"], ["mime_type", "image/png"]]
677
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "128"], ["created_at", "2015-07-16 15:51:01.713447"], ["updated_at", "2015-07-16 15:51:01.713447"], ["file_ext", "png"], ["mime_type", "image/png"]]
628
678
   (0.1ms) RELEASE SAVEPOINT active_record_2
629
679
   (0.1ms) SAVEPOINT active_record_2
630
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-06-01 13:28:58.345252"], ["updated_at", "2015-06-01 13:28:58.345252"], ["file_ext", "png"], ["mime_type", "image/png"]]
680
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "129"], ["created_at", "2015-07-16 15:51:01.715834"], ["updated_at", "2015-07-16 15:51:01.715834"], ["file_ext", "png"], ["mime_type", "image/png"]]
631
681
   (0.1ms) RELEASE SAVEPOINT active_record_2
632
682
   (0.1ms) SAVEPOINT active_record_2
633
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "132"], ["created_at", "2015-06-01 13:28:58.347560"], ["updated_at", "2015-06-01 13:28:58.347560"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
683
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "130"], ["created_at", "2015-07-16 15:51:01.718096"], ["updated_at", "2015-07-16 15:51:01.718096"], ["file_ext", "png"], ["mime_type", "image/png"]]
634
684
   (0.1ms) RELEASE SAVEPOINT active_record_2
635
685
   (0.1ms) SAVEPOINT active_record_2
636
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-06-01 13:28:58.349746"], ["updated_at", "2015-06-01 13:28:58.349746"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
686
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "131"], ["created_at", "2015-07-16 15:51:01.720569"], ["updated_at", "2015-07-16 15:51:01.720569"], ["file_ext", "png"], ["mime_type", "image/png"]]
637
687
   (0.1ms) RELEASE SAVEPOINT active_record_2
638
688
   (0.1ms) SAVEPOINT active_record_2
639
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-06-01 13:28:58.351800"], ["updated_at", "2015-06-01 13:28:58.351800"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
689
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "132"], ["created_at", "2015-07-16 15:51:01.722745"], ["updated_at", "2015-07-16 15:51:01.722745"], ["file_ext", "png"], ["mime_type", "image/png"]]
640
690
   (0.1ms) RELEASE SAVEPOINT active_record_2
641
691
   (0.1ms) SAVEPOINT active_record_2
642
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-06-01 13:28:58.353983"], ["updated_at", "2015-06-01 13:28:58.353983"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
692
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "133"], ["created_at", "2015-07-16 15:51:01.725381"], ["updated_at", "2015-07-16 15:51:01.725381"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
643
693
   (0.1ms) RELEASE SAVEPOINT active_record_2
644
694
   (0.1ms) SAVEPOINT active_record_2
645
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-06-01 13:28:58.356001"], ["updated_at", "2015-06-01 13:28:58.356001"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
695
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "134"], ["created_at", "2015-07-16 15:51:01.727996"], ["updated_at", "2015-07-16 15:51:01.727996"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
646
696
   (0.1ms) RELEASE SAVEPOINT active_record_2
647
697
   (0.1ms) SAVEPOINT active_record_2
648
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-06-01 13:28:58.358269"], ["updated_at", "2015-06-01 13:28:58.358269"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
698
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "135"], ["created_at", "2015-07-16 15:51:01.730439"], ["updated_at", "2015-07-16 15:51:01.730439"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
649
699
   (0.1ms) RELEASE SAVEPOINT active_record_2
650
700
   (0.1ms) SAVEPOINT active_record_2
651
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-06-01 13:28:58.360463"], ["updated_at", "2015-06-01 13:28:58.360463"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
701
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "136"], ["created_at", "2015-07-16 15:51:01.732864"], ["updated_at", "2015-07-16 15:51:01.732864"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
652
702
   (0.1ms) RELEASE SAVEPOINT active_record_2
653
703
   (0.1ms) SAVEPOINT active_record_2
654
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-06-01 13:28:58.362843"], ["updated_at", "2015-06-01 13:28:58.362843"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
704
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "137"], ["created_at", "2015-07-16 15:51:01.735087"], ["updated_at", "2015-07-16 15:51:01.735087"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
655
705
   (0.1ms) RELEASE SAVEPOINT active_record_2
656
706
   (0.1ms) SAVEPOINT active_record_2
657
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-06-01 13:28:58.365341"], ["updated_at", "2015-06-01 13:28:58.365341"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
707
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "138"], ["created_at", "2015-07-16 15:51:01.737264"], ["updated_at", "2015-07-16 15:51:01.737264"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
658
708
   (0.1ms) RELEASE SAVEPOINT active_record_2
659
709
   (0.1ms) SAVEPOINT active_record_2
660
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-06-01 13:28:58.367491"], ["updated_at", "2015-06-01 13:28:58.367491"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
710
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "139"], ["created_at", "2015-07-16 15:51:01.739420"], ["updated_at", "2015-07-16 15:51:01.739420"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
661
711
   (0.1ms) RELEASE SAVEPOINT active_record_2
662
712
   (0.1ms) SAVEPOINT active_record_2
663
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-06-01 13:28:58.369920"], ["updated_at", "2015-06-01 13:28:58.369920"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
713
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "140"], ["created_at", "2015-07-16 15:51:01.741802"], ["updated_at", "2015-07-16 15:51:01.741802"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
664
714
   (0.1ms) RELEASE SAVEPOINT active_record_2
665
715
   (0.1ms) SAVEPOINT active_record_2
666
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-06-01 13:28:58.372108"], ["updated_at", "2015-06-01 13:28:58.372108"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
716
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "141"], ["created_at", "2015-07-16 15:51:01.744214"], ["updated_at", "2015-07-16 15:51:01.744214"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
667
717
   (0.1ms) RELEASE SAVEPOINT active_record_2
668
718
   (0.1ms) SAVEPOINT active_record_2
669
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-06-01 13:28:58.374476"], ["updated_at", "2015-06-01 13:28:58.374476"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
719
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "142"], ["created_at", "2015-07-16 15:51:01.746683"], ["updated_at", "2015-07-16 15:51:01.746683"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
670
720
   (0.1ms) RELEASE SAVEPOINT active_record_2
671
- Processing by PushType::WysiwygMediaController#index as JSON
672
- Parameters: {"filter"=>"file", "page"=>2}
673
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 12
674
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
675
- Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms)
676
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
677
-  (0.1ms) ROLLBACK
678
-  (0.1ms) BEGIN
679
- ----------------------------------------------------------------------------------------
680
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0002_anonymous
681
- ----------------------------------------------------------------------------------------
682
-  (0.1ms) SAVEPOINT active_record_1
683
-  (0.0ms) RELEASE SAVEPOINT active_record_1
684
-  (0.0ms) SAVEPOINT active_record_1
685
- Processing by PushType::WysiwygMediaController#create as JSON
686
- Parameters: {"asset"=>{}}
687
-  (0.1ms) SAVEPOINT active_record_2
688
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
689
- Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.2ms)
690
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
691
-  (0.1ms) ROLLBACK
692
-  (0.1ms) BEGIN
693
- ----------------------------------------------------------------------------------------
694
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0001_anonymous
695
- ----------------------------------------------------------------------------------------
696
-  (0.1ms) SAVEPOINT active_record_1
697
-  (0.0ms) RELEASE SAVEPOINT active_record_1
698
-  (0.1ms) SAVEPOINT active_record_1
699
- Processing by PushType::WysiwygMediaController#create as JSON
700
- Parameters: {"asset"=>{}}
701
-  (0.1ms) SAVEPOINT active_record_2
702
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
703
- Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms)
704
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
705
-  (0.1ms) ROLLBACK
706
-  (0.1ms) BEGIN
707
- ----------------------------------------------------------------------------------------
708
- PushType::WysiwygMediaController::POST #create::with in-valid asset: test_0003_anonymous
709
- ----------------------------------------------------------------------------------------
710
-  (0.1ms) SAVEPOINT active_record_1
711
-  (0.1ms) RELEASE SAVEPOINT active_record_1
712
-  (0.0ms) SAVEPOINT active_record_1
713
- Processing by PushType::WysiwygMediaController#create as JSON
714
- Parameters: {"asset"=>{}}
715
-  (0.1ms) SAVEPOINT active_record_2
716
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2
717
- Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.2ms)
718
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
719
-  (0.1ms) ROLLBACK
720
-  (0.1ms) BEGIN
721
- -----------------------------------------------------------------------
722
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
723
- -----------------------------------------------------------------------
724
-  (0.1ms) SAVEPOINT active_record_1
725
-  (0.1ms) RELEASE SAVEPOINT active_record_1
726
-  (0.0ms) SAVEPOINT active_record_1
727
721
   (0.1ms) SAVEPOINT active_record_2
728
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "145"], ["created_at", "2015-06-01 13:28:58.406093"], ["updated_at", "2015-06-01 13:28:58.406093"], ["file_ext", "png"], ["mime_type", "image/png"]]
722
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "143"], ["created_at", "2015-07-16 15:51:01.748954"], ["updated_at", "2015-07-16 15:51:01.748954"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
729
723
   (0.1ms) RELEASE SAVEPOINT active_record_2
730
724
   (0.1ms) SAVEPOINT active_record_2
731
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-06-01 13:28:58.408434"], ["updated_at", "2015-06-01 13:28:58.408434"], ["file_ext", "png"], ["mime_type", "image/png"]]
725
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "144"], ["created_at", "2015-07-16 15:51:01.751103"], ["updated_at", "2015-07-16 15:51:01.751103"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
732
726
   (0.1ms) RELEASE SAVEPOINT active_record_2
733
727
   (0.1ms) SAVEPOINT active_record_2
734
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-06-01 13:28:58.410500"], ["updated_at", "2015-06-01 13:28:58.410500"], ["file_ext", "png"], ["mime_type", "image/png"]]
735
-  (0.1ms) RELEASE SAVEPOINT active_record_2
736
-  (0.1ms) SAVEPOINT active_record_2
737
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-06-01 13:28:58.412599"], ["updated_at", "2015-06-01 13:28:58.412599"], ["file_ext", "png"], ["mime_type", "image/png"]]
738
-  (0.1ms) RELEASE SAVEPOINT active_record_2
739
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
740
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
741
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
742
-  (0.1ms) ROLLBACK
743
-  (0.1ms) BEGIN
744
- -----------------------------------------------------------------------
745
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
746
- -----------------------------------------------------------------------
747
-  (0.1ms) SAVEPOINT active_record_1
748
-  (0.1ms) RELEASE SAVEPOINT active_record_1
749
-  (0.1ms) SAVEPOINT active_record_1
750
-  (0.1ms) SAVEPOINT active_record_2
751
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "149"], ["created_at", "2015-06-01 13:28:58.418740"], ["updated_at", "2015-06-01 13:28:58.418740"], ["file_ext", "png"], ["mime_type", "image/png"]]
728
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "145"], ["created_at", "2015-07-16 15:51:01.753332"], ["updated_at", "2015-07-16 15:51:01.753332"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
752
729
   (0.1ms) RELEASE SAVEPOINT active_record_2
730
+ Processing by PushType::WysiwygMediaController#index as JSON
731
+ Parameters: {"filter"=>"image"}
732
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
733
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type LIKE 'image/%')
734
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)
735
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
736
+  (0.1ms) ROLLBACK
737
+  (0.1ms) BEGIN
738
+ --------------------------------------------------------------------------------------
739
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
740
+ --------------------------------------------------------------------------------------
741
+  (0.1ms) SAVEPOINT active_record_1
742
+  (0.1ms) RELEASE SAVEPOINT active_record_1
743
+  (0.0ms) SAVEPOINT active_record_1
753
744
   (0.1ms) SAVEPOINT active_record_2
754
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-06-01 13:28:58.421035"], ["updated_at", "2015-06-01 13:28:58.421035"], ["file_ext", "png"], ["mime_type", "image/png"]]
745
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "146"], ["created_at", "2015-07-16 15:51:01.762949"], ["updated_at", "2015-07-16 15:51:01.762949"], ["file_ext", "png"], ["mime_type", "image/png"]]
755
746
   (0.1ms) RELEASE SAVEPOINT active_record_2
756
747
   (0.1ms) SAVEPOINT active_record_2
757
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "151"], ["created_at", "2015-06-01 13:28:58.423155"], ["updated_at", "2015-06-01 13:28:58.423155"], ["file_ext", "png"], ["mime_type", "image/png"]]
748
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "147"], ["created_at", "2015-07-16 15:51:01.765168"], ["updated_at", "2015-07-16 15:51:01.765168"], ["file_ext", "png"], ["mime_type", "image/png"]]
758
749
   (0.1ms) RELEASE SAVEPOINT active_record_2
759
750
   (0.1ms) SAVEPOINT active_record_2
760
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "152"], ["created_at", "2015-06-01 13:28:58.425468"], ["updated_at", "2015-06-01 13:28:58.425468"], ["file_ext", "png"], ["mime_type", "image/png"]]
751
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "148"], ["created_at", "2015-07-16 15:51:01.767398"], ["updated_at", "2015-07-16 15:51:01.767398"], ["file_ext", "png"], ["mime_type", "image/png"]]
761
752
   (0.1ms) RELEASE SAVEPOINT active_record_2
762
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
763
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
764
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
765
-  (0.1ms) ROLLBACK
766
-  (0.1ms) BEGIN
767
- -----------------------------------------------------------------------
768
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
769
- -----------------------------------------------------------------------
770
-  (0.1ms) SAVEPOINT active_record_1
771
-  (0.1ms) RELEASE SAVEPOINT active_record_1
772
-  (0.1ms) SAVEPOINT active_record_1
773
753
   (0.1ms) SAVEPOINT active_record_2
774
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "153"], ["created_at", "2015-06-01 13:28:58.431402"], ["updated_at", "2015-06-01 13:28:58.431402"], ["file_ext", "png"], ["mime_type", "image/png"]]
754
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "149"], ["created_at", "2015-07-16 15:51:01.769487"], ["updated_at", "2015-07-16 15:51:01.769487"], ["file_ext", "png"], ["mime_type", "image/png"]]
775
755
   (0.1ms) RELEASE SAVEPOINT active_record_2
776
756
   (0.1ms) SAVEPOINT active_record_2
777
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "154"], ["created_at", "2015-06-01 13:28:58.433883"], ["updated_at", "2015-06-01 13:28:58.433883"], ["file_ext", "png"], ["mime_type", "image/png"]]
757
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "150"], ["created_at", "2015-07-16 15:51:01.771674"], ["updated_at", "2015-07-16 15:51:01.771674"], ["file_ext", "png"], ["mime_type", "image/png"]]
778
758
   (0.1ms) RELEASE SAVEPOINT active_record_2
779
759
   (0.1ms) SAVEPOINT active_record_2
780
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "155"], ["created_at", "2015-06-01 13:28:58.435982"], ["updated_at", "2015-06-01 13:28:58.435982"], ["file_ext", "png"], ["mime_type", "image/png"]]
760
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "151"], ["created_at", "2015-07-16 15:51:01.773739"], ["updated_at", "2015-07-16 15:51:01.773739"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
781
761
   (0.1ms) RELEASE SAVEPOINT active_record_2
782
762
   (0.1ms) SAVEPOINT active_record_2
783
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "156"], ["created_at", "2015-06-01 13:28:58.438002"], ["updated_at", "2015-06-01 13:28:58.438002"], ["file_ext", "png"], ["mime_type", "image/png"]]
763
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "152"], ["created_at", "2015-07-16 15:51:01.775854"], ["updated_at", "2015-07-16 15:51:01.775854"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
784
764
   (0.1ms) RELEASE SAVEPOINT active_record_2
785
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
786
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
787
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
788
-  (0.1ms) ROLLBACK
789
-  (0.1ms) BEGIN
790
- -----------------------------------------------------------------------
791
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
792
- -----------------------------------------------------------------------
793
-  (0.1ms) SAVEPOINT active_record_1
794
-  (0.0ms) RELEASE SAVEPOINT active_record_1
795
-  (0.0ms) SAVEPOINT active_record_1
796
765
   (0.1ms) SAVEPOINT active_record_2
797
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "157"], ["created_at", "2015-06-01 13:28:58.443635"], ["updated_at", "2015-06-01 13:28:58.443635"], ["file_ext", "png"], ["mime_type", "image/png"]]
766
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "153"], ["created_at", "2015-07-16 15:51:01.778223"], ["updated_at", "2015-07-16 15:51:01.778223"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
798
767
   (0.1ms) RELEASE SAVEPOINT active_record_2
799
768
   (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", "158"], ["created_at", "2015-06-01 13:28:58.445741"], ["updated_at", "2015-06-01 13:28:58.445741"], ["file_ext", "png"], ["mime_type", "image/png"]]
769
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "154"], ["created_at", "2015-07-16 15:51:01.780456"], ["updated_at", "2015-07-16 15:51:01.780456"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
801
770
   (0.1ms) RELEASE SAVEPOINT active_record_2
802
771
   (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", "159"], ["created_at", "2015-06-01 13:28:58.447939"], ["updated_at", "2015-06-01 13:28:58.447939"], ["file_ext", "png"], ["mime_type", "image/png"]]
772
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "155"], ["created_at", "2015-07-16 15:51:01.782646"], ["updated_at", "2015-07-16 15:51:01.782646"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
804
773
   (0.1ms) RELEASE SAVEPOINT active_record_2
805
774
   (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", "160"], ["created_at", "2015-06-01 13:28:58.450085"], ["updated_at", "2015-06-01 13:28:58.450085"], ["file_ext", "png"], ["mime_type", "image/png"]]
775
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "156"], ["created_at", "2015-07-16 15:51:01.784989"], ["updated_at", "2015-07-16 15:51:01.784989"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
807
776
   (0.1ms) RELEASE SAVEPOINT active_record_2
808
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
809
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
810
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
811
-  (0.1ms) ROLLBACK
812
-  (0.1ms) BEGIN
813
- -----------------------------------------------------------------------
814
- PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
815
- -----------------------------------------------------------------------
816
-  (0.1ms) SAVEPOINT active_record_1
817
-  (0.1ms) RELEASE SAVEPOINT active_record_1
818
-  (0.1ms) SAVEPOINT active_record_1
819
777
   (0.1ms) SAVEPOINT active_record_2
820
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "161"], ["created_at", "2015-06-01 13:28:58.455801"], ["updated_at", "2015-06-01 13:28:58.455801"], ["file_ext", "png"], ["mime_type", "image/png"]]
778
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "157"], ["created_at", "2015-07-16 15:51:01.787058"], ["updated_at", "2015-07-16 15:51:01.787058"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
821
779
   (0.1ms) RELEASE SAVEPOINT active_record_2
822
780
   (0.1ms) SAVEPOINT active_record_2
823
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "162"], ["created_at", "2015-06-01 13:28:58.457832"], ["updated_at", "2015-06-01 13:28:58.457832"], ["file_ext", "png"], ["mime_type", "image/png"]]
781
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "158"], ["created_at", "2015-07-16 15:51:01.789427"], ["updated_at", "2015-07-16 15:51:01.789427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
824
782
   (0.1ms) RELEASE SAVEPOINT active_record_2
825
783
   (0.1ms) SAVEPOINT active_record_2
826
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "163"], ["created_at", "2015-06-01 13:28:58.459796"], ["updated_at", "2015-06-01 13:28:58.459796"], ["file_ext", "png"], ["mime_type", "image/png"]]
784
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "159"], ["created_at", "2015-07-16 15:51:01.791661"], ["updated_at", "2015-07-16 15:51:01.791661"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
827
785
   (0.1ms) RELEASE SAVEPOINT active_record_2
828
786
   (0.1ms) SAVEPOINT active_record_2
829
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-06-01 13:28:58.461918"], ["updated_at", "2015-06-01 13:28:58.461918"], ["file_ext", "png"], ["mime_type", "image/png"]]
787
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "160"], ["created_at", "2015-07-16 15:51:01.793853"], ["updated_at", "2015-07-16 15:51:01.793853"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
830
788
   (0.1ms) RELEASE SAVEPOINT active_record_2
831
- PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
832
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
833
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
834
-  (0.1ms) ROLLBACK
835
-  (0.1ms) BEGIN
836
- --------------------------------------------------------------------------------
837
- PushType::WysiwygMediaController::POST #create::asset count: test_0001_anonymous
838
- --------------------------------------------------------------------------------
839
-  (0.1ms) SAVEPOINT active_record_1
840
-  (0.1ms) RELEASE SAVEPOINT active_record_1
841
-  (0.0ms) SAVEPOINT active_record_1
842
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
843
- Processing by PushType::WysiwygMediaController#create as JSON
844
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9459842d40 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-oq9yua>>}}
789
+  (0.1ms) SAVEPOINT active_record_2
790
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "161"], ["created_at", "2015-07-16 15:51:01.796384"], ["updated_at", "2015-07-16 15:51:01.796384"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
791
+  (0.1ms) RELEASE SAVEPOINT active_record_2
845
792
   (0.1ms) SAVEPOINT active_record_2
846
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-06-01 13:28:58.472030"], ["updated_at", "2015-06-01 13:28:58.472030"], ["file_ext", "png"], ["mime_type", "image/png"]]
793
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "162"], ["created_at", "2015-07-16 15:51:01.798580"], ["updated_at", "2015-07-16 15:51:01.798580"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
847
794
   (0.1ms) RELEASE SAVEPOINT active_record_2
848
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
849
-  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
795
+  (0.1ms) SAVEPOINT active_record_2
796
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "163"], ["created_at", "2015-07-16 15:51:01.800732"], ["updated_at", "2015-07-16 15:51:01.800732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
797
+  (0.1ms) RELEASE SAVEPOINT active_record_2
798
+ Processing by PushType::WysiwygMediaController#index as JSON
799
+ Parameters: {"filter"=>"file"}
800
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
801
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
802
+ Completed 200 OK in 12ms (Views: 1.0ms | ActiveRecord: 0.6ms)
850
803
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
851
804
   (0.1ms) ROLLBACK
852
805
   (0.1ms) BEGIN
853
- -----------------------------------------------------------------------
854
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
855
- -----------------------------------------------------------------------
856
-  (0.1ms) SAVEPOINT active_record_1
806
+ --------------------------------------------------------------------------------------
807
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
808
+ --------------------------------------------------------------------------------------
809
+  (0.0ms) SAVEPOINT active_record_1
857
810
   (0.0ms) RELEASE SAVEPOINT active_record_1
858
811
   (0.0ms) SAVEPOINT active_record_1
859
812
   (0.1ms) SAVEPOINT active_record_2
860
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-06-01 13:28:58.479256"], ["updated_at", "2015-06-01 13:28:58.479256"], ["file_ext", "png"], ["mime_type", "image/png"]]
813
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "164"], ["created_at", "2015-07-16 15:51:01.817637"], ["updated_at", "2015-07-16 15:51:01.817637"], ["file_ext", "png"], ["mime_type", "image/png"]]
861
814
   (0.1ms) RELEASE SAVEPOINT active_record_2
862
815
   (0.1ms) SAVEPOINT active_record_2
863
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-06-01 13:28:58.482307"], ["updated_at", "2015-06-01 13:28:58.482307"], ["file_ext", "png"], ["mime_type", "image/png"]]
816
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "165"], ["created_at", "2015-07-16 15:51:01.819874"], ["updated_at", "2015-07-16 15:51:01.819874"], ["file_ext", "png"], ["mime_type", "image/png"]]
864
817
   (0.1ms) RELEASE SAVEPOINT active_record_2
865
818
   (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", "168"], ["created_at", "2015-06-01 13:28:58.484932"], ["updated_at", "2015-06-01 13:28:58.484932"], ["file_ext", "png"], ["mime_type", "image/png"]]
819
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "166"], ["created_at", "2015-07-16 15:51:01.822258"], ["updated_at", "2015-07-16 15:51:01.822258"], ["file_ext", "png"], ["mime_type", "image/png"]]
867
820
   (0.1ms) RELEASE SAVEPOINT active_record_2
868
821
   (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", "169"], ["created_at", "2015-06-01 13:28:58.487034"], ["updated_at", "2015-06-01 13:28:58.487034"], ["file_ext", "png"], ["mime_type", "image/png"]]
870
-  (0.1ms) RELEASE SAVEPOINT active_record_2
871
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
872
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
873
-  (0.1ms) ROLLBACK
874
-  (0.1ms) BEGIN
875
- -----------------------------------------------------------------------
876
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
877
- -----------------------------------------------------------------------
878
-  (0.0ms) SAVEPOINT active_record_1
879
-  (0.0ms) RELEASE SAVEPOINT active_record_1
880
-  (0.0ms) SAVEPOINT active_record_1
881
-  (0.1ms) SAVEPOINT active_record_2
882
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "170"], ["created_at", "2015-06-01 13:28:58.491536"], ["updated_at", "2015-06-01 13:28:58.491536"], ["file_ext", "png"], ["mime_type", "image/png"]]
822
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "167"], ["created_at", "2015-07-16 15:51:01.824471"], ["updated_at", "2015-07-16 15:51:01.824471"], ["file_ext", "png"], ["mime_type", "image/png"]]
883
823
   (0.1ms) RELEASE SAVEPOINT active_record_2
884
824
   (0.1ms) SAVEPOINT active_record_2
885
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "171"], ["created_at", "2015-06-01 13:28:58.493753"], ["updated_at", "2015-06-01 13:28:58.493753"], ["file_ext", "png"], ["mime_type", "image/png"]]
825
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "168"], ["created_at", "2015-07-16 15:51:01.826761"], ["updated_at", "2015-07-16 15:51:01.826761"], ["file_ext", "png"], ["mime_type", "image/png"]]
886
826
   (0.1ms) RELEASE SAVEPOINT active_record_2
887
827
   (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", "172"], ["created_at", "2015-06-01 13:28:58.495820"], ["updated_at", "2015-06-01 13:28:58.495820"], ["file_ext", "png"], ["mime_type", "image/png"]]
828
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "169"], ["created_at", "2015-07-16 15:51:01.829078"], ["updated_at", "2015-07-16 15:51:01.829078"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
889
829
   (0.1ms) RELEASE SAVEPOINT active_record_2
890
830
   (0.1ms) SAVEPOINT active_record_2
891
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "173"], ["created_at", "2015-06-01 13:28:58.498007"], ["updated_at", "2015-06-01 13:28:58.498007"], ["file_ext", "png"], ["mime_type", "image/png"]]
831
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "170"], ["created_at", "2015-07-16 15:51:01.831413"], ["updated_at", "2015-07-16 15:51:01.831413"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
892
832
   (0.1ms) RELEASE SAVEPOINT active_record_2
893
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
894
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
895
-  (0.1ms) ROLLBACK
896
-  (0.1ms) BEGIN
897
- -----------------------------------------------------------------------
898
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
899
- -----------------------------------------------------------------------
900
-  (0.0ms) SAVEPOINT active_record_1
901
-  (0.0ms) RELEASE SAVEPOINT active_record_1
902
-  (0.1ms) SAVEPOINT active_record_1
833
+  (0.1ms) SAVEPOINT active_record_2
834
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "171"], ["created_at", "2015-07-16 15:51:01.833749"], ["updated_at", "2015-07-16 15:51:01.833749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
835
+  (0.1ms) RELEASE SAVEPOINT active_record_2
903
836
   (0.1ms) SAVEPOINT active_record_2
904
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "174"], ["created_at", "2015-06-01 13:28:58.502718"], ["updated_at", "2015-06-01 13:28:58.502718"], ["file_ext", "png"], ["mime_type", "image/png"]]
837
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "172"], ["created_at", "2015-07-16 15:51:01.835962"], ["updated_at", "2015-07-16 15:51:01.835962"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
905
838
   (0.1ms) RELEASE SAVEPOINT active_record_2
906
839
   (0.1ms) SAVEPOINT active_record_2
907
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "175"], ["created_at", "2015-06-01 13:28:58.505201"], ["updated_at", "2015-06-01 13:28:58.505201"], ["file_ext", "png"], ["mime_type", "image/png"]]
840
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "173"], ["created_at", "2015-07-16 15:51:01.838043"], ["updated_at", "2015-07-16 15:51:01.838043"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
908
841
   (0.1ms) RELEASE SAVEPOINT active_record_2
909
842
   (0.1ms) SAVEPOINT active_record_2
910
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "176"], ["created_at", "2015-06-01 13:28:58.507282"], ["updated_at", "2015-06-01 13:28:58.507282"], ["file_ext", "png"], ["mime_type", "image/png"]]
843
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "174"], ["created_at", "2015-07-16 15:51:01.840149"], ["updated_at", "2015-07-16 15:51:01.840149"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
911
844
   (0.1ms) RELEASE SAVEPOINT active_record_2
912
845
   (0.1ms) SAVEPOINT active_record_2
913
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "177"], ["created_at", "2015-06-01 13:28:58.509308"], ["updated_at", "2015-06-01 13:28:58.509308"], ["file_ext", "png"], ["mime_type", "image/png"]]
846
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "175"], ["created_at", "2015-07-16 15:51:01.842586"], ["updated_at", "2015-07-16 15:51:01.842586"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
914
847
   (0.1ms) RELEASE SAVEPOINT active_record_2
915
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
916
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
917
-  (0.1ms) ROLLBACK
918
-  (0.1ms) BEGIN
919
- -----------------------------------------------------------------------
920
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
921
- -----------------------------------------------------------------------
922
-  (0.1ms) SAVEPOINT active_record_1
923
-  (0.0ms) RELEASE SAVEPOINT active_record_1
924
-  (0.0ms) SAVEPOINT active_record_1
848
+  (0.1ms) SAVEPOINT active_record_2
849
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "176"], ["created_at", "2015-07-16 15:51:01.845038"], ["updated_at", "2015-07-16 15:51:01.845038"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
850
+  (0.1ms) RELEASE SAVEPOINT active_record_2
925
851
   (0.1ms) SAVEPOINT active_record_2
926
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "178"], ["created_at", "2015-06-01 13:28:58.513834"], ["updated_at", "2015-06-01 13:28:58.513834"], ["file_ext", "png"], ["mime_type", "image/png"]]
852
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "177"], ["created_at", "2015-07-16 15:51:01.847436"], ["updated_at", "2015-07-16 15:51:01.847436"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
927
853
   (0.1ms) RELEASE SAVEPOINT active_record_2
928
854
   (0.1ms) SAVEPOINT active_record_2
929
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "179"], ["created_at", "2015-06-01 13:28:58.516419"], ["updated_at", "2015-06-01 13:28:58.516419"], ["file_ext", "png"], ["mime_type", "image/png"]]
855
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "178"], ["created_at", "2015-07-16 15:51:01.849584"], ["updated_at", "2015-07-16 15:51:01.849584"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
930
856
   (0.1ms) RELEASE SAVEPOINT active_record_2
931
857
   (0.1ms) SAVEPOINT active_record_2
932
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "180"], ["created_at", "2015-06-01 13:28:58.518734"], ["updated_at", "2015-06-01 13:28:58.518734"], ["file_ext", "png"], ["mime_type", "image/png"]]
858
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "179"], ["created_at", "2015-07-16 15:51:01.851860"], ["updated_at", "2015-07-16 15:51:01.851860"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
933
859
   (0.1ms) RELEASE SAVEPOINT active_record_2
934
860
   (0.1ms) SAVEPOINT active_record_2
935
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "181"], ["created_at", "2015-06-01 13:28:58.521044"], ["updated_at", "2015-06-01 13:28:58.521044"], ["file_ext", "png"], ["mime_type", "image/png"]]
861
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "180"], ["created_at", "2015-07-16 15:51:01.854095"], ["updated_at", "2015-07-16 15:51:01.854095"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
936
862
   (0.1ms) RELEASE SAVEPOINT active_record_2
937
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
863
+  (0.1ms) SAVEPOINT active_record_2
864
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "181"], ["created_at", "2015-07-16 15:51:01.856534"], ["updated_at", "2015-07-16 15:51:01.856534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
865
+  (0.1ms) RELEASE SAVEPOINT active_record_2
866
+ Processing by PushType::WysiwygMediaController#index as JSON
867
+ Parameters: {"filter"=>"file"}
868
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
869
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
870
+ Completed 200 OK in 12ms (Views: 1.1ms | ActiveRecord: 0.5ms)
938
871
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
939
872
   (0.1ms) ROLLBACK
940
873
   (0.1ms) BEGIN
941
- -----------------------------------------------------------------------
942
- PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
943
- -----------------------------------------------------------------------
874
+ --------------------------------------------------------------------------------------
875
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
876
+ --------------------------------------------------------------------------------------
944
877
   (0.1ms) SAVEPOINT active_record_1
945
-  (0.1ms) RELEASE SAVEPOINT active_record_1
878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
946
879
   (0.1ms) SAVEPOINT active_record_1
947
880
   (0.1ms) SAVEPOINT active_record_2
948
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-06-01 13:28:58.525653"], ["updated_at", "2015-06-01 13:28:58.525653"], ["file_ext", "png"], ["mime_type", "image/png"]]
881
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "182"], ["created_at", "2015-07-16 15:51:01.873978"], ["updated_at", "2015-07-16 15:51:01.873978"], ["file_ext", "png"], ["mime_type", "image/png"]]
949
882
   (0.1ms) RELEASE SAVEPOINT active_record_2
950
883
   (0.1ms) SAVEPOINT active_record_2
951
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-06-01 13:28:58.528112"], ["updated_at", "2015-06-01 13:28:58.528112"], ["file_ext", "png"], ["mime_type", "image/png"]]
884
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "183"], ["created_at", "2015-07-16 15:51:01.876446"], ["updated_at", "2015-07-16 15:51:01.876446"], ["file_ext", "png"], ["mime_type", "image/png"]]
952
885
   (0.1ms) RELEASE SAVEPOINT active_record_2
953
886
   (0.1ms) SAVEPOINT active_record_2
954
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "184"], ["created_at", "2015-06-01 13:28:58.530454"], ["updated_at", "2015-06-01 13:28:58.530454"], ["file_ext", "png"], ["mime_type", "image/png"]]
887
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "184"], ["created_at", "2015-07-16 15:51:01.878795"], ["updated_at", "2015-07-16 15:51:01.878795"], ["file_ext", "png"], ["mime_type", "image/png"]]
955
888
   (0.1ms) RELEASE SAVEPOINT active_record_2
956
889
   (0.1ms) SAVEPOINT active_record_2
957
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-06-01 13:28:58.533027"], ["updated_at", "2015-06-01 13:28:58.533027"], ["file_ext", "png"], ["mime_type", "image/png"]]
890
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "185"], ["created_at", "2015-07-16 15:51:01.880943"], ["updated_at", "2015-07-16 15:51:01.880943"], ["file_ext", "png"], ["mime_type", "image/png"]]
958
891
   (0.1ms) RELEASE SAVEPOINT active_record_2
959
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
960
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
961
-  (0.1ms) ROLLBACK
962
-  (0.1ms) BEGIN
963
- -------------------------------------------------------------------------------------
964
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
965
- -------------------------------------------------------------------------------------
966
-  (0.1ms) SAVEPOINT active_record_1
967
-  (0.1ms) RELEASE SAVEPOINT active_record_1
968
-  (0.1ms) SAVEPOINT active_record_1
969
- Processing by PushType::WysiwygMediaController#create as JSON
970
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9451fa2160 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-xbh0xp>>}}
971
-  (0.1ms) SAVEPOINT active_record_2
972
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-06-01 13:28:58.540771"], ["updated_at", "2015-06-01 13:28:58.540771"], ["file_ext", "png"], ["mime_type", "image/png"]]
973
-  (0.1ms) RELEASE SAVEPOINT active_record_2
974
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
975
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
976
-  (0.1ms) ROLLBACK
977
-  (0.1ms) BEGIN
978
- -------------------------------------------------------------------------------------
979
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
980
- -------------------------------------------------------------------------------------
981
-  (0.0ms) SAVEPOINT active_record_1
982
-  (0.0ms) RELEASE SAVEPOINT active_record_1
983
-  (0.0ms) SAVEPOINT active_record_1
984
- Processing by PushType::WysiwygMediaController#create as JSON
985
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f94515b5ee0 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-1kiusaf>>}}
986
892
   (0.1ms) SAVEPOINT active_record_2
987
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "187"], ["created_at", "2015-06-01 13:28:58.546631"], ["updated_at", "2015-06-01 13:28:58.546631"], ["file_ext", "png"], ["mime_type", "image/png"]]
893
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "186"], ["created_at", "2015-07-16 15:51:01.883849"], ["updated_at", "2015-07-16 15:51:01.883849"], ["file_ext", "png"], ["mime_type", "image/png"]]
988
894
   (0.1ms) RELEASE SAVEPOINT active_record_2
989
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
990
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
991
-  (0.1ms) ROLLBACK
992
-  (0.1ms) BEGIN
993
- -------------------------------------------------------------------------------------
994
- PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
995
- -------------------------------------------------------------------------------------
996
-  (0.1ms) SAVEPOINT active_record_1
997
-  (0.0ms) RELEASE SAVEPOINT active_record_1
998
-  (0.0ms) SAVEPOINT active_record_1
999
- Processing by PushType::WysiwygMediaController#create as JSON
1000
- Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007f9451f188e8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150601-16002-k26hy3>>}}
1001
895
   (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", "188"], ["created_at", "2015-06-01 13:28:58.552875"], ["updated_at", "2015-06-01 13:28:58.552875"], ["file_ext", "png"], ["mime_type", "image/png"]]
896
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "187"], ["created_at", "2015-07-16 15:51:01.886427"], ["updated_at", "2015-07-16 15:51:01.886427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1003
897
   (0.1ms) RELEASE SAVEPOINT active_record_2
1004
- Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1005
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1006
-  (0.1ms) ROLLBACK
1007
-  (0.1ms) BEGIN
1008
- ----------------------------------------------------------------------
1009
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
1010
- ----------------------------------------------------------------------
1011
-  (0.1ms) SAVEPOINT active_record_1
1012
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1013
-  (0.0ms) SAVEPOINT active_record_1
1014
898
   (0.1ms) SAVEPOINT active_record_2
1015
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "189"], ["created_at", "2015-06-01 13:28:58.558129"], ["updated_at", "2015-06-01 13:28:58.558129"], ["file_ext", "png"], ["mime_type", "image/png"]]
899
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "188"], ["created_at", "2015-07-16 15:51:01.888718"], ["updated_at", "2015-07-16 15:51:01.888718"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1016
900
   (0.1ms) RELEASE SAVEPOINT active_record_2
1017
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1018
-  (0.1ms) ROLLBACK
1019
-  (0.1ms) BEGIN
1020
- ----------------------------------------------------------------------
1021
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
1022
- ----------------------------------------------------------------------
1023
-  (0.1ms) SAVEPOINT active_record_1
1024
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1025
-  (0.0ms) SAVEPOINT active_record_1
1026
901
   (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", "190"], ["created_at", "2015-06-01 13:28:58.562355"], ["updated_at", "2015-06-01 13:28:58.562355"], ["file_ext", "png"], ["mime_type", "image/png"]]
902
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "189"], ["created_at", "2015-07-16 15:51:01.890922"], ["updated_at", "2015-07-16 15:51:01.890922"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1028
903
   (0.1ms) RELEASE SAVEPOINT active_record_2
1029
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1030
-  (0.1ms) ROLLBACK
1031
-  (0.1ms) BEGIN
1032
- ----------------------------------------------------------------------
1033
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
1034
- ----------------------------------------------------------------------
1035
-  (0.0ms) SAVEPOINT active_record_1
1036
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1037
-  (0.0ms) SAVEPOINT active_record_1
1038
904
   (0.1ms) SAVEPOINT active_record_2
1039
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "191"], ["created_at", "2015-06-01 13:28:58.566039"], ["updated_at", "2015-06-01 13:28:58.566039"], ["file_ext", "png"], ["mime_type", "image/png"]]
905
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "190"], ["created_at", "2015-07-16 15:51:01.893288"], ["updated_at", "2015-07-16 15:51:01.893288"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1040
906
   (0.1ms) RELEASE SAVEPOINT active_record_2
1041
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1042
-  (0.1ms) ROLLBACK
1043
-  (0.0ms) BEGIN
1044
- ----------------------------------------------------------------------
1045
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
1046
- ----------------------------------------------------------------------
1047
-  (0.1ms) SAVEPOINT active_record_1
1048
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1049
-  (0.0ms) SAVEPOINT active_record_1
1050
907
   (0.1ms) SAVEPOINT active_record_2
1051
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "192"], ["created_at", "2015-06-01 13:28:58.570126"], ["updated_at", "2015-06-01 13:28:58.570126"], ["file_ext", "png"], ["mime_type", "image/png"]]
908
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "191"], ["created_at", "2015-07-16 15:51:01.896534"], ["updated_at", "2015-07-16 15:51:01.896534"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1052
909
   (0.1ms) RELEASE SAVEPOINT active_record_2
1053
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1054
-  (0.1ms) ROLLBACK
1055
-  (0.1ms) BEGIN
1056
- ----------------------------------------------------------------------
1057
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
1058
- ----------------------------------------------------------------------
1059
-  (0.1ms) SAVEPOINT active_record_1
1060
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1061
-  (0.1ms) SAVEPOINT active_record_1
1062
910
   (0.1ms) SAVEPOINT active_record_2
1063
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "193"], ["created_at", "2015-06-01 13:28:58.574425"], ["updated_at", "2015-06-01 13:28:58.574425"], ["file_ext", "png"], ["mime_type", "image/png"]]
911
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "192"], ["created_at", "2015-07-16 15:51:01.898887"], ["updated_at", "2015-07-16 15:51:01.898887"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
912
   (0.1ms) RELEASE SAVEPOINT active_record_2
1065
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1066
-  (0.1ms) ROLLBACK
1067
-  (0.1ms) BEGIN
1068
- ----------------------------------------------------------------------
1069
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
1070
- ----------------------------------------------------------------------
1071
-  (0.0ms) SAVEPOINT active_record_1
1072
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1073
-  (0.0ms) SAVEPOINT active_record_1
1074
913
   (0.1ms) SAVEPOINT active_record_2
1075
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "194"], ["created_at", "2015-06-01 13:28:58.578274"], ["updated_at", "2015-06-01 13:28:58.578274"], ["file_ext", "png"], ["mime_type", "image/png"]]
914
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "193"], ["created_at", "2015-07-16 15:51:01.901187"], ["updated_at", "2015-07-16 15:51:01.901187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1076
915
   (0.1ms) RELEASE SAVEPOINT active_record_2
1077
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1078
-  (0.1ms) ROLLBACK
1079
-  (0.0ms) BEGIN
1080
- ----------------------------------------------------------------------
1081
- PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
1082
- ----------------------------------------------------------------------
1083
-  (0.0ms) SAVEPOINT active_record_1
1084
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1085
-  (0.0ms) SAVEPOINT active_record_1
1086
916
   (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", "195"], ["created_at", "2015-06-01 13:28:58.582365"], ["updated_at", "2015-06-01 13:28:58.582365"], ["file_ext", "png"], ["mime_type", "image/png"]]
917
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "194"], ["created_at", "2015-07-16 15:51:01.903438"], ["updated_at", "2015-07-16 15:51:01.903438"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1088
918
   (0.1ms) RELEASE SAVEPOINT active_record_2
1089
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1090
-  (0.1ms) ROLLBACK
1091
-  (0.1ms) BEGIN
1092
- --------------------------------------------------------------------------------------
1093
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
1094
- --------------------------------------------------------------------------------------
1095
-  (0.1ms) SAVEPOINT active_record_1
1096
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1097
-  (0.1ms) SAVEPOINT active_record_1
1098
919
   (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", "196"], ["created_at", "2015-06-01 13:28:58.587985"], ["updated_at", "2015-06-01 13:28:58.587985"], ["file_ext", "png"], ["mime_type", "image/png"]]
920
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "195"], ["created_at", "2015-07-16 15:51:01.906140"], ["updated_at", "2015-07-16 15:51:01.906140"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1100
921
   (0.1ms) RELEASE SAVEPOINT active_record_2
1101
922
   (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", "image.png"], ["file_size", 2643], ["file_uid", "197"], ["created_at", "2015-06-01 13:28:58.590209"], ["updated_at", "2015-06-01 13:28:58.590209"], ["file_ext", "png"], ["mime_type", "image/png"]]
923
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "196"], ["created_at", "2015-07-16 15:51:01.908626"], ["updated_at", "2015-07-16 15:51:01.908626"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1103
924
   (0.1ms) RELEASE SAVEPOINT active_record_2
1104
925
   (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", "image.png"], ["file_size", 2643], ["file_uid", "198"], ["created_at", "2015-06-01 13:28:58.592413"], ["updated_at", "2015-06-01 13:28:58.592413"], ["file_ext", "png"], ["mime_type", "image/png"]]
926
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "197"], ["created_at", "2015-07-16 15:51:01.910954"], ["updated_at", "2015-07-16 15:51:01.910954"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1106
927
   (0.1ms) RELEASE SAVEPOINT active_record_2
1107
928
   (0.1ms) SAVEPOINT active_record_2
1108
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "199"], ["created_at", "2015-06-01 13:28:58.594664"], ["updated_at", "2015-06-01 13:28:58.594664"], ["file_ext", "png"], ["mime_type", "image/png"]]
929
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "198"], ["created_at", "2015-07-16 15:51:01.913732"], ["updated_at", "2015-07-16 15:51:01.913732"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1109
930
   (0.1ms) RELEASE SAVEPOINT active_record_2
1110
931
   (0.1ms) SAVEPOINT active_record_2
1111
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-06-01 13:28:58.596795"], ["updated_at", "2015-06-01 13:28:58.596795"], ["file_ext", "png"], ["mime_type", "image/png"]]
932
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "199"], ["created_at", "2015-07-16 15:51:01.916062"], ["updated_at", "2015-07-16 15:51:01.916062"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1112
933
   (0.1ms) RELEASE SAVEPOINT active_record_2
934
+ Processing by PushType::WysiwygMediaController#index as JSON
935
+ Parameters: {"filter"=>"file"}
936
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
937
+  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
938
+ Completed 200 OK in 13ms (Views: 1.1ms | ActiveRecord: 0.6ms)
939
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
940
+  (0.1ms) ROLLBACK
941
+  (0.1ms) BEGIN
942
+ --------------------------------------------------------------------------------------
943
+ PushType::WysiwygMediaController::GET #index::filtering for files: test_0001_anonymous
944
+ --------------------------------------------------------------------------------------
945
+  (0.1ms) SAVEPOINT active_record_1
946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
947
+  (0.1ms) SAVEPOINT active_record_1
1113
948
   (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", "201"], ["created_at", "2015-06-01 13:28:58.598878"], ["updated_at", "2015-06-01 13:28:58.598878"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
949
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "200"], ["created_at", "2015-07-16 15:51:01.934678"], ["updated_at", "2015-07-16 15:51:01.934678"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
950
   (0.1ms) RELEASE SAVEPOINT active_record_2
1116
951
   (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", "202"], ["created_at", "2015-06-01 13:28:58.601169"], ["updated_at", "2015-06-01 13:28:58.601169"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
952
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "201"], ["created_at", "2015-07-16 15:51:01.937651"], ["updated_at", "2015-07-16 15:51:01.937651"], ["file_ext", "png"], ["mime_type", "image/png"]]
1118
953
   (0.1ms) RELEASE SAVEPOINT active_record_2
1119
954
   (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", "203"], ["created_at", "2015-06-01 13:28:58.603473"], ["updated_at", "2015-06-01 13:28:58.603473"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
955
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "202"], ["created_at", "2015-07-16 15:51:01.940264"], ["updated_at", "2015-07-16 15:51:01.940264"], ["file_ext", "png"], ["mime_type", "image/png"]]
1121
956
   (0.1ms) RELEASE SAVEPOINT active_record_2
1122
957
   (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", "204"], ["created_at", "2015-06-01 13:28:58.605992"], ["updated_at", "2015-06-01 13:28:58.605992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
958
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "203"], ["created_at", "2015-07-16 15:51:01.942972"], ["updated_at", "2015-07-16 15:51:01.942972"], ["file_ext", "png"], ["mime_type", "image/png"]]
1124
959
   (0.1ms) RELEASE SAVEPOINT active_record_2
1125
960
   (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", "205"], ["created_at", "2015-06-01 13:28:58.608388"], ["updated_at", "2015-06-01 13:28:58.608388"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
961
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "204"], ["created_at", "2015-07-16 15:51:01.946746"], ["updated_at", "2015-07-16 15:51:01.946746"], ["file_ext", "png"], ["mime_type", "image/png"]]
1127
962
   (0.1ms) RELEASE SAVEPOINT active_record_2
1128
963
   (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", "206"], ["created_at", "2015-06-01 13:28:58.610536"], ["updated_at", "2015-06-01 13:28:58.610536"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
964
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "205"], ["created_at", "2015-07-16 15:51:01.949468"], ["updated_at", "2015-07-16 15:51:01.949468"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1130
965
   (0.1ms) RELEASE SAVEPOINT active_record_2
1131
966
   (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", "207"], ["created_at", "2015-06-01 13:28:58.612791"], ["updated_at", "2015-06-01 13:28:58.612791"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
967
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "206"], ["created_at", "2015-07-16 15:51:01.951944"], ["updated_at", "2015-07-16 15:51:01.951944"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1133
968
   (0.1ms) RELEASE SAVEPOINT active_record_2
1134
969
   (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", "208"], ["created_at", "2015-06-01 13:28:58.614953"], ["updated_at", "2015-06-01 13:28:58.614953"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
970
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "207"], ["created_at", "2015-07-16 15:51:01.954187"], ["updated_at", "2015-07-16 15:51:01.954187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1136
971
   (0.1ms) RELEASE SAVEPOINT active_record_2
1137
972
   (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", "209"], ["created_at", "2015-06-01 13:28:58.617444"], ["updated_at", "2015-06-01 13:28:58.617444"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
973
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "208"], ["created_at", "2015-07-16 15:51:01.956695"], ["updated_at", "2015-07-16 15:51:01.956695"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1139
974
   (0.1ms) RELEASE SAVEPOINT active_record_2
1140
975
   (0.1ms) SAVEPOINT active_record_2
1141
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-06-01 13:28:58.619992"], ["updated_at", "2015-06-01 13:28:58.619992"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
976
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "209"], ["created_at", "2015-07-16 15:51:01.959187"], ["updated_at", "2015-07-16 15:51:01.959187"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1142
977
   (0.1ms) RELEASE SAVEPOINT active_record_2
1143
978
   (0.1ms) SAVEPOINT active_record_2
1144
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-06-01 13:28:58.622229"], ["updated_at", "2015-06-01 13:28:58.622229"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
979
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "210"], ["created_at", "2015-07-16 15:51:01.961749"], ["updated_at", "2015-07-16 15:51:01.961749"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1145
980
   (0.1ms) RELEASE SAVEPOINT active_record_2
1146
981
   (0.1ms) SAVEPOINT active_record_2
1147
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-06-01 13:28:58.624427"], ["updated_at", "2015-06-01 13:28:58.624427"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
982
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "211"], ["created_at", "2015-07-16 15:51:01.964216"], ["updated_at", "2015-07-16 15:51:01.964216"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1148
983
   (0.1ms) RELEASE SAVEPOINT active_record_2
1149
984
   (0.1ms) SAVEPOINT active_record_2
1150
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-06-01 13:28:58.626622"], ["updated_at", "2015-06-01 13:28:58.626622"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
985
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "212"], ["created_at", "2015-07-16 15:51:01.966696"], ["updated_at", "2015-07-16 15:51:01.966696"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1151
986
   (0.1ms) RELEASE SAVEPOINT active_record_2
1152
- Processing by PushType::WysiwygMediaController#index as JSON
1153
- Parameters: {"filter"=>"file"}
1154
- PushType::Asset Load (0.4ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1155
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1156
- Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 0.6ms)
1157
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1158
-  (0.2ms) ROLLBACK
1159
-  (0.1ms) BEGIN
1160
- --------------------------------------------------------------------------------------
1161
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0002_anonymous
1162
- --------------------------------------------------------------------------------------
1163
-  (0.0ms) SAVEPOINT active_record_1
1164
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1165
-  (0.0ms) SAVEPOINT active_record_1
1166
987
   (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", "214"], ["created_at", "2015-06-01 13:28:58.643394"], ["updated_at", "2015-06-01 13:28:58.643394"], ["file_ext", "png"], ["mime_type", "image/png"]]
988
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "213"], ["created_at", "2015-07-16 15:51:01.969475"], ["updated_at", "2015-07-16 15:51:01.969475"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1168
989
   (0.1ms) RELEASE SAVEPOINT active_record_2
1169
990
   (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", "image.png"], ["file_size", 2643], ["file_uid", "215"], ["created_at", "2015-06-01 13:28:58.645441"], ["updated_at", "2015-06-01 13:28:58.645441"], ["file_ext", "png"], ["mime_type", "image/png"]]
991
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "214"], ["created_at", "2015-07-16 15:51:01.971938"], ["updated_at", "2015-07-16 15:51:01.971938"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1171
992
   (0.1ms) RELEASE SAVEPOINT active_record_2
1172
993
   (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", "image.png"], ["file_size", 2643], ["file_uid", "216"], ["created_at", "2015-06-01 13:28:58.647477"], ["updated_at", "2015-06-01 13:28:58.647477"], ["file_ext", "png"], ["mime_type", "image/png"]]
994
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "215"], ["created_at", "2015-07-16 15:51:01.974296"], ["updated_at", "2015-07-16 15:51:01.974296"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1174
995
   (0.1ms) RELEASE SAVEPOINT active_record_2
1175
996
   (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", "image.png"], ["file_size", 2643], ["file_uid", "217"], ["created_at", "2015-06-01 13:28:58.649473"], ["updated_at", "2015-06-01 13:28:58.649473"], ["file_ext", "png"], ["mime_type", "image/png"]]
997
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "216"], ["created_at", "2015-07-16 15:51:01.976804"], ["updated_at", "2015-07-16 15:51:01.976804"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1177
998
   (0.1ms) RELEASE SAVEPOINT active_record_2
1178
999
   (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", "image.png"], ["file_size", 2643], ["file_uid", "218"], ["created_at", "2015-06-01 13:28:58.651496"], ["updated_at", "2015-06-01 13:28:58.651496"], ["file_ext", "png"], ["mime_type", "image/png"]]
1000
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "217"], ["created_at", "2015-07-16 15:51:01.978848"], ["updated_at", "2015-07-16 15:51:01.978848"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1180
1001
   (0.1ms) RELEASE SAVEPOINT active_record_2
1002
+ Processing by PushType::WysiwygMediaController#index as JSON
1003
+ Parameters: {"filter"=>"file"}
1004
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1005
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1006
+ Completed 200 OK in 10ms (Views: 0.7ms | ActiveRecord: 0.5ms)
1007
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1008
+  (0.1ms) ROLLBACK
1009
+  (0.1ms) BEGIN
1010
+ -----------------------------------------------------------------------
1011
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0005_anonymous
1012
+ -----------------------------------------------------------------------
1013
+  (0.0ms) SAVEPOINT active_record_1
1014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1015
+  (0.0ms) SAVEPOINT active_record_1
1181
1016
   (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", "219"], ["created_at", "2015-06-01 13:28:58.653591"], ["updated_at", "2015-06-01 13:28:58.653591"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1017
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "218"], ["created_at", "2015-07-16 15:51:01.994566"], ["updated_at", "2015-07-16 15:51:01.994566"], ["file_ext", "png"], ["mime_type", "image/png"]]
1183
1018
   (0.1ms) RELEASE SAVEPOINT active_record_2
1184
1019
   (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", "220"], ["created_at", "2015-06-01 13:28:58.655768"], ["updated_at", "2015-06-01 13:28:58.655768"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1020
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "219"], ["created_at", "2015-07-16 15:51:01.996728"], ["updated_at", "2015-07-16 15:51:01.996728"], ["file_ext", "png"], ["mime_type", "image/png"]]
1186
1021
   (0.1ms) RELEASE SAVEPOINT active_record_2
1187
1022
   (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", "221"], ["created_at", "2015-06-01 13:28:58.657785"], ["updated_at", "2015-06-01 13:28:58.657785"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1023
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "220"], ["created_at", "2015-07-16 15:51:01.998720"], ["updated_at", "2015-07-16 15:51:01.998720"], ["file_ext", "png"], ["mime_type", "image/png"]]
1189
1024
   (0.1ms) RELEASE SAVEPOINT active_record_2
1190
1025
   (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", "222"], ["created_at", "2015-06-01 13:28:58.659943"], ["updated_at", "2015-06-01 13:28:58.659943"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1026
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "221"], ["created_at", "2015-07-16 15:51:02.000748"], ["updated_at", "2015-07-16 15:51:02.000748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1192
1027
   (0.1ms) RELEASE SAVEPOINT active_record_2
1193
-  (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", "223"], ["created_at", "2015-06-01 13:28:58.661919"], ["updated_at", "2015-06-01 13:28:58.661919"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1195
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1028
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1029
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1030
+  (0.1ms) ROLLBACK
1031
+  (0.0ms) BEGIN
1032
+ -----------------------------------------------------------------------
1033
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0002_anonymous
1034
+ -----------------------------------------------------------------------
1035
+  (0.0ms) SAVEPOINT active_record_1
1036
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1037
+  (0.0ms) SAVEPOINT active_record_1
1196
1038
   (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", "224"], ["created_at", "2015-06-01 13:28:58.663851"], ["updated_at", "2015-06-01 13:28:58.663851"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1039
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "222"], ["created_at", "2015-07-16 15:51:02.013332"], ["updated_at", "2015-07-16 15:51:02.013332"], ["file_ext", "png"], ["mime_type", "image/png"]]
1198
1040
   (0.1ms) RELEASE SAVEPOINT active_record_2
1199
1041
   (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", "225"], ["created_at", "2015-06-01 13:28:58.700363"], ["updated_at", "2015-06-01 13:28:58.700363"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1042
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "223"], ["created_at", "2015-07-16 15:51:02.015840"], ["updated_at", "2015-07-16 15:51:02.015840"], ["file_ext", "png"], ["mime_type", "image/png"]]
1201
1043
   (0.1ms) RELEASE SAVEPOINT active_record_2
1202
1044
   (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", "226"], ["created_at", "2015-06-01 13:28:58.702819"], ["updated_at", "2015-06-01 13:28:58.702819"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1045
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "224"], ["created_at", "2015-07-16 15:51:02.018126"], ["updated_at", "2015-07-16 15:51:02.018126"], ["file_ext", "png"], ["mime_type", "image/png"]]
1204
1046
   (0.1ms) RELEASE SAVEPOINT active_record_2
1205
1047
   (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", "227"], ["created_at", "2015-06-01 13:28:58.704937"], ["updated_at", "2015-06-01 13:28:58.704937"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1048
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "225"], ["created_at", "2015-07-16 15:51:02.020186"], ["updated_at", "2015-07-16 15:51:02.020186"], ["file_ext", "png"], ["mime_type", "image/png"]]
1207
1049
   (0.1ms) RELEASE SAVEPOINT active_record_2
1208
-  (0.1ms) SAVEPOINT active_record_2
1209
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "228"], ["created_at", "2015-06-01 13:28:58.707099"], ["updated_at", "2015-06-01 13:28:58.707099"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1210
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1050
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1051
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1052
+  (0.1ms) ROLLBACK
1053
+  (0.1ms) BEGIN
1054
+ -----------------------------------------------------------------------
1055
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0004_anonymous
1056
+ -----------------------------------------------------------------------
1057
+  (0.0ms) SAVEPOINT active_record_1
1058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1059
+  (0.0ms) SAVEPOINT active_record_1
1211
1060
   (0.1ms) SAVEPOINT active_record_2
1212
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "229"], ["created_at", "2015-06-01 13:28:58.709139"], ["updated_at", "2015-06-01 13:28:58.709139"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1061
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "226"], ["created_at", "2015-07-16 15:51:02.026184"], ["updated_at", "2015-07-16 15:51:02.026184"], ["file_ext", "png"], ["mime_type", "image/png"]]
1213
1062
   (0.1ms) RELEASE SAVEPOINT active_record_2
1214
1063
   (0.1ms) SAVEPOINT active_record_2
1215
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "230"], ["created_at", "2015-06-01 13:28:58.711255"], ["updated_at", "2015-06-01 13:28:58.711255"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1064
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "227"], ["created_at", "2015-07-16 15:51:02.029017"], ["updated_at", "2015-07-16 15:51:02.029017"], ["file_ext", "png"], ["mime_type", "image/png"]]
1216
1065
   (0.1ms) RELEASE SAVEPOINT active_record_2
1217
1066
   (0.1ms) SAVEPOINT active_record_2
1218
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "231"], ["created_at", "2015-06-01 13:28:58.713519"], ["updated_at", "2015-06-01 13:28:58.713519"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1067
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "228"], ["created_at", "2015-07-16 15:51:02.031375"], ["updated_at", "2015-07-16 15:51:02.031375"], ["file_ext", "png"], ["mime_type", "image/png"]]
1219
1068
   (0.1ms) RELEASE SAVEPOINT active_record_2
1220
- Processing by PushType::WysiwygMediaController#index as JSON
1221
- Parameters: {"filter"=>"file"}
1222
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1223
-  (0.2ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1224
- Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1069
+  (0.1ms) SAVEPOINT active_record_2
1070
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "229"], ["created_at", "2015-07-16 15:51:02.033748"], ["updated_at", "2015-07-16 15:51:02.033748"], ["file_ext", "png"], ["mime_type", "image/png"]]
1071
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1072
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1225
1073
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1226
1074
   (0.1ms) ROLLBACK
1227
1075
   (0.1ms) BEGIN
1228
- --------------------------------------------------------------------------------------
1229
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0004_anonymous
1230
- --------------------------------------------------------------------------------------
1076
+ -----------------------------------------------------------------------
1077
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0003_anonymous
1078
+ -----------------------------------------------------------------------
1231
1079
   (0.0ms) SAVEPOINT active_record_1
1232
1080
   (0.0ms) RELEASE SAVEPOINT active_record_1
1233
1081
   (0.0ms) SAVEPOINT active_record_1
1234
1082
   (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", "232"], ["created_at", "2015-06-01 13:28:58.731743"], ["updated_at", "2015-06-01 13:28:58.731743"], ["file_ext", "png"], ["mime_type", "image/png"]]
1083
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "230"], ["created_at", "2015-07-16 15:51:02.038229"], ["updated_at", "2015-07-16 15:51:02.038229"], ["file_ext", "png"], ["mime_type", "image/png"]]
1236
1084
   (0.1ms) RELEASE SAVEPOINT active_record_2
1237
1085
   (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", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-06-01 13:28:58.734198"], ["updated_at", "2015-06-01 13:28:58.734198"], ["file_ext", "png"], ["mime_type", "image/png"]]
1086
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "231"], ["created_at", "2015-07-16 15:51:02.040503"], ["updated_at", "2015-07-16 15:51:02.040503"], ["file_ext", "png"], ["mime_type", "image/png"]]
1239
1087
   (0.1ms) RELEASE SAVEPOINT active_record_2
1240
1088
   (0.1ms) SAVEPOINT active_record_2
1241
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-06-01 13:28:58.736392"], ["updated_at", "2015-06-01 13:28:58.736392"], ["file_ext", "png"], ["mime_type", "image/png"]]
1089
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "232"], ["created_at", "2015-07-16 15:51:02.042883"], ["updated_at", "2015-07-16 15:51:02.042883"], ["file_ext", "png"], ["mime_type", "image/png"]]
1242
1090
   (0.1ms) RELEASE SAVEPOINT active_record_2
1243
1091
   (0.1ms) SAVEPOINT active_record_2
1244
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-06-01 13:28:58.738593"], ["updated_at", "2015-06-01 13:28:58.738593"], ["file_ext", "png"], ["mime_type", "image/png"]]
1092
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "233"], ["created_at", "2015-07-16 15:51:02.045089"], ["updated_at", "2015-07-16 15:51:02.045089"], ["file_ext", "png"], ["mime_type", "image/png"]]
1093
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1094
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1095
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1096
+  (0.1ms) ROLLBACK
1097
+  (0.1ms) BEGIN
1098
+ -----------------------------------------------------------------------
1099
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_meta: test_0001_anonymous
1100
+ -----------------------------------------------------------------------
1101
+  (0.0ms) SAVEPOINT active_record_1
1102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1103
+  (0.0ms) SAVEPOINT active_record_1
1104
+  (0.1ms) SAVEPOINT active_record_2
1105
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "234"], ["created_at", "2015-07-16 15:51:02.049526"], ["updated_at", "2015-07-16 15:51:02.049526"], ["file_ext", "png"], ["mime_type", "image/png"]]
1245
1106
   (0.1ms) RELEASE SAVEPOINT active_record_2
1246
1107
   (0.1ms) SAVEPOINT active_record_2
1247
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-06-01 13:28:58.740853"], ["updated_at", "2015-06-01 13:28:58.740853"], ["file_ext", "png"], ["mime_type", "image/png"]]
1108
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "235"], ["created_at", "2015-07-16 15:51:02.051749"], ["updated_at", "2015-07-16 15:51:02.051749"], ["file_ext", "png"], ["mime_type", "image/png"]]
1248
1109
   (0.1ms) RELEASE SAVEPOINT active_record_2
1249
1110
   (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", "237"], ["created_at", "2015-06-01 13:28:58.743163"], ["updated_at", "2015-06-01 13:28:58.743163"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1111
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "236"], ["created_at", "2015-07-16 15:51:02.053951"], ["updated_at", "2015-07-16 15:51:02.053951"], ["file_ext", "png"], ["mime_type", "image/png"]]
1251
1112
   (0.1ms) RELEASE SAVEPOINT active_record_2
1252
1113
   (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", "238"], ["created_at", "2015-06-01 13:28:58.745468"], ["updated_at", "2015-06-01 13:28:58.745468"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1114
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "237"], ["created_at", "2015-07-16 15:51:02.056024"], ["updated_at", "2015-07-16 15:51:02.056024"], ["file_ext", "png"], ["mime_type", "image/png"]]
1115
+  (0.1ms) RELEASE SAVEPOINT active_record_2
1116
+  (0.2ms) SELECT COUNT(*) FROM "push_type_assets"
1117
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1118
+  (0.1ms) ROLLBACK
1119
+  (0.1ms) BEGIN
1120
+ -------------------------------------------------------------------------------------
1121
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0003_anonymous
1122
+ -------------------------------------------------------------------------------------
1123
+  (0.1ms) SAVEPOINT active_record_1
1124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1125
+  (0.0ms) SAVEPOINT active_record_1
1126
+ Processing by PushType::WysiwygMediaController#create as JSON
1127
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc1ac9fbc8 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-1r1s8sh>>}}
1128
+  (0.1ms) SAVEPOINT active_record_2
1129
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "238"], ["created_at", "2015-07-16 15:51:02.063613"], ["updated_at", "2015-07-16 15:51:02.063613"], ["file_ext", "png"], ["mime_type", "image/png"]]
1254
1130
   (0.1ms) RELEASE SAVEPOINT active_record_2
1131
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
1132
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1133
+  (0.1ms) ROLLBACK
1134
+  (0.1ms) BEGIN
1135
+ -------------------------------------------------------------------------------------
1136
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0002_anonymous
1137
+ -------------------------------------------------------------------------------------
1138
+  (0.1ms) SAVEPOINT active_record_1
1139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1140
+  (0.0ms) SAVEPOINT active_record_1
1141
+ Processing by PushType::WysiwygMediaController#create as JSON
1142
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc24032278 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-vc113j>>}}
1255
1143
   (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", "239"], ["created_at", "2015-06-01 13:28:58.747613"], ["updated_at", "2015-06-01 13:28:58.747613"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1144
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "239"], ["created_at", "2015-07-16 15:51:02.069709"], ["updated_at", "2015-07-16 15:51:02.069709"], ["file_ext", "png"], ["mime_type", "image/png"]]
1257
1145
   (0.1ms) RELEASE SAVEPOINT active_record_2
1146
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
1147
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1148
+  (0.1ms) ROLLBACK
1149
+  (0.0ms) BEGIN
1150
+ -------------------------------------------------------------------------------------
1151
+ PushType::WysiwygMediaController::POST #create::with valid asset: test_0001_anonymous
1152
+ -------------------------------------------------------------------------------------
1153
+  (0.0ms) SAVEPOINT active_record_1
1154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1155
+  (0.0ms) SAVEPOINT active_record_1
1156
+ Processing by PushType::WysiwygMediaController#create as JSON
1157
+ Parameters: {"asset"=>{"file"=>#<Rack::Test::UploadedFile:0x007fdc25860188 @content_type="text/plain", @original_filename="image.png", @tempfile=#<Tempfile:/var/folders/c4/6qjwj9_n54zcj3sjqtq42y480000gn/T/image.png20150716-3901-1jw0s10>>}}
1258
1158
   (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", "240"], ["created_at", "2015-06-01 13:28:58.749760"], ["updated_at", "2015-06-01 13:28:58.749760"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1159
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "240"], ["created_at", "2015-07-16 15:51:02.076636"], ["updated_at", "2015-07-16 15:51:02.076636"], ["file_ext", "png"], ["mime_type", "image/png"]]
1260
1160
   (0.1ms) RELEASE SAVEPOINT active_record_2
1161
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
1162
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1163
+  (0.1ms) ROLLBACK
1164
+  (0.1ms) BEGIN
1165
+ -----------------------------------------------------------------------
1166
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0005_anonymous
1167
+ -----------------------------------------------------------------------
1168
+  (0.1ms) SAVEPOINT active_record_1
1169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1170
+  (0.0ms) SAVEPOINT active_record_1
1261
1171
   (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", "241"], ["created_at", "2015-06-01 13:28:58.751862"], ["updated_at", "2015-06-01 13:28:58.751862"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1263
-  (0.1ms) RELEASE SAVEPOINT active_record_2
1172
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "241"], ["created_at", "2015-07-16 15:51:02.081935"], ["updated_at", "2015-07-16 15:51:02.081935"], ["file_ext", "png"], ["mime_type", "image/png"]]
1173
+  (0.2ms) RELEASE SAVEPOINT active_record_2
1264
1174
   (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", "242"], ["created_at", "2015-06-01 13:28:58.754101"], ["updated_at", "2015-06-01 13:28:58.754101"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1175
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "242"], ["created_at", "2015-07-16 15:51:02.084376"], ["updated_at", "2015-07-16 15:51:02.084376"], ["file_ext", "png"], ["mime_type", "image/png"]]
1266
1176
   (0.1ms) RELEASE SAVEPOINT active_record_2
1267
1177
   (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", "243"], ["created_at", "2015-06-01 13:28:58.756402"], ["updated_at", "2015-06-01 13:28:58.756402"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1178
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "243"], ["created_at", "2015-07-16 15:51:02.086612"], ["updated_at", "2015-07-16 15:51:02.086612"], ["file_ext", "png"], ["mime_type", "image/png"]]
1269
1179
   (0.1ms) RELEASE SAVEPOINT active_record_2
1270
1180
   (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", "244"], ["created_at", "2015-06-01 13:28:58.758722"], ["updated_at", "2015-06-01 13:28:58.758722"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1181
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "244"], ["created_at", "2015-07-16 15:51:02.088812"], ["updated_at", "2015-07-16 15:51:02.088812"], ["file_ext", "png"], ["mime_type", "image/png"]]
1272
1182
   (0.1ms) RELEASE SAVEPOINT active_record_2
1183
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1184
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1185
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1186
+  (0.1ms) ROLLBACK
1187
+  (0.1ms) BEGIN
1188
+ -----------------------------------------------------------------------
1189
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0002_anonymous
1190
+ -----------------------------------------------------------------------
1191
+  (0.1ms) SAVEPOINT active_record_1
1192
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1193
+  (0.0ms) SAVEPOINT active_record_1
1273
1194
   (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", "245"], ["created_at", "2015-06-01 13:28:58.760994"], ["updated_at", "2015-06-01 13:28:58.760994"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1195
+ SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "245"], ["created_at", "2015-07-16 15:51:02.095585"], ["updated_at", "2015-07-16 15:51:02.095585"], ["file_ext", "png"], ["mime_type", "image/png"]]
1275
1196
   (0.1ms) RELEASE SAVEPOINT active_record_2
1276
1197
   (0.1ms) SAVEPOINT active_record_2
1277
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "246"], ["created_at", "2015-06-01 13:28:58.763215"], ["updated_at", "2015-06-01 13:28:58.763215"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1198
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "246"], ["created_at", "2015-07-16 15:51:02.098177"], ["updated_at", "2015-07-16 15:51:02.098177"], ["file_ext", "png"], ["mime_type", "image/png"]]
1278
1199
   (0.1ms) RELEASE SAVEPOINT active_record_2
1279
1200
   (0.1ms) SAVEPOINT active_record_2
1280
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "247"], ["created_at", "2015-06-01 13:28:58.765874"], ["updated_at", "2015-06-01 13:28:58.765874"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1201
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "247"], ["created_at", "2015-07-16 15:51:02.100398"], ["updated_at", "2015-07-16 15:51:02.100398"], ["file_ext", "png"], ["mime_type", "image/png"]]
1281
1202
   (0.1ms) RELEASE SAVEPOINT active_record_2
1282
1203
   (0.1ms) SAVEPOINT active_record_2
1283
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "248"], ["created_at", "2015-06-01 13:28:58.768333"], ["updated_at", "2015-06-01 13:28:58.768333"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1204
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "248"], ["created_at", "2015-07-16 15:51:02.102559"], ["updated_at", "2015-07-16 15:51:02.102559"], ["file_ext", "png"], ["mime_type", "image/png"]]
1284
1205
   (0.1ms) RELEASE SAVEPOINT active_record_2
1206
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1207
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1208
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1209
+  (0.1ms) ROLLBACK
1210
+  (0.1ms) BEGIN
1211
+ -----------------------------------------------------------------------
1212
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0001_anonymous
1213
+ -----------------------------------------------------------------------
1214
+  (0.1ms) SAVEPOINT active_record_1
1215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1216
+  (0.0ms) SAVEPOINT active_record_1
1285
1217
   (0.1ms) SAVEPOINT active_record_2
1286
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "249"], ["created_at", "2015-06-01 13:28:58.770544"], ["updated_at", "2015-06-01 13:28:58.770544"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1218
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "249"], ["created_at", "2015-07-16 15:51:02.108389"], ["updated_at", "2015-07-16 15:51:02.108389"], ["file_ext", "png"], ["mime_type", "image/png"]]
1287
1219
   (0.1ms) RELEASE SAVEPOINT active_record_2
1288
- Processing by PushType::WysiwygMediaController#index as JSON
1289
- Parameters: {"filter"=>"file"}
1290
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1291
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1292
- Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.5ms)
1293
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1294
-  (0.1ms) ROLLBACK
1295
-  (0.1ms) BEGIN
1296
- --------------------------------------------------------------------------------------
1297
- PushType::WysiwygMediaController::GET #index::filtering for files: test_0003_anonymous
1298
- --------------------------------------------------------------------------------------
1299
-  (0.0ms) SAVEPOINT active_record_1
1300
-  (0.0ms) RELEASE SAVEPOINT active_record_1
1301
-  (0.0ms) SAVEPOINT active_record_1
1302
1220
   (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", "250"], ["created_at", "2015-06-01 13:28:58.787927"], ["updated_at", "2015-06-01 13:28:58.787927"], ["file_ext", "png"], ["mime_type", "image/png"]]
1221
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "250"], ["created_at", "2015-07-16 15:51:02.111059"], ["updated_at", "2015-07-16 15:51:02.111059"], ["file_ext", "png"], ["mime_type", "image/png"]]
1304
1222
   (0.1ms) RELEASE SAVEPOINT active_record_2
1305
1223
   (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", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-06-01 13:28:58.790123"], ["updated_at", "2015-06-01 13:28:58.790123"], ["file_ext", "png"], ["mime_type", "image/png"]]
1224
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "251"], ["created_at", "2015-07-16 15:51:02.113494"], ["updated_at", "2015-07-16 15:51:02.113494"], ["file_ext", "png"], ["mime_type", "image/png"]]
1307
1225
   (0.1ms) RELEASE SAVEPOINT active_record_2
1308
1226
   (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", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-06-01 13:28:58.792536"], ["updated_at", "2015-06-01 13:28:58.792536"], ["file_ext", "png"], ["mime_type", "image/png"]]
1227
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "252"], ["created_at", "2015-07-16 15:51:02.115695"], ["updated_at", "2015-07-16 15:51:02.115695"], ["file_ext", "png"], ["mime_type", "image/png"]]
1310
1228
   (0.1ms) RELEASE SAVEPOINT active_record_2
1229
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1230
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1231
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1232
+  (0.1ms) ROLLBACK
1233
+  (0.1ms) BEGIN
1234
+ -----------------------------------------------------------------------
1235
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0004_anonymous
1236
+ -----------------------------------------------------------------------
1237
+  (0.1ms) SAVEPOINT active_record_1
1238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1239
+  (0.0ms) SAVEPOINT active_record_1
1311
1240
   (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", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-06-01 13:28:58.794662"], ["updated_at", "2015-06-01 13:28:58.794662"], ["file_ext", "png"], ["mime_type", "image/png"]]
1241
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "253"], ["created_at", "2015-07-16 15:51:02.121584"], ["updated_at", "2015-07-16 15:51:02.121584"], ["file_ext", "png"], ["mime_type", "image/png"]]
1313
1242
   (0.1ms) RELEASE SAVEPOINT active_record_2
1314
1243
   (0.1ms) SAVEPOINT active_record_2
1315
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-06-01 13:28:58.796686"], ["updated_at", "2015-06-01 13:28:58.796686"], ["file_ext", "png"], ["mime_type", "image/png"]]
1244
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "254"], ["created_at", "2015-07-16 15:51:02.123785"], ["updated_at", "2015-07-16 15:51:02.123785"], ["file_ext", "png"], ["mime_type", "image/png"]]
1316
1245
   (0.1ms) RELEASE SAVEPOINT active_record_2
1317
1246
   (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", "255"], ["created_at", "2015-06-01 13:28:58.798771"], ["updated_at", "2015-06-01 13:28:58.798771"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1247
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "255"], ["created_at", "2015-07-16 15:51:02.126412"], ["updated_at", "2015-07-16 15:51:02.126412"], ["file_ext", "png"], ["mime_type", "image/png"]]
1319
1248
   (0.1ms) RELEASE SAVEPOINT active_record_2
1320
1249
   (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", "256"], ["created_at", "2015-06-01 13:28:58.800847"], ["updated_at", "2015-06-01 13:28:58.800847"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1250
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "256"], ["created_at", "2015-07-16 15:51:02.128618"], ["updated_at", "2015-07-16 15:51:02.128618"], ["file_ext", "png"], ["mime_type", "image/png"]]
1322
1251
   (0.1ms) RELEASE SAVEPOINT active_record_2
1252
+ PushType::Asset Load (0.2ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1253
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1254
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1255
+  (0.1ms) ROLLBACK
1256
+  (0.1ms) BEGIN
1257
+ -----------------------------------------------------------------------
1258
+ PushType::WysiwygMediaHelper::#wysiwyg_assets_hash: test_0003_anonymous
1259
+ -----------------------------------------------------------------------
1260
+  (0.0ms) SAVEPOINT active_record_1
1261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1262
+  (0.0ms) SAVEPOINT active_record_1
1323
1263
   (0.1ms) SAVEPOINT active_record_2
1324
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "257"], ["created_at", "2015-06-01 13:28:58.802926"], ["updated_at", "2015-06-01 13:28:58.802926"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1264
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "257"], ["created_at", "2015-07-16 15:51:02.134907"], ["updated_at", "2015-07-16 15:51:02.134907"], ["file_ext", "png"], ["mime_type", "image/png"]]
1325
1265
   (0.1ms) RELEASE SAVEPOINT active_record_2
1326
1266
   (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", "258"], ["created_at", "2015-06-01 13:28:58.804971"], ["updated_at", "2015-06-01 13:28:58.804971"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1267
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "258"], ["created_at", "2015-07-16 15:51:02.137110"], ["updated_at", "2015-07-16 15:51:02.137110"], ["file_ext", "png"], ["mime_type", "image/png"]]
1328
1268
   (0.1ms) RELEASE SAVEPOINT active_record_2
1329
1269
   (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", "259"], ["created_at", "2015-06-01 13:28:58.807031"], ["updated_at", "2015-06-01 13:28:58.807031"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1270
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "259"], ["created_at", "2015-07-16 15:51:02.139379"], ["updated_at", "2015-07-16 15:51:02.139379"], ["file_ext", "png"], ["mime_type", "image/png"]]
1331
1271
   (0.1ms) RELEASE SAVEPOINT active_record_2
1332
1272
   (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", "260"], ["created_at", "2015-06-01 13:28:58.809361"], ["updated_at", "2015-06-01 13:28:58.809361"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1273
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "260"], ["created_at", "2015-07-16 15:51:02.141791"], ["updated_at", "2015-07-16 15:51:02.141791"], ["file_ext", "png"], ["mime_type", "image/png"]]
1334
1274
   (0.1ms) RELEASE SAVEPOINT active_record_2
1275
+ PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" ORDER BY "push_type_assets"."created_at" DESC LIMIT 2 OFFSET 0
1276
+  (0.1ms) SELECT COUNT(*) FROM "push_type_assets"
1277
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1278
+  (0.1ms) ROLLBACK
1279
+  (0.1ms) BEGIN
1280
+ ----------------------------------------------------------------------
1281
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0005_anonymous
1282
+ ----------------------------------------------------------------------
1283
+  (0.0ms) SAVEPOINT active_record_1
1284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1285
+  (0.0ms) SAVEPOINT active_record_1
1335
1286
   (0.1ms) SAVEPOINT active_record_2
1336
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "261"], ["created_at", "2015-06-01 13:28:58.813656"], ["updated_at", "2015-06-01 13:28:58.813656"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1287
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "261"], ["created_at", "2015-07-16 15:51:02.148786"], ["updated_at", "2015-07-16 15:51:02.148786"], ["file_ext", "png"], ["mime_type", "image/png"]]
1337
1288
   (0.1ms) RELEASE SAVEPOINT active_record_2
1289
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1290
+  (0.1ms) ROLLBACK
1291
+  (0.1ms) BEGIN
1292
+ ----------------------------------------------------------------------
1293
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0006_anonymous
1294
+ ----------------------------------------------------------------------
1295
+  (0.0ms) SAVEPOINT active_record_1
1296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1297
+  (0.0ms) SAVEPOINT active_record_1
1338
1298
   (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", "262"], ["created_at", "2015-06-01 13:28:58.815998"], ["updated_at", "2015-06-01 13:28:58.815998"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1299
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "262"], ["created_at", "2015-07-16 15:51:02.152505"], ["updated_at", "2015-07-16 15:51:02.152505"], ["file_ext", "png"], ["mime_type", "image/png"]]
1340
1300
   (0.1ms) RELEASE SAVEPOINT active_record_2
1341
-  (0.1ms) SAVEPOINT active_record_2
1342
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "263"], ["created_at", "2015-06-01 13:28:58.818185"], ["updated_at", "2015-06-01 13:28:58.818185"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1301
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1302
+  (0.1ms) ROLLBACK
1303
+  (0.1ms) BEGIN
1304
+ ----------------------------------------------------------------------
1305
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0001_anonymous
1306
+ ----------------------------------------------------------------------
1307
+  (0.0ms) SAVEPOINT active_record_1
1308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1309
+  (0.0ms) SAVEPOINT active_record_1
1310
+  (0.0ms) SAVEPOINT active_record_2
1311
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "263"], ["created_at", "2015-07-16 15:51:02.156419"], ["updated_at", "2015-07-16 15:51:02.156419"], ["file_ext", "png"], ["mime_type", "image/png"]]
1343
1312
   (0.1ms) RELEASE SAVEPOINT active_record_2
1313
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1314
+  (0.1ms) ROLLBACK
1315
+  (0.1ms) BEGIN
1316
+ ----------------------------------------------------------------------
1317
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0002_anonymous
1318
+ ----------------------------------------------------------------------
1319
+  (0.0ms) SAVEPOINT active_record_1
1320
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1321
+  (0.1ms) SAVEPOINT active_record_1
1344
1322
   (0.1ms) SAVEPOINT active_record_2
1345
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "264"], ["created_at", "2015-06-01 13:28:58.820298"], ["updated_at", "2015-06-01 13:28:58.820298"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1323
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "264"], ["created_at", "2015-07-16 15:51:02.160600"], ["updated_at", "2015-07-16 15:51:02.160600"], ["file_ext", "png"], ["mime_type", "image/png"]]
1346
1324
   (0.1ms) RELEASE SAVEPOINT active_record_2
1325
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1326
+  (0.1ms) ROLLBACK
1327
+  (0.1ms) BEGIN
1328
+ ----------------------------------------------------------------------
1329
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0004_anonymous
1330
+ ----------------------------------------------------------------------
1331
+  (0.1ms) SAVEPOINT active_record_1
1332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1333
+  (0.1ms) SAVEPOINT active_record_1
1347
1334
   (0.1ms) SAVEPOINT active_record_2
1348
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "265"], ["created_at", "2015-06-01 13:28:58.822681"], ["updated_at", "2015-06-01 13:28:58.822681"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1335
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "265"], ["created_at", "2015-07-16 15:51:02.165076"], ["updated_at", "2015-07-16 15:51:02.165076"], ["file_ext", "png"], ["mime_type", "image/png"]]
1349
1336
   (0.1ms) RELEASE SAVEPOINT active_record_2
1337
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1338
+  (0.1ms) ROLLBACK
1339
+  (0.0ms) BEGIN
1340
+ ----------------------------------------------------------------------
1341
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0007_anonymous
1342
+ ----------------------------------------------------------------------
1343
+  (0.0ms) SAVEPOINT active_record_1
1344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1345
+  (0.0ms) SAVEPOINT active_record_1
1350
1346
   (0.1ms) SAVEPOINT active_record_2
1351
- SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "266"], ["created_at", "2015-06-01 13:28:58.824824"], ["updated_at", "2015-06-01 13:28:58.824824"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1347
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "266"], ["created_at", "2015-07-16 15:51:02.169097"], ["updated_at", "2015-07-16 15:51:02.169097"], ["file_ext", "png"], ["mime_type", "image/png"]]
1352
1348
   (0.1ms) RELEASE SAVEPOINT active_record_2
1349
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1350
+  (0.1ms) ROLLBACK
1351
+  (0.1ms) BEGIN
1352
+ ----------------------------------------------------------------------
1353
+ PushType::WysiwygMediaHelper::#wysiwyg_asset_hash: test_0003_anonymous
1354
+ ----------------------------------------------------------------------
1355
+  (0.0ms) SAVEPOINT active_record_1
1356
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1357
+  (0.0ms) SAVEPOINT active_record_1
1353
1358
   (0.1ms) SAVEPOINT active_record_2
1354
- SQL (0.2ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "document.pdf"], ["file_size", 15356], ["file_uid", "267"], ["created_at", "2015-06-01 13:28:58.827368"], ["updated_at", "2015-06-01 13:28:58.827368"], ["file_ext", "pdf"], ["mime_type", "application/pdf"]]
1359
+ SQL (0.1ms) INSERT INTO "push_type_assets" ("file_name", "file_size", "file_uid", "created_at", "updated_at", "file_ext", "mime_type") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["file_name", "image.png"], ["file_size", 2643], ["file_uid", "267"], ["created_at", "2015-07-16 15:51:02.172688"], ["updated_at", "2015-07-16 15:51:02.172688"], ["file_ext", "png"], ["mime_type", "image/png"]]
1355
1360
   (0.1ms) RELEASE SAVEPOINT active_record_2
1356
- Processing by PushType::WysiwygMediaController#index as JSON
1357
- Parameters: {"filter"=>"file"}
1358
- PushType::Asset Load (0.3ms) SELECT "push_type_assets".* FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%') ORDER BY "push_type_assets"."created_at" DESC LIMIT 12 OFFSET 0
1359
-  (0.3ms) SELECT COUNT(*) FROM "push_type_assets" WHERE "push_type_assets"."deleted_at" IS NULL AND (mime_type NOT LIKE 'image/%')
1360
- Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 0.6ms)
1361
1361
   (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1362
1362
   (0.1ms) ROLLBACK