View Source EctoEncryptedId (EctoEncryptedId v0.1.0)
Documentation for EctoEncryptedId
.
Summary
Functions
Helper function to delegate to Phoenix.Param implementations for Ecto schemas. Returns encrypted version of the id.
Helper function to delegate to Phoenix.Param implementations for Ecto schemas. Returns plain version of the id.
Functions
Helper function to delegate to Phoenix.Param implementations for Ecto schemas. Returns encrypted version of the id.
Example
In your schema module:
defimpl Phoenix.Param, for: __MODULE__ do
defdelegate to_param(term), to: EctoEncryptedId, as: :encrypted_param
end
Helper function to delegate to Phoenix.Param implementations for Ecto schemas. Returns plain version of the id.
Example
In your schema module:
defimpl Phoenix.Param, for: __MODULE__ do
defdelegate to_param(term), to: EctoEncryptedId, as: :plain_param
end