Sha256: 2ff6149f249a5ba603c77ea5b9275f306e826fe94c7589baf93aa19895d1c807

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hermes-0.1.0 lib/hermes/hooks/attr_protected.rb