Skip to content

Commit

Permalink
deploy: 56d830a
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Oct 30, 2023
1 parent 64e694e commit 8f0ecb7
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .build
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ dist/merriweather-latin-ext-300-normal-K6L27CZ5.woff2
dist/merriweather-vietnamese-300-italic-EHHNZPUO.woff2
dist/merriweather-vietnamese-300-normal-U376L4Z4.woff2
dist/remixicon-NKANDIL5.woff2
dist/search_data-8AE95F7C.js
dist/search_data-8270DB27.js
dist/sidebar_items-ABFFF37D.js
expression_language.html
gatherers.html
Expand Down
6 changes: 3 additions & 3 deletions Wanda.DataCase.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ <h1 class="signature" translate="no">errors_on(changeset)</h1>

<section class="docstring">

<p>A helper that transforms changeset errors into a map of messages.</p><pre><code class="makeup elixir" translate="no"><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="6821919025-1">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">changeset</span><span class="p" data-group-id="6821919025-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Accounts</span><span class="o">.</span><span class="n">create_user</span><span class="p" data-group-id="6821919025-2">(</span><span class="p" data-group-id="6821919025-3">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;short&quot;</span><span class="p" data-group-id="6821919025-3">}</span><span class="p" data-group-id="6821919025-2">)</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="s">&quot;password is too short&quot;</span><span class="w"> </span><span class="ow">in</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="6821919025-4">(</span><span class="n">changeset</span><span class="p" data-group-id="6821919025-4">)</span><span class="o">.</span><span class="n">password</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="6821919025-5">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="6821919025-6">[</span><span class="s">&quot;password is too short&quot;</span><span class="p" data-group-id="6821919025-6">]</span><span class="p" data-group-id="6821919025-5">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="6821919025-7">(</span><span class="n">changeset</span><span class="p" data-group-id="6821919025-7">)</span></code></pre>
<p>A helper that transforms changeset errors into a map of messages.</p><pre><code class="makeup elixir" translate="no"><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="7644382405-1">{</span><span class="ss">:error</span><span class="p">,</span><span class="w"> </span><span class="n">changeset</span><span class="p" data-group-id="7644382405-1">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nc">Accounts</span><span class="o">.</span><span class="n">create_user</span><span class="p" data-group-id="7644382405-2">(</span><span class="p" data-group-id="7644382405-3">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="s">&quot;short&quot;</span><span class="p" data-group-id="7644382405-3">}</span><span class="p" data-group-id="7644382405-2">)</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="s">&quot;password is too short&quot;</span><span class="w"> </span><span class="ow">in</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="7644382405-4">(</span><span class="n">changeset</span><span class="p" data-group-id="7644382405-4">)</span><span class="o">.</span><span class="n">password</span><span class="w">
</span><span class="n">assert</span><span class="w"> </span><span class="p" data-group-id="7644382405-5">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7644382405-6">[</span><span class="s">&quot;password is too short&quot;</span><span class="p" data-group-id="7644382405-6">]</span><span class="p" data-group-id="7644382405-5">}</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">errors_on</span><span class="p" data-group-id="7644382405-7">(</span><span class="n">changeset</span><span class="p" data-group-id="7644382405-7">)</span></code></pre>
</section>
</section>
<section class="detail" id="setup_sandbox/1">
Expand Down
Binary file modified Wanda.epub
Binary file not shown.

Large diffs are not rendered by default.

Loading

0 comments on commit 8f0ecb7

Please sign in to comment.