Autofix Rubocop remaining Layout rules (#23679)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: accounts
|
||||
@@ -539,6 +540,7 @@ class Account < ApplicationRecord
|
||||
|
||||
def ensure_keys!
|
||||
return unless local? && private_key.blank? && public_key.blank?
|
||||
|
||||
generate_keys
|
||||
save!
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user