doh, fix a few bad references to ActsAsAttachment [sixty4bit]

git-svn-id: http://svn.techno-weenie.net/projects/plugins/attachment_fu@2562 567b1171-46fb-0310-a4c9-b4bef9110e78
This commit is contained in:
technoweenie 2006-12-17 03:50:55 +00:00
Родитель 69abf9cd56
Коммит 650dda6044
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -65,13 +65,13 @@ module Technoweenie # :nodoc:
before_save :process_attachment
end
options[:content_type] = [options[:content_type]].flatten.collect { |t| t == :image ? Technoweenie::ActsAsAttachment.content_types : t }.flatten unless options[:content_type].nil?
options[:content_type] = [options[:content_type]].flatten.collect { |t| t == :image ? Technoweenie::AttachmentFu.content_types : t }.flatten unless options[:content_type].nil?
self.attachment_options = options
end
end
module ClassMethods
delegate :content_types, :to => Technoweenie::ActsAsAttachment
delegate :content_types, :to => Technoweenie::AttachmentFu
# Performs common validations for attachment models.
def validates_as_attachment