Method: WatchList::Secure.decrypt_if_possible

Defined in:
lib/watch_list/secure.rb

.decrypt_if_possible(value) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/watch_list/secure.rb', line 61

def decrypt_if_possible(value)
  if git_encryptable? and encrypted_value?(value)
    git_decrypt(value)
  else
    value
  end
end