Skip to content

Instantly share code, notes, and snippets.

@jmmastey
Created March 26, 2019 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmmastey/f54d22e68db2bd386876cb7b5c4d2b72 to your computer and use it in GitHub Desktop.
Save jmmastey/f54d22e68db2bd386876cb7b5c4d2b72 to your computer and use it in GitHub Desktop.
codebase upgrades
if Gem::Version.new(Rails.version) >= Gem::Version.new("5.0")
raise "Remove this file! You don't need it anymore"
end
class ActiveJob::Base
def self.deserialize(job_data)
# monkey patch goes here
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment