Skip to content

Commit 4fa5681

Browse files
committed
fix newlines
New lines for these were off, only the new options were put on a new line so the code looked awkward. I'd rather just oneline it.
1 parent 71e14aa commit 4fa5681

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

activerecord/lib/active_record/encryption/encryptable_record.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,11 @@ module EncryptableRecord
4646
# * <tt>:previous</tt> - List of previous encryption schemes. When provided, they will be used in order when trying to read
4747
# the attribute. Each entry of the list can contain the properties supported by #encrypts. Also, when deterministic
4848
# encryption is used, they will be used to generate additional ciphertexts to check in the queries.
49-
def encrypts(*names, key_provider: nil, key: nil, deterministic: false, support_unencrypted_data: nil, downcase: false, ignore_case: false, previous: [],
50-
compress: true, compressor: nil, **context_properties)
49+
def encrypts(*names, key_provider: nil, key: nil, deterministic: false, support_unencrypted_data: nil, downcase: false, ignore_case: false, previous: [], compress: true, compressor: nil, **context_properties)
5150
self.encrypted_attributes ||= Set.new # not using :default because the instance would be shared across classes
5251

5352
names.each do |name|
54-
encrypt_attribute name, key_provider: key_provider, key: key, deterministic: deterministic, support_unencrypted_data: support_unencrypted_data, downcase: downcase, ignore_case: ignore_case, previous: previous,
55-
compress: compress, compressor: compressor, **context_properties
53+
encrypt_attribute name, key_provider: key_provider, key: key, deterministic: deterministic, support_unencrypted_data: support_unencrypted_data, downcase: downcase, ignore_case: ignore_case, previous: previous, compress: compress, compressor: compressor, **context_properties
5654
end
5755
end
5856

@@ -83,8 +81,7 @@ def global_previous_schemes_for(scheme)
8381
end
8482
end
8583

86-
def encrypt_attribute(name, key_provider: nil, key: nil, deterministic: false, support_unencrypted_data: nil, downcase: false, ignore_case: false, previous: [],
87-
compress: true, compressor: nil, **context_properties)
84+
def encrypt_attribute(name, key_provider: nil, key: nil, deterministic: false, support_unencrypted_data: nil, downcase: false, ignore_case: false, previous: [], compress: true, compressor: nil, **context_properties)
8885
encrypted_attributes << name.to_sym
8986

9087
decorate_attributes([name]) do |name, cast_type|

0 commit comments

Comments
 (0)