lib/photograph/service.rb in photograph-0.0.1 vs lib/photograph/service.rb in photograph-0.0.2

- old
+ new

@@ -19,15 +19,13 @@ :w => params["w"].to_i, :h => params["h"].to_i, :wait => params["wait"].to_f, :selector => params["selector"] - artist.shoot! - - send_file artist.image.path, - :type => :png - - artist.clean! + artist.shoot! do |image| + send_file image.path, + :type => :png + end end end end