Skip to content

Instantly share code, notes, and snippets.

Craig Buchek booch

Block or report user

Report or block booch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

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