1 2 3 4 5 6 7 8
require 'active_support/deprecation' class String def encoding_aware? ActiveSupport::Deprecation.warn 'String#encoding_aware? is deprecated' true end end