class MyImage < ActiveRecord::Base def add_thumbnail(w, h) suffix = "#{w}x#{h}" size = "#{w}x#{h}>" self.create_or_update_thumbnail(create_temp_file, suffix, size) end ...
# usage MyImage.find(id).add_thumbnail(100, 200)