0
@@ -205,12 +205,10 @@ module Technoweenie # :nodoc:
0
def create_or_update_thumbnail(temp_file, file_name_suffix, *size)
0
thumbnailable? || raise(ThumbnailError.new("Can't create a thumbnail if the content type is not an image or there is no parent_id column"))
0
returning find_or_initialize_thumbnail(file_name_suffix) do |thumb|
0
- :content_type => content_type,
0
- :filename => thumbnail_name_for(file_name_suffix),
0
- :temp_path => temp_file,
0
- :thumbnail_resize_options => size
0
+ thumb.content_type = content_type
0
+ thumb.filename = thumbnail_name_for(file_name_suffix)
0
+ thumb.temp_path = temp_file
0
+ thumb.thumbnail_resize_options = size
0
callback_with_args :before_thumbnail_saved, thumb
Comments
No one has commented yet.