Method: Paperclip::Style#processor_options
- Defined in:
- lib/paperclip/style.rb
#processor_options ⇒ Object
Supplies the hash of options that processors expect to receive as their second argument Arguments other than the standard geometry, format etc are just passed through from initialization and any procs are called here, just before post-processing.
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/paperclip/style.rb', line 60 def args = {} @other_args.each do |k,v| args[k] = v.respond_to?(:call) ? v.call() : v end [:processors, :geometry, :format, :whiny, :convert_options].each do |k| (arg = send(k)) && args[k] = arg end args end |