We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 082f269 + 0a9dcb0 commit c003ed7Copy full SHA for c003ed7
.rubocop.yml
@@ -272,6 +272,9 @@ Lint/InterpolationCheck:
272
Exclude:
273
- '**/test/**/*'
274
275
+Lint/SafeNavigationChain:
276
+ Enabled: true
277
+
278
Style/EvalWithLocation:
279
Enabled: true
280
activerecord/lib/active_record/encryption/encryptable_record.rb
@@ -221,7 +221,7 @@ def build_decrypt_attribute_assignments
221
end
222
223
def cant_modify_encrypted_attributes_when_frozen
224
- self.class&.encrypted_attributes.each do |attribute|
+ self.class.encrypted_attributes.each do |attribute|
225
errors.add(attribute.to_sym, "can't be modified because it is encrypted") if changed_attributes.include?(attribute)
226
227
0 commit comments