app/models/ecm/downloads/download.rb in ecm_downloads-0.0.10.pre vs app/models/ecm/downloads/download.rb in ecm_downloads-0.0.11.pre
- old
+ new
@@ -60,10 +60,10 @@
# friendly id
extend FriendlyId
friendly_id :name, :use => :slugged
# paperclip
- has_attached_file :asset
+ has_attached_file :asset, Ecm::Downloads::Configuration.paperclip_options
# validations
validates :ecm_downloads_download_category, :presence => true
validates :name, :presence => true
validates_attachment_presence :asset