README.md in tori-0.4.1 vs README.md in tori-0.5.0
- old
+ new
@@ -86,9 +86,14 @@
end
tori :striped_image do |model|
"#{model.class}/striped/#{model.striped_filename}"
end
+
+ # customize backend each by `tori` method.
+ tori :custom, to: Tori::Backend::FileSystem.new(Pathname("custom")) do |model|
+ "#{__tori__}/#{id}"
+ end
end
class PhotoController < ApplicationController
def create
original = params[:file]