Remove news and fix default_url in ImageUploader
This commit is contained in:
1 parent
0d26f48c9a
commit
475642d375
163 files changed
+46
-8582
No files matched your search
@@ -32,7 +32,7 @@ class ImageUploader < CarrierWave::Uploader::Base
|
||||
# "/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
||||
# end
|
||||
def default_url
|
||||
Site.first.default_image.url rescue "-sign-in-logo.png"
|
||||
[version_name, (Site.first.default_image.file.url rescue "sign-in-logo.png")].compact.join('_')
|
||||
end
|
||||
|
||||
# Process files as they are uploaded:
|
||||
|
||||
Reference in new issue
Block a user