README.rdoc in papermill-0.12.2 vs README.rdoc in papermill-0.13.0

- old
+ new

@@ -56,11 +56,11 @@ Rails::Initializer.run do |config| ... config.gem papermill - # You can set options that will be set application-wide : + # You can set application-wide options inside or before Rails::Initializer : module Papermill OPTIONS = { :thumbnail => { :width => 150, :height => 100 @@ -76,10 +76,13 @@ # see lib/papermill/papermill_module.rb # You can use stringex's String#to_url (papermill will use its own String#to_url if none exists) config.gem 'stringex' ... + # You can use Mime-Type to get the correct mime type from upload - flash garbles it.. (default is a UNIX call to "file --mime") + # needed for Windows OS + config.gem "mime-types", :lib => "mime/types" end === In your assetable model: # You can set a catch-all papermill association : @@ -114,21 +117,20 @@ @assetable.asset(:my_other_asset).try(:url) # equivalent to: @assetable.assets(:my_other_asset).first.try(:url) Also see http://github.com/bbenezech/papermill/raw/master/installation-template.txt -Have a look at the API here http://rdoc.info/projects/BBenezech/papermill +Have a look at the API here http://rdoc.info/projects/bbenezech/papermill === Translations: Papermill is fully I18n-able. Copy config/locales/papermill.yml to your root config/locale folder to modify any wording in a any locale. == Word of caution: -Beta. Wait for gem 1.0.0 for the production ready thing. -This is xNIX only (system("rm ...")). +Beta. Wait for gem 1.0.0 for the production ready thing. But since gem 0.12.2, things should go smoothly. Rails 2.3 Copyright (c) 2009 Benoit Bénézech, released under the MIT license \ No newline at end of file