Created
March 12, 2016 07:32
-
-
Save d4rky-pl/a171b36c6bcfbbb55de4 to your computer and use it in GitHub Desktop.
Actual code found in legacy project
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
def self.extend_printouts_constants | |
const = 'PRINTOUT_PROCESS_STATES' | |
if ProductPrintingSupport.const_defined?(const) | |
old = ProductPrintingSupport.const_get(const) | |
ProductPrintingSupport.send(:remove_const, const) | |
ProductPrintingSupport.const_set(const, old + [:job_ganging_printout_in_progress]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment