lib/active_object/kernel.rb in active_object-5.2.4 vs lib/active_object/kernel.rb in active_object-5.2.5

- old
+ new

@@ -1,9 +1,15 @@ # frozen_string_literal: true if ActiveObject.configuration.autoload_kernel module Kernel + def try_eval + eval(self) + rescue NameError, SyntaxError + self + end + private # rubocop:disable Style/PerlBackrefs def caller_name caller(1..1).first =~ /`([^']*)'/ && $1