Skip to content

Commit

Permalink
Move Vote and RankedAnswer into Flick.RankedVoting space.
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn committed Jul 25, 2024
1 parent a0df048 commit d79d09c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions lib/flick/votes/vote.ex → lib/flick/ranked_voting/vote.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Flick.Votes.Vote do
defmodule Flick.RankedVoting.Vote do
@moduledoc """
A response to a `Flick.RankedVoting.Ballot`. A vote contains a collection of ranked
answers for a ballot question.
Expand All @@ -15,7 +15,7 @@ defmodule Flick.Votes.Vote do
@type id :: Ecto.UUID.t()

@typedoc """
A type for a persisted `Flick.Votes.Vote` entity.
A type for a persisted `Flick.RankedVoting.Vote` entity.
"""
@type t :: %__MODULE__{
id: id(),
Expand Down
6 changes: 3 additions & 3 deletions lib/flick/votes.ex
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
defmodule Flick.Votes do
@moduledoc """
Provides functions related to capturing `Flick.Votes.Vote` entities related to
Provides functions related to capturing `Flick.RankedVoting.Vote` entities related to
a specific `Flick.RankedVoting.Ballot`.
"""

alias Flick.RankedVoting.Ballot
alias Flick.Repo
alias Flick.Votes.Vote
alias Flick.RankedVoting.Vote

@typep changeset :: Ecto.Changeset.t(Vote.t())

Expand All @@ -23,7 +23,7 @@ defmodule Flick.Votes do
end

@doc """
Returns an `Ecto.Changeset` representing changes to a `Flick.Votes.Vote`
Returns an `Ecto.Changeset` representing changes to a `Flick.RankedVoting.Vote`
entity.
## Options
Expand Down
2 changes: 1 addition & 1 deletion lib/flick_web/live/vote/vote_capture_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defmodule FlickWeb.Vote.VoteCaptureLive do
alias Flick.RankedVoting
alias Flick.RankedVoting.Ballot
alias Flick.Votes
alias Flick.Votes.Vote
alias Flick.RankedVoting.Vote
alias Phoenix.LiveView.Socket

@impl Phoenix.LiveView
Expand Down
2 changes: 1 addition & 1 deletion test/flick/votes_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Flick.VotesTest do
use Flick.DataCase, async: true

alias Flick.Votes
alias Flick.Votes.Vote
alias Flick.RankedVoting.Vote
alias Flick.Votes.RankedAnswer
alias Flick.RankedVoting

Expand Down

0 comments on commit d79d09c

Please sign in to comment.