attributes do
...
attribute :encrypted_phone_number, Marketplace.Types.EncryptedString do
allow_nil? false
private? true
end
end
calculations do
calculate :phone_number, :string, {Marketplace.Calculations.Decrypt, field: :encrypted_phone_number}
end
attributes do
...
attribute :encrypted_phone_number, Marketplace.Types.EncryptedString do
allow_nil? false
private? true
end
end
calculations do
calculate :phone_number, :string, {Marketplace.Calculations.Decrypt, field: :encrypted_phone_number}
end