lib/has-attached.rb in has-attached-0.1.6 vs lib/has-attached.rb in has-attached-0.1.7

- old
+ new

@@ -39,9 +39,10 @@ options[:styles] = @all_styles.fetch(self.name.underscore, {}).fetch(name.to_s, {}).symbolize_keys if Rails.env.production? && Rails.application.config.respond_to?(:upload_attachments_to_s3) && Rails.application.config.upload_attachments_to_s3 options[:storage] = 's3' options[:s3_credentials] = Rails.root.join("config", "s3.yml") + options[:path] ||= "/attachments/:class/:id/:attachment/:style/:basename.:extension" else options[:storage] = 'filesystem' end has_attached_file(name, options)