README.md in tori-0.0.1 vs README.md in tori-0.0.2

- old
+ new

@@ -1,8 +1,10 @@ Tori === +"(\\( ⁰⊖⁰)/)" + Tori is a very very simple file uploader. Tori dose nothing. Only file upload to backend store. @@ -54,37 +56,12 @@ = f.button 'Upload' ``` # default configure -``` -# Tori using hash function for decide filename. -# Filename dependent on class name and `id` setting with `tori` method in class. -Tori.config.hash_method = Digest::MD5.method(:hexdigest) +[https://github.com/ksss/tori/blob/master/lib/tori.rb](https://github.com/ksss/tori/blob/master/lib/tori.rb) -# Rails -Tori.config.backend = Tori::Backend::FileSystem.new(Rails.root.join('tmp', 'tori')) - -# Other -Tori.config.backend = Tori::Backend::FileSystem.new(Pathname("tmp/tori")) -``` - You can change configure any time. - -# Options - -Change hash resource data. - -``` -class Photo < ActiveRecord::Base - tori :image, id: :filename - def filename - "abc" - end -end -``` - -This class never upload two file. # future TODO - support background S3 Storage