Trying to obfuscate Paperclip URLs
This commit is contained in:
parent
65f74e0568
commit
be5ab53424
1 changed files with 4 additions and 2 deletions
|
|
@ -7,8 +7,10 @@ class Screenshot < ActiveRecord::Base
|
||||||
|
|
||||||
has_attached_file :image,
|
has_attached_file :image,
|
||||||
styles: { :large => "800x600>", :thumb => "160x120>" },
|
styles: { :large => "800x600>", :thumb => "160x120>" },
|
||||||
default_url: "/images/dummy/no-screenshots-upload-one.svg"
|
default_url: "/images/dummy/no-screenshots-upload-one.svg",
|
||||||
#path: :rails_root/public/system/:class/:attachment/:id_partition/:style/:filename
|
path: ":rails_root/public/system/:class/:attachment/:id_partition/:style/:filename",
|
||||||
|
url: "/system/:hash.:extension",
|
||||||
|
hash_secret: "M4xGM9v6y17Y27sZ1liWrnQaXdX4YDdZCJ7fOqcAUg3cZJqK9x"
|
||||||
validates_attachment_content_type :image, :content_type => /\Aimage\/png\Z/
|
validates_attachment_content_type :image, :content_type => /\Aimage\/png\Z/
|
||||||
|
|
||||||
# Return caption for full-screen screenshots.
|
# Return caption for full-screen screenshots.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue