From 4b06427cf471572ea7e84480fec67db08778b601 Mon Sep 17 00:00:00 2001 From: Daniel Colson Date: Fri, 19 Jun 2020 10:26:11 -0400 Subject: [PATCH] Revert "Remove redundant const_missing class method." This reverts commit df5471078ce1fd45f094ad77c892ee9657d13c92. --- lib/factory_bot/decorator.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/factory_bot/decorator.rb b/lib/factory_bot/decorator.rb index e675b8c..0658d9f 100644 --- a/lib/factory_bot/decorator.rb +++ b/lib/factory_bot/decorator.rb @@ -17,5 +17,9 @@ module FactoryBot def send(symbol, *args, &block) __send__(symbol, *args, &block) end + + def self.const_missing(name) + ::Object.const_get(name) + end end end