Last active
May 21, 2019 09:23
-
-
Save annikoff/428ed6001a03e6772a0fde65422df554 to your computer and use it in GitHub Desktop.
Redmine IssuePatch
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
# 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