module BlsmVdCore::EncryptedId
Constants
- CIPHER_IV
- CIPHER_NAME
Public Instance Methods
reload(options = nil)
click to toggle source
Calls superclass method
# File lib/blsm-vd-core/model/encrypted_id.rb, line 78 def reload(options = nil) options = (options || {}).merge(:no_encrypted_id => true) super(options) end
to_key()
click to toggle source
# File lib/blsm-vd-core/model/encrypted_id.rb, line 70 def to_key key = self.id or nil if key key = [self.class.encrypt(self.class.encrypted_id_key, self.id)] end key end
to_param()
click to toggle source
# File lib/blsm-vd-core/model/encrypted_id.rb, line 66 def to_param self.class.encrypt(self.class.encrypted_id_key, self.id) end