s3_relay 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dfa694688acdc03f3739afa1a34306a1e0df9bb7
4
- data.tar.gz: 66b81f80265a47492da962115cc212d8a4d18c0d
3
+ metadata.gz: b7dcaafe6bb5112a54f7b4d19b69a7217280f43a
4
+ data.tar.gz: 7bacab9d71c6600560720e998ee3edd1c1e49fc8
5
5
  SHA512:
6
- metadata.gz: 935aec666d163f9659b1d851bf64c58d456803ebb7eb6c42da34c108afa04ab20cd634e5ceb64d3f653bbd52656320b352bfca401101962e36fdd26aa74fe805
7
- data.tar.gz: a323b155a06c29dfd165a7d98290b59d40bf728d8188542a653dd4cdefbf9a8d82583af8b2e1636957546d23dd09ad3bc726cc4a9748b72426131e7f91e227ae
6
+ metadata.gz: 15d6b441802e588b243d951e4f94b3e2c4e049dc49009d6146b37018070f917a0fd3eb7ca78967062e54a28309b5436cd51155796a50c68c817fb629d5e9cec9
7
+ data.tar.gz: 30aae77630eaa6bc0ea0d5f3b2860dc6dc8783ae60641df64ab441ddeb963e38172f4a9e57ce32752b4c23bb10e27ad9bac3cda9cfa2159e85d1b3aa0ef09d5c
data/README.md CHANGED
@@ -127,7 +127,7 @@ end
127
127
 
128
128
  ```ruby
129
129
  product_params = params.require(:product)
130
- .permit(:name, :new_icon_upload_uuid, new_photo_uploads_uuids: [])
130
+ .permit(:name, :new_icon_upload_uuids: [], new_photo_uploads_uuids: [])
131
131
 
132
132
  @product = Product.new(product_params)
133
133
  ```
@@ -235,12 +235,6 @@ end
235
235
  4. Push to the branch (`git push origin my-new-feature`)
236
236
  5. [Create a Pull Request](https://github.com/kjohnston/s3_relay/pull/new)
237
237
 
238
- ## Contributors
239
-
240
- Many thanks go to the following who have contributed to making this gem even better:
241
-
242
- [your name here]
243
-
244
238
  ## License
245
239
 
246
240
  * Freely distributable and licensed under the [MIT license](http://kjohnston.mit-license.org/license.html).
@@ -15,8 +15,6 @@ module S3Relay
15
15
  upload_type: upload_type
16
16
  )
17
17
  end
18
-
19
- virtual_attribute = "new_#{attribute}_uuids"
20
18
  else
21
19
  has_one attribute, as: :parent, class_name: "S3Relay::Upload"
22
20
 
@@ -29,10 +27,9 @@ module S3Relay
29
27
  )
30
28
  .order("pending_at DESC").last
31
29
  end
32
-
33
- virtual_attribute = "new_#{attribute}_uuid"
34
30
  end
35
31
 
32
+ virtual_attribute = "new_#{attribute}_uuids"
36
33
  attr_accessor virtual_attribute
37
34
 
38
35
  association_method = "associate_#{attribute}"
@@ -1,3 +1,3 @@
1
1
  module S3Relay
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -0,0 +1,14 @@
1
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ Migrating to CreateS3RelayUploads (20141009000804)
5
+  (0.1ms) BEGIN
6
+  (3.2ms) CREATE TABLE "s3_relay_uploads" ("id" serial primary key, "uuid" bytea, "user_id" integer, "parent_type" character varying(255), "parent_id" integer, "upload_type" character varying(255), "filename" text, "content_type" character varying(255), "state" character varying(255), "data" json DEFAULT '{}', "pending_at" timestamp, "imported_at" timestamp, "created_at" timestamp, "updated_at" timestamp) 
7
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141009000804"]]
8
+  (0.5ms) COMMIT
9
+ Migrating to CreateProducts (20141021002149)
10
+  (5.9ms) BEGIN
11
+  (7.5ms) CREATE TABLE "products" ("id" serial primary key, "name" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
12
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20141021002149"]]
13
+  (6.2ms) COMMIT
14
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"