Support tar.bz2 files
This commit is contained in:
parent
18dae1e894
commit
2edf70074a
|
@ -12,7 +12,7 @@ class Product < ActiveRecord::Base
|
|||
belongs_to :platform
|
||||
|
||||
has_attached_file :tar
|
||||
validates_attachment_content_type :tar, :content_type => ["application/gnutar", "application/x-compressed", "application/x-gzip"], :message => I18n.t('layout.products.invalid_content_type')
|
||||
validates_attachment_content_type :tar, :content_type => ["application/gnutar", "application/x-compressed", "application/x-gzip", "application/x-bzip2"], :message => I18n.t('layout.products.invalid_content_type')
|
||||
|
||||
after_validation :merge_tar_errors
|
||||
|
||||
|
|
Loading…
Reference in New Issue