Skip to content

Commit

Permalink
deploy: 937367d
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Oct 11, 2023
1 parent 928c5c3 commit d6b85d9
Show file tree
Hide file tree
Showing 9 changed files with 157 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .build
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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-4FC63431.js
dist/search_data-EE7CC24E.js
dist/sidebar_items-E53B19A0.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 @@ -186,9 +186,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="7981220715-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="7981220715-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="7981220715-2">(</span><span class="p" data-group-id="7981220715-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="7981220715-3">}</span><span class="p" data-group-id="7981220715-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="7981220715-4">(</span><span class="n">changeset</span><span class="p" data-group-id="7981220715-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="7981220715-5">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="7981220715-6">[</span><span class="s">&quot;password is too short&quot;</span><span class="p" data-group-id="7981220715-6">]</span><span class="p" data-group-id="7981220715-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="7981220715-7">(</span><span class="n">changeset</span><span class="p" data-group-id="7981220715-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="1934444498-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="1934444498-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="1934444498-2">(</span><span class="p" data-group-id="1934444498-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="1934444498-3">}</span><span class="p" data-group-id="1934444498-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="1934444498-4">(</span><span class="n">changeset</span><span class="p" data-group-id="1934444498-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="1934444498-5">%{</span><span class="ss">password</span><span class="p">:</span><span class="w"> </span><span class="p" data-group-id="1934444498-6">[</span><span class="s">&quot;password is too short&quot;</span><span class="p" data-group-id="1934444498-6">]</span><span class="p" data-group-id="1934444498-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="1934444498-7">(</span><span class="n">changeset</span><span class="p" data-group-id="1934444498-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 d6b85d9

Please sign in to comment.