You can customize what you want when bulk assignment happens by setting Player.mass_assignment_sanitizer (or set it to ActiveRecord::Base so that it applies to all AR models)
You can also install it in your configuration files via config.active_record.mass_assignment_sanitizer
In our field, you can set it as :logger , which simply logs when these events occur, or :strict , which throws exceptions. You can also provide your own disinfectant. The current application template installs it strictly, although it is not.
source share