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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDAxOGViYzYwNjhiYzBmZTBkZGI1Nzg1ZjhlYjJlNmJlOTFkM2MwMw==
4
+ YTM0ZGMzOWNmNTk0ODliNzZlZWFmOTJmYWEzZDc4MDE0ZDNkNDQ3Nw==
5
5
  data.tar.gz: !binary |-
6
- Y2YyZDg3ZjZlM2Q0ODdhMjkwZjcyNWM0NjE1OWRhZTFmOThhNjhkZg==
6
+ ODk3M2ViYjFkOWE1NjQ5YmM1YjkzN2Q1MTUzYWM4MWFkMTE1MGEzZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjZmYmZkZjczNTA4MzdjM2MzYmMxYWQwOTI3ODZiMTljMGE0YmJmYTU1ZDQ0
10
- YTNjYzJhYmFlM2QwZTA3NzMxYjA3MjU1M2RhOTZmMzkzNzVjYzkwMGUyY2Nm
11
- NjhiODdmZTE5YjVjMzRhZjhjZTYwM2Y4ODc3ZjI1M2EzZmJkY2Y=
9
+ NWEwNDc0YjhjMTc4Y2YxMGU0NjdiNjAzZDk2ZTk0YjUxOWE4MzVhZGJjZmEw
10
+ Y2NlNDlhM2JlZWY0NTk4MjIwMTM3NDg3ODkyMGRmZGM2NDQwMGE5Y2YyZDEx
11
+ ZWE1OThlYjdjNzZkNjI0YmFhZGJiODhiMzJjZDViOGU4YzcwMmY=
12
12
  data.tar.gz: !binary |-
13
- MDgwNGJmNjA3ZDFmMzcxMjQ3ZDc1ZWFlODIyN2EyYzJjZDk2OWQ1MGJhYjBh
14
- ZTQ2MWMzMDQyZmYyNWEwNjY0ZDU2Mjc1YjE4N2Q5MTA1M2VmZDBhYzhiMjdl
15
- NjkzYWUxY2Y0ZTA1YTZjNTEyMDU5ZjNiNWEwNDJjN2EwMjI3MWE=
13
+ OThhOTc2NzQ0MjU0NmIxMjVkMzMzZDM3NmJkMWUwM2UwZTJkMGZlYjA2YjMz
14
+ YWE3NjYyN2EyZWI0MjYzMzIxMDQyN2IyOWU2OGJmZDRiODgzODAwNmJkYzYz
15
+ MTExOTZlNzM0YTc3MGFmOTVmNGM5MzUxYTczMzhiZTk3NzNkYWM=
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.26'
2
+ VERSION = '0.5.27'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.26
4
+ version: 0.5.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry