Skip to content

Instantly share code, notes, and snippets.

Avatar

Craig Buchek booch

View GitHub Profile
View pluralized_consts.rb
module PluralizedConsts
P = self
def const_missing(sym)
return super(sym) if Thread.current[:pc_const_missed]
begin
super(sym)
rescue NameError => e
begin
Thread.current[:pc_const_missed] = true
You can’t perform that action at this time.