Locon
09/14/2021, 6:47 PM2.6.6 (console)[3] » Spree::Product::SEARCHER_STRING_LIMIT
NameError: uninitialized constant Spree::Product::SEARCHER_STRING_LIMIT
am I missing something else?
Thanks.Jared Norman
Jared Norman
Jared Norman
class_eval is changes the current class and sets self to it, but doesn't affect the scope as far as constants are concernedLocon
09/14/2021, 7:07 PMclass_eval
Spree::Product.class_eval do
SEARCHER_STRING_LIMIT = 160
...
endJared Norman
Spree::Product::SEARCHER_STRING_LIMIT = 160Locon
09/14/2021, 7:42 PM