From 54fbc88e594651c6ac1e75898251d06a457aa023 Mon Sep 17 00:00:00 2001 From: Maximiliaan Strother III Date: Mon, 25 Feb 2019 08:16:08 +0100 Subject: [PATCH] Update README.md Reflect on changes from last changes made with PR #5 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 009b787..73e0041 100644 --- a/README.md +++ b/README.md @@ -51,14 +51,16 @@ end ### Add your attachment to your Ecto Schema -Add a using statement `use Arc.Ecto.Schema` to the top of your ecto schema, and specify the type of the column in your schema as `MyApp.Avatar.Type`. +Add an import statement `import Arc.Ecto.Changeset` to the top of your ecto schema, and specify the type of the column in your schema as `MyApp.Avatar.Type`. Attachments can subsequently be passed to Arc's storage though a Changeset `cast_attachments/3` function, following the syntax of `cast/3` ```elixir defmodule MyApp.User do - use MyApp.Web, :model - use Arc.Ecto.Schema + use Ecto.Schema + + import Ecto.Changeset + import Arc.Ecto.Changeset schema "users" do field :name, :string