Class: Paperclip::Style

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_crop/paperclip_patches/style.rb

Instance Method Summary collapse

Instance Method Details

#processor_optionsObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/simple_crop/paperclip_patches/style.rb', line 3

def processor_options
  args = {}
  @other_args.each do |k,v|
    args[k] = v.respond_to?(:call) ? v.call(attachment) : v
  end
  [:processors, :geometry, :format, :whiny, :convert_options, :name].each do |k|
    (arg = send(k)) && args[k] = arg
  end
  args
end