Add tar.bz2 support

This commit is contained in:
Vladimir Sharshov 2011-11-02 23:20:47 +04:00
parent 2edf70074a
commit 948bd0f92d
1 changed files with 1 additions and 1 deletions

View File

@ -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