Skip to content

Instantly share code, notes, and snippets.

@annikoff
Last active May 21, 2019 09:23
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 annikoff/428ed6001a03e6772a0fde65422df554 to your computer and use it in GitHub Desktop.
Save annikoff/428ed6001a03e6772a0fde65422df554 to your computer and use it in GitHub Desktop.
Redmine IssuePatch
# Put this file into app/models/concerns
module IssuePatch
extend ActiveSupport::Concern
included do
before_validation :do_some_work
end
def do_some_work
# Your code here
end
end
Issue.include IssuePatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment