diff options
author | elijah <elijah@riseup.net> | 2014-10-28 23:42:29 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-10-28 23:42:29 -0700 |
commit | ead1110d69470c191447e4420b3751a035357b06 (patch) | |
tree | 1cbfbfdecd3c75ae807acad75ada711d51c97a21 /vendor | |
parent | de1cd23905852cbdfdc39249ffa871c6ab0f22f0 (diff) |
make certificate authority only load the parts of activemodel it needs, so that all of activesupport doesn't get loaded.
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/certificate_authority/lib/certificate_authority.rb | 6 | ||||
-rw-r--r-- | vendor/certificate_authority/lib/certificate_authority/serial_number.rb | 2 |
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 |