Add tar.bz2 support
This commit is contained in:
parent
2edf70074a
commit
948bd0f92d
|
@ -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", "application/x-bzip2"], :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", "application/x-tar"], :message => I18n.t('layout.products.invalid_content_type')
|
||||
|
||||
after_validation :merge_tar_errors
|
||||
|
||||
|
|
Loading…
Reference in New Issue