-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Ecto 3.0 warnings #103
Conversation
@@ -18,7 +18,7 @@ defmodule Arc.Ecto.Schema do | |||
end | |||
|
|||
# Cast supports both atom and string keys, ensure we're matching on both. | |||
allowed = Enum.map(allowed, fn key -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this reassigned the keys passed in from cast_attachment()
which are atoms.
I opened an issue at arc repository about the error logs. Do you think this PR will solve it too? By the way, thanks for the amazing job! |
@williamweckl if you mean that while running your app tests, it throws |
Any chance this gets merged soon? Has the project been abandoned? |
Fix Ecto 3.0 warnings Conflicts: mix.exs test/schema_test.exs
Fixes #102. Related #98 #99 #101. Same work is done in #101 and #99, except this PR doesn't bump the ecto requirement or use the formatter.
I didn't find it necessary to update the project's Ecto requirement. This should continue to work fine with Ecto 2.x, as well as silence the errors emitted with Ecto 3.x. I've tested this locally.
Sidenotes: