lib/paperclip.rb in paperclip-4.3.6 vs lib/paperclip.rb in paperclip-4.3.7
- old
+ new
@@ -54,10 +54,11 @@
require 'paperclip/helpers'
require 'paperclip/has_attached_file'
require 'paperclip/attachment_registry'
require 'paperclip/filename_cleaner'
require 'paperclip/rails_environment'
+require "paperclip/deprecations"
begin
# Use mime/types/columnar if available, for reduced memory usage
require "mime/types/columnar"
rescue LoadError
@@ -189,9 +190,10 @@
# def default_url_by_gender
# "/assets/avatars/default_#{gender}.png"
# end
# end
def has_attached_file(name, options = {})
+ Paperclip::Deprecations.check
HasAttachedFile.define_on(self, name, options)
end
end
end