diff --git a/app/models/key.rb b/app/models/key.rb new file mode 100644 index 0000000..f4aa39c --- /dev/null +++ b/app/models/key.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +class Key < ApplicationRecord + self.abstract_class = true +end diff --git a/app/models/rsa_key.rb b/app/models/rsa_key.rb index b2d8a3e..4ee7b1e 100644 --- a/app/models/rsa_key.rb +++ b/app/models/rsa_key.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class RSAKey < ApplicationRecord +class RSAKey < Key PRIVATE_KEY_CLEAR_DELAY = 12.hours.freeze attr_accessor :private_key_pem, :private_key_pem_secret diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb new file mode 100644 index 0000000..bff87e0 --- /dev/null +++ b/spec/models/key_spec.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe Key do + pending "add some examples to (or delete) #{__FILE__}" +end