Commit 93753d5c by Lewisou Committed by Jon Yurek

add Proc support to style rule own processors

parent 5b44407a
......@@ -32,7 +32,7 @@ module Paperclip
# by default we behave as before, though.
# if a proc has been supplied, we call it here
def processors
@processors || attachment.processors
@processors.respond_to?(:call) ? @processors.call(attachment.instance) : (@processors || attachment.processors)
end
# retrieves from the attachment the whiny setting
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment