Set default picture
Fix tags where not in params for index fronted (news and announcement) Change backend index for news Home banner link for images and main title
This commit is contained in:
1 parent
96fd89cca3
commit
3c283d1a7a
10 files changed
+18
-12
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
@@ -3,6 +3,7 @@
|
||||
class ImageUploader < CarrierWave::Uploader::Base
|
||||
|
||||
require 'mime/types'
|
||||
include Sprockets::Helpers::RailsHelper
|
||||
|
||||
process :set_content_type
|
||||
|
||||
@@ -30,6 +31,9 @@ class ImageUploader < CarrierWave::Uploader::Base
|
||||
# def default_url
|
||||
# "/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
||||
# end
|
||||
def default_url
|
||||
"news_alt.jpg"
|
||||
end
|
||||
|
||||
# Process files as they are uploaded:
|
||||
# process :scale => [200, 300]
|
||||
|
||||
Reference in new issue
Block a user