-
-
Save hannesfostie/8a2021daefab38dbe2a1 to your computer and use it in GitHub Desktop.
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
module ChangeLogger | |
extend ActiveSupport::Concern | |
included do | |
extend ClassMethods | |
log_changes | |
end | |
module ClassMethods | |
def log_changes | |
# define after[create|update|destroy] callbacks here | |
# result is a fairly expensive method to log changes to Logstash | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment