Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Swap precedence of command_path and image_magick_path, add interpolat…

…ions sugar
  • Loading branch information...
commit ba91710a82b813d0b23c038817943f847f893272 1 parent bbd6d06
@jyurek jyurek authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/paperclip.rb
View
6 lib/paperclip.rb
@@ -71,10 +71,14 @@ def path_for_command command #:nodoc:
"will be removed. Use :command_path "+
"instead")
end
- path = [options[:image_magick_path] || options[:command_path], command].compact
+ path = [options[:command_path] || options[:image_magick_path], command].compact
File.join(*path)
end
+ def interpolates key, &block
+ Paperclip::Attachment.interpolations[key] = block
+ end
+
# The run method takes a command to execute and a string of parameters
# that get passed to it. The command is prefixed with the :command_path
# option from Paperclip.options. If you have many commands to run and
Please sign in to comment.
Something went wrong with that request. Please try again.