Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 28th, 2017
51
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def randomize_file_name
ext = Rack::Mime::MIME_TYPES.invert[image_content_type]
self.image.instance_write(:file_name, "#{SecureRandom.uuid}#{ext}")
end
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
4 min ago | 10.28 KB
OoT rando seed 4/16
39 min ago | 67.81 KB
Untitled
1 hour ago | 8.21 KB
Untitled
2 hours ago | 8.46 KB
Untitled
3 hours ago | 7.62 KB
Web Maintenance Kickoff [POST REDESIGN]
3 hours ago | 0.98 KB
Untitled
4 hours ago | 7.43 KB
Untitled
5 hours ago | 6.56 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!