Support tar.bz2 files

This commit is contained in:
Vladimir Sharshov 2011-11-02 23:07:04 +04:00
parent 18dae1e894
commit 2edf70074a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class Product < ActiveRecord::Base
belongs_to :platform belongs_to :platform
has_attached_file :tar 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 after_validation :merge_tar_errors