summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vendor/certificate_authority/lib/certificate_authority.rb6
-rw-r--r--vendor/certificate_authority/lib/certificate_authority/serial_number.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/vendor/certificate_authority/lib/certificate_authority.rb b/vendor/certificate_authority/lib/certificate_authority.rb
index a697c1b..33def35 100644
--- a/vendor/certificate_authority/lib/certificate_authority.rb
+++ b/vendor/certificate_authority/lib/certificate_authority.rb
@@ -2,7 +2,11 @@ $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) ||
#Exterior requirements
require 'openssl'
-require 'active_model'
+require 'active_model/callbacks'
+require 'active_model/naming'
+require 'active_model/translation'
+require 'active_model/validations'
+require 'active_model/serialization'
#Internal modules
require 'certificate_authority/signing_entity'
diff --git a/vendor/certificate_authority/lib/certificate_authority/serial_number.rb b/vendor/certificate_authority/lib/certificate_authority/serial_number.rb
index 143c144..b9a43cc 100644
--- a/vendor/certificate_authority/lib/certificate_authority/serial_number.rb
+++ b/vendor/certificate_authority/lib/certificate_authority/serial_number.rb
@@ -1,3 +1,5 @@
+require 'securerandom'
+
module CertificateAuthority
class SerialNumber
include ActiveModel::Validations