Permalink
Browse files

Fixed a typo

git-svn-id: https://svn.thoughtbot.com/plugins/paperclip/trunk@378 7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
  • Loading branch information...
jyurek
jyurek committed Feb 29, 2008
1 parent b6ccf06 commit fc59d3dcd338426000d42ae52ee5dca7fa555d44
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit fc59d3d

Please sign in to comment.