LazyInteger
Ecto type to cast floats or strings to integers for your schemas.
Installation
Available in Hex, the package can be installed as:
-
Add
lazy_integerto your list of dependencies inmix.exs:
```elixir
def deps do
[{:lazy_integer, "~> 0.1.0"}]
end
```-
Ensure
lazy_integeris started before your application:
```elixir
def application do
[applications: [:lazy_integer]]
end
```