/usr/lib/ruby/vendor_ruby/protected_attributes/railtie.rb is in ruby-protected-attributes 1.1.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | module ProtectedAttributes
class Railtie < ::Rails::Railtie
initializer "protected_attributes.active_record", :before => "active_record.set_configs" do |app|
if app.config.respond_to?(:active_record) && app.config.active_record.delete(:whitelist_attributes)
ActiveSupport::Deprecation.warn "config.active_record.whitelist_attributes is deprecated and have no effect. Remove its call from the configuration."
end
end
end
end
|