-
Notifications
You must be signed in to change notification settings - Fork 182
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
Update phoenix to 1.5.x #460
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ defmodule RetWeb.ChannelCase do | |
using do | ||
quote do | ||
# Import conveniences for testing with channels | ||
use Phoenix.ChannelTest | ||
import Phoenix.ChannelTest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The upgrade guide says to replace
Do we need to import Conn as well? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think so -- the note for
|
||
|
||
# The default endpoint for testing | ||
@endpoint RetWeb.Endpoint | ||
|
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.
I see this is called out specifically to check in the TODOs but I don't see any mention of this in the upgrade notes. Whats this change do?
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 change makes it so that
Phoenix.Controller.view_module/1
is not automatically accessible from all the views (modules withuse RetWeb, :view
).First I made the changes as per this line source:
Then I noticed that
view_module
was never used anywhere else in the project. I figured it was safe (and maybe desirable) for us to remove it, but I don't feel strongly about it.