lib/paperclip-globalize3.rb in paperclip-globalize3-0.1.0 vs lib/paperclip-globalize3.rb in paperclip-globalize3-1.0.0
- old
+ new
@@ -4,6 +4,10 @@
require "globalize"
require "paperclip"
Paperclip.interpolates(:locale) { |_, _| Globalize.locale.to_s }
+unless Paperclip::Attachment.instance_methods.include?(:only_process)
+ Paperclip::Attachment.send(:include, Paperclip::Globalize3::Attachment::Compatibility::Paperclip33)
+end
+
Paperclip::Attachment.send(:include, Paperclip::Globalize3::Attachment)