Skip to content

Instantly share code, notes, and snippets.

@alkuzad
Created September 29, 2015 15:16
Show Gist options
  • Select an option

  • Save alkuzad/54ee23780c436e57f116 to your computer and use it in GitHub Desktop.

Select an option

Save alkuzad/54ee23780c436e57f116 to your computer and use it in GitHub Desktop.
Hack DelayedJob attr_accessible
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