ActiveRecord::Base#write_attributes accepts an optional 2nd argument (defaults to true) to control whether mass assignment security is applied. Use case: We have documents created via hashes by our applications where we trust the input and then these documents are updated by users that we do not trust.
https://github.com/rails/rails/blob/v3.0.3/activerecord/lib/active_record/base.rb#L1531