lib/qa.rb in qa-4.0.0 vs lib/qa.rb in qa-4.1.0
- old
+ new
@@ -22,9 +22,15 @@
yield @config if block
@config
end
+ def self.deprecation_warning(in_msg: nil, msg:)
+ return if Rails.env == 'test'
+ in_msg = in_msg.present? ? "In #{in_msg}, " : ''
+ warn "[DEPRECATED] #{in_msg}#{msg} It will be removed in the next major release."
+ end
+
# Raised when the configuration directory for local authorities doesn't exist
class ConfigDirectoryNotFound < StandardError; end
# Raised when a subauthority is not passed into an authority
class MissingSubAuthority < ArgumentError; end