Module: EncryptedId::InstanceMethods

Defined in:
lib/encrypted_id.rb

Instance Method Summary collapse

Instance Method Details

#reload(options = nil) ⇒ Object



60
61
62
63
# File 'lib/encrypted_id.rb', line 60

def reload(options = nil)
  options = (options || {}).merge(:no_encrypted_id => true)
  super(options)
end

#to_paramObject



56
57
58
# File 'lib/encrypted_id.rb', line 56

def to_param
  EncryptedId.encrypt(self.class.encrypted_id_key, self.id)
end