lib/railroader/checks/check_unsafe_reflection.rb in railroader-4.3.5 vs lib/railroader/checks/check_unsafe_reflection.rb in railroader-4.3.7
- old
+ new
@@ -18,10 +18,10 @@
end
def check_unsafe_reflection result
return unless original? result
- call = result[:call]
+ call = result[:call]
method = call.method
case method
when :constantize, :safe_constantize
arg = call.target