Created
September 28, 2021 18:54
-
-
Save dchapman1988/a612dbb620a54a09ac19b910f9fef731 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# config/initializers/warning_duck_punch.rb | |
module Warning | |
def self.warn(warning) | |
filename = "warnings.txt" | |
File.open(filename, 'a') { |f| | |
f << "#{warning}" | |
f << "=======================================\n" | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment