Module: CarrierWave::Utilities::Deprecation

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

Class Method Summary collapse

Class Method Details

.new(version = '0.11.0', message = 'Carrierwave') ⇒ Object



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