lib/active_object/kernel.rb in active_object-5.1.0 vs lib/active_object/kernel.rb in active_object-5.1.1
- old
+ new
@@ -3,11 +3,13 @@
if ActiveObject.configuration.autoload_kernel
module Kernel
private
+ # rubocop:disable Style/PerlBackrefs
def caller_name
- caller[0] =~ /`([^']*)'/ and $1
+ caller(1..1).first =~ /`([^']*)'/ && $1
end
+ # rubocop:enable Style/PerlBackrefs
end
end