mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
support paperclip with a sad monkeypatch
This commit is contained in:
parent
d327d98212
commit
edb87733fd
9
config/initializers/monkeypatch.rb
Normal file
9
config/initializers/monkeypatch.rb
Normal file
@ -0,0 +1,9 @@
|
||||
# We need to monkeypatch this in because paperclip internally uses URI.escape, and
|
||||
# Rails 3 drops URI.escape support in favor of CGI.escape. After we've migrated off
|
||||
# paperclip (or paperclip stops sucking), we can remove this monkeypatch.
|
||||
|
||||
module URI
|
||||
def URI.escape(url)
|
||||
CGI.escape(url)
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue
Block a user