lib/sequel/extensions/meta_def.rb in sequel-4.47.0 vs lib/sequel/extensions/meta_def.rb in sequel-4.48.0
- old
+ new
@@ -7,9 +7,11 @@
#
# Sequel.extension :meta_def
#
# Related module: Sequel::Metaprogramming
+Sequel::Deprecation.deprecate("The meta_def extension", "Replace meta_def usage with define_singleton_method")
+
#
module Sequel
# Contains meta_def method for adding methods to objects via blocks.
# Only recommended for backwards compatibility with existing code.
module Metaprogramming