Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a typo

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@378 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
commit fc59d3dcd338426000d42ae52ee5dca7fa555d44 1 parent b6ccf06
jyurek authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/paperclip/attachment.rb
View
6 lib/paperclip/attachment.rb
@@ -151,7 +151,7 @@ def exists?(style)
# Generates the thumbnails from the data supplied. Following this call, the data will
# be available from for_attached_files.
- def convert(uploaded_file)
+ def convert data
begin
definition.styles.each do |style, geometry|
self[style] = Thumbnail.make(geometry, data, definition.whiny_thumbnails)
@@ -223,7 +223,7 @@ def is_a_file? data #:nodoc:
end
def sanitize_filename filename #:nodoc:
- File.basename(filename).gsub(/[^\w\.\_]/,'_')
+ File.basename(filename).gsub(/[^\w\.\_\-]/,'_')
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.