frozen?()
Returns true if the attributes hash has been frozen.
# File activerecord/lib/active_record/core.rb, line 465 def frozen? sync_with_transaction_state if @transaction_state&.finalized? @attributes.frozen? end