Skip to content

Instantly share code, notes, and snippets.

@dchandekstark
Last active March 10, 2016 00:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dchandekstark/22d72c265ee4f5667faa to your computer and use it in GitHub Desktop.
Save dchandekstark/22d72c265ee4f5667faa to your computer and use it in GitHub Desktop.
Unconcerned
ActiveSupport::Concern.module_eval do
WARNINGS = [
"Are you sure you want to this?",
"Come on, now, really?",
"Time to refactor?",
"Read http://blog.coreyhaines.com/2012/12/why-i-dont-use-activesupportconcern.html ?",
"Please don't do this without a good reason.",
"No, chunking your mega-class is not a good reason.",
"What objects are you trying to hide?",
"How are those tests going?"
]
def self.extended(mod)
warn WARNINGS.sample
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment