redde 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/redde/photo.rb +5 -5
- data/lib/redde/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dae7c80cda1459f63ab09def8247a69dd816a8cc5a72e9a55bd3aadd5c695873
|
4
|
+
data.tar.gz: 4c24efc21c5e212581e0495e2f71da2b7049b5f3743ed4a0b3bea215f240c97a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c833d1a40708d0126aaf54edbc5f4b0e5a22fc5e482ff80c6413c1d4f34048ce735ef75adf766b27377a651edf98113f53e669907db92cc119a07ce49a522c7
|
7
|
+
data.tar.gz: 12d8dc114e13b851e5ff9a8a0706d1201930abdf28abfea1d840bfb3014cd6a6335241c2c20f8b649301be8b643d363ec01789776454c2a45e214820cd889902
|
data/app/models/redde/photo.rb
CHANGED
@@ -2,11 +2,11 @@ class Redde::Photo < ActiveRecord::Base
|
|
2
2
|
mount_uploader :src, PhotoUploader
|
3
3
|
self.table_name = 'redde_photos'
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
opts = { polymorphic: true }
|
6
|
+
opts.merge!(optional: true) if Rails.version.split('.').join.to_i > 510
|
7
|
+
|
8
|
+
belongs_to :imageable, opts
|
9
|
+
|
10
10
|
default_scope { order(:position) }
|
11
11
|
before_save :set_token, unless: :persisted_link?
|
12
12
|
|
data/lib/redde/version.rb
CHANGED