caboose-cms 0.5.26 → 0.5.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/caboose.rb +6 -0
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTM0ZGMzOWNmNTk0ODliNzZlZWFmOTJmYWEzZDc4MDE0ZDNkNDQ3Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODk3M2ViYjFkOWE1NjQ5YmM1YjkzN2Q1MTUzYWM4MWFkMTE1MGEzZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWEwNDc0YjhjMTc4Y2YxMGU0NjdiNjAzZDk2ZTk0YjUxOWE4MzVhZGJjZmEw
|
10
|
+
Y2NlNDlhM2JlZWY0NTk4MjIwMTM3NDg3ODkyMGRmZGM2NDQwMGE5Y2YyZDEx
|
11
|
+
ZWE1OThlYjdjNzZkNjI0YmFhZGJiODhiMzJjZDViOGU4YzcwMmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OThhOTc2NzQ0MjU0NmIxMjVkMzMzZDM3NmJkMWUwM2UwZTJkMGZlYjA2YjMz
|
14
|
+
YWE3NjYyN2EyZWI0MjYzMzIxMDQyN2IyOWU2OGJmZDRiODgzODAwNmJkYzYz
|
15
|
+
MTExOTZlNzM0YTc3MGFmOTVmNGM5MzUxYTczMzhiZTk3NzNkYWM=
|
data/lib/caboose.rb
CHANGED
@@ -122,7 +122,13 @@ module Caboose
|
|
122
122
|
|
123
123
|
end
|
124
124
|
|
125
|
+
# These are used so that both local filestorage and S3 can work without having to change paperclip paths in models
|
125
126
|
Paperclip.interpolates :path_prefix do |attachment, style|
|
126
127
|
return "#{Rails.root}/public/" if Caboose::cdn_domain.nil? || Caboose::cdn_domain == '/'
|
127
128
|
return ''
|
128
129
|
end
|
130
|
+
|
131
|
+
Paperclip.interpolates :model_url do |attachment, style|
|
132
|
+
return "/#{attachment.path}" if Caboose::cdn_domain.nil? || Caboose::cdn_domain == '/'
|
133
|
+
return "#{Caboose::cdn_domain}/#{attachment.path}"
|
134
|
+
end
|
data/lib/caboose/version.rb
CHANGED