method

cant_modify_encrypted_attributes_when_frozen

cant_modify_encrypted_attributes_when_frozen()
private

No documentation available.

# File activerecord/lib/active_record/encryption/encryptable_record.rb, line 223
        def cant_modify_encrypted_attributes_when_frozen
          self.class&.encrypted_attributes.each do |attribute|
            errors.add(attribute.to_sym, "can't be modified because it is encrypted") if changed_attributes.include?(attribute)
          end
        end