Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix gif thumbnails for ImageScience when attachment_options[:processo…

…r] is set searching for a installed processor.
  • Loading branch information...
commit 7bcd58b8ad58777ede8ffe34e04b280da06d566e 1 parent 1a74c25
Sergio authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/technoweenie/attachment_fu.rb
4 lib/technoweenie/attachment_fu.rb
View
@@ -112,8 +112,8 @@ def has_attachment(options = {})
processors = Technoweenie::AttachmentFu.default_processors.dup
begin
if processors.any?
- attachment_options[:processor] = "#{processors.first}Processor"
- processor_mod = Technoweenie::AttachmentFu::Processors.const_get(attachment_options[:processor])
+ attachment_options[:processor] = processors.first
+ processor_mod = Technoweenie::AttachmentFu::Processors.const_get("#{attachment_options[:processor].to_s.classify}Processor")
include processor_mod unless included_modules.include?(processor_mod)
end
rescue Object, Exception
Please sign in to comment.
Something went wrong with that request. Please try again.