require 'active_record/base' class ActiveRecord::Base def log_protected_attribute_removal_with_hermes(*attributes) log_protected_attribute_removal_without_hermes(*attributes) Hermes.notify "Can't mass-assign #{self.class.name} protected attributes: #{attributes.to_sentence}." end alias_method_chain :log_protected_attribute_removal, :hermes end