app/uploaders/hero_image_uploader.rb in lines-engine-1.2.3 vs app/uploaders/hero_image_uploader.rb in lines-engine-1.2.5

- old
+ new

@@ -7,10 +7,10 @@ # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility: # include Sprockets::Helpers::RailsHelper # include Sprockets::Helpers::IsolatedHelper # Choose what kind of storage to use for this uploader: - storage :file + storage CONFIG[:storage].to_sym # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to be mounted: def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"