Module: CarrierWave::Utilities::Deprecation

Defined in:
lib/carrierwave/utilities/deprecation.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) new(version = '0.11.0', message = 'Carrierwave')



8
9
10
11
12
13
14
# File 'lib/carrierwave/utilities/deprecation.rb', line 8

def self.new version = '0.11.0', message = 'Carrierwave'
  if ActiveSupport::VERSION::MAJOR < 4
    ActiveSupport::Deprecation.warn("#{message} (will be removed from version #{version})")
  else
    ActiveSupport::Deprecation.new(version, message)
  end
end