lib/crypt_keeper/provider/postgres_pgp_public_key.rb
# Public: Attempts to extract a PGP key id. If it's successful, it returns true
#
# Returns boolean
Attempts to extract a PGP key id. If it's successful, it returns true
Returns boolean
Attempts to extract a PGP key id . If it ' s successful it returns true Returns boolean
def encrypted?(value)
        begin
          ActiveRecord::Base.transaction(requires_new: true) do
            escape_and_execute_sql(["SELECT pgp_key_id(?)", value.to_s])['pgp_key_id'].present?
          end
        rescue ActiveRecord::StatementInvalid
          false
        end
      end
def encrypted? ( value ) begin ActiveRecord :: Base . transaction ( requires_new : true ) do escape_and_execute_sql ( [ "SELECT pgp_key_id(?)" , value . to_s ] ) [ 'pgp_key_id' ] . present? end rescue ActiveRecord :: StatementInvalid false end end
Public: Attempts to extract a PGP key id.
Public : Attempts to extract a PGP key id .
value
<not_specific>