Created
September 29, 2015 15:16
-
-
Save alkuzad/54ee23780c436e57f116 to your computer and use it in GitHub Desktop.
Hack DelayedJob attr_accessible
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
| module Delayed | |
| module Backend | |
| module ActiveRecord | |
| class Job | |
| def mass_assignment_authorizer_with_logging | |
| mass_assignment_authorizer_without_logging + [:logging_args] | |
| end | |
| alias_method_chain :mass_assignment_authorizer, :logging | |
| end | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment