dekart-paperclip 2.3.1.1 → 2.3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/paperclip/interpolations.rb +5 -0
  2. metadata +1 -1
@@ -38,6 +38,11 @@ module Paperclip
38
38
  "#{basename(attachment, style)}.#{extension(attachment, style)}"
39
39
  end
40
40
 
41
+ # Returns escaped filename to deal with UTF filenames
42
+ def escaped_filename(*args)
43
+ CGI::escape(filename(*args))
44
+ end
45
+
41
46
  # Returns the interpolated URL. Will raise an error if the url itself
42
47
  # contains ":url" to prevent infinite recursion. This interpolation
43
48
  # is used in the default :path to ease default specifications.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dekart-paperclip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.1
4
+ version: 2.3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Yurek