Created
May 20, 2013 17:52
-
-
Save davidfrey/5613946 to your computer and use it in GitHub Desktop.
Monkey patching an auto-loaded module.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /lib/fix_me.rb | |
module FixMe | |
def self.status | |
'broken' | |
end | |
end | |
# /config/environments/development.rb | |
module FixMe | |
def self.status | |
'fixed' | |
end | |
end | |
# FixMe.status always returns 'broken'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment