- (Dependency Update) Require
ecto ~> 2.1 or ~> 3.0
- (Dependency Update) Require
arc ~> 0.11.0
- (Dependency Update) Require
arc ~> 0.10.0
- (Dependency Update) Require
arc ~> 0.9.0
- (Enhancement) Use
NaiveDateTime
instead ofEcto.DateTime
. - (Dependency Update) Require
ecto ~> 2.1
- (Enhancement) Add
delete
override to the ArcEcto module. - (Dependency Update) Require
arc ~> 0.8.0
- (Dependency Update) Require
arc ~> 0.7.0
- (Dependency Update) Require
arc ~> 0.6.0
- (Behavior Change) Only allow casting a
%Plug.Upload{}
by default. If you would like to cast local paths (take caution), you may pass inallow_paths: true
. Note: This should be used with caution, as there are security implications with uploading local paths from a user-submitted form.
Example:
params = "/path/to/my/file.png"
cast_attachments(%User{}, params, ~w(avatar), allow_paths: true)
- (Bugfix) Set column to
nil
when casting anil
avatar
- Relax Ecto dependency to
~> 2.0
- (Bugfix) Don't add version timestamp to signed urls
- (Enhancement) Allow database columns to be loaded without a timestamp. Useful for migrations from other image upload systems or formats.
- (Enhancement) Upgrade to Ecto 2.0rc-3
Upgrade instructions from 0.3.x to 0.4.x:
- ArcEcto follows Ecto in the renaming of
Model
toSchema
. In your definitions, wherever you haduse Arc.Ecto.Model
, replace withuse Arc.Ecto.Schema
- ArcEcto follows Ecto in the usage of a singular
params
hash tocast_attachments
rather than a set ofoptional
andrequired
params. ArcEcto encourages the usage of acast_attachments
call followed by avalidate_required
.
- (Bugfix) Relax Arc dependency to ~> 0.2 to support 0.3.0
- (Bugfix) Allow params objects with atom keys.
- (Dependency Update) Require v0.2.0 of arc.
- (Behavior Change)
arc_ecto
will now apply all%Ecto.Changeset{}
changes withincast_attachments
to the root model prior to passing the model toarc
as a scope.
- (Bugfix) Support the
:empty
value for given params
- Relax
ecto
dependency to>= 0.10.0
to support Ecto v1.0.0