Skip to content

Commit

Permalink
Fix the function order in the specifics/ecto lesson (elixirschool#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
nscyclone authored and doomspork committed Nov 30, 2016
1 parent 320cc6b commit 538d9e8
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions cn/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions es/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions gr/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions id/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions jp/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions ko/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions pl/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions pt/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions ru/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down
4 changes: 2 additions & 2 deletions vi/lessons/specifics/ecto.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ defmodule ExampleApp.User do
defp validate_password_confirmation(changeset) do
case get_change(changeset, :password_confirmation) do
nil ->
password_mismatch_error(changeset)
password_incorrect_error(changeset)
confirmation ->
password = get_field(changeset, :password)
if confirmation == password, do: changeset, else: password_incorrect_error(changeset)
if confirmation == password, do: changeset, else: password_mismatch_error(changeset)
end
end

Expand Down

0 comments on commit 538d9e8

Please sign in to comment.