Commit ba186314 by Daniel Vartanov

Paperclip::Style. Much more efficient initialization in case of string definition.

parent 7f523e35
......@@ -19,6 +19,10 @@ module Paperclip
@format = definition.delete(:format)
@processors = definition.delete(:processors)
@other_args = definition
elsif definition.is_a? String
@geometry = definition
@format = nil
@other_args = {}
else
@geometry, @format = [definition, nil].flatten[0..1]
@other_args = {}
......
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