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:
Родитель
69abf9cd56
Коммит
650dda6044
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче