Permalink
Browse files

thumbnails methods are now [name]_thumbnail insetead of thumbnail_[name]

  • Loading branch information...
1 parent d5791af commit 0e8127725498d5913e32badc0d35f25c085dc613 jared committed Jun 24, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/technoweenie/attachment_fu.rb
@@ -77,7 +77,7 @@ def has_attachment(options = {})
# Adds a "thumbnail_[name]" instance method for each thumbnail type.
unless attachment_options[:thumbnails].blank?
attachment_options[:thumbnails].keys.each do |arg|
- define_method("thumbnail_#{arg}") {
+ define_method("#{arg}_thumbnail") {
find_thumbnail(arg)
}
end

0 comments on commit 0e81277

Please sign in to comment.