Guest User

Untitled

a guest
Jul 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. module Paperclip
  2.  
  3. class MyProcessor < Processor
  4.  
  5.  
  6. def initialize(file, options, attachment)
  7. super
  8. @my_file = file
  9. @instance = options[:instance]
  10. @options = options
  11. @current_format = File.extname(@file.path)
  12. @basename = File.basename(@file.path, @current_format)
  13. end
  14.  
  15. def make
  16.  
  17. puts "called make ----------------"
  18.  
  19. @my_file
  20. end
  21. end
Add Comment
Please, Sign In to add comment