Skip to content

Commit

Permalink
Merge pull request #386 from cveneziani/mention-rom-and-sequel
Browse files Browse the repository at this point in the history
Add mention to ROM and Sequel in Repositories guide
  • Loading branch information
davydovanton committed Oct 3, 2017
2 parents 04dc632 + f136bbd commit 63d3f05
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source/guides/1.0/models/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,19 @@ This is a **huge improvement**, because:

* If we change the storage, the callers aren't affected.

<div class="convention">
<p>
Hanami queries are based on gems from <strong>ROM</strong> project, namely
<code>rom-repository</code> and <code>rom-sql</code>.
The gem <code>rom-sql</code> is itself based on <strong>Sequel</strong> project.
</p>
<p>
Learn more on how to craft queries with
<a href="http://rom-rb.org/current/learn/sql/queries/">ROM</a>
and <a href="http://sequel.jeremyevans.net/documentation.html">Sequel</a>.
</p>
</div>

## Timestamps

To have a track of when a record has been created or updated is important when running a project in production.
Expand Down
13 changes: 13 additions & 0 deletions source/guides/head/models/repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,19 @@ This is a **huge improvement**, because:

* If we change the storage, the callers aren't affected.

<div class="convention">
<p>
Hanami queries are based on gems from <strong>ROM</strong> project, namely
<code>rom-repository</code> and <code>rom-sql</code>.
The gem <code>rom-sql</code> is itself based on <strong>Sequel</strong> project.
</p>
<p>
Learn more on how to craft queries with
<a href="http://rom-rb.org/current/learn/sql/queries/">ROM</a>
and <a href="http://sequel.jeremyevans.net/documentation.html">Sequel</a>.
</p>
</div>

## Timestamps

To have a track of when a record has been created or updated is important when running a project in production.
Expand Down
4 changes: 4 additions & 0 deletions source/stylesheets/guides.css
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ body {
}
.convention a {
color: #fff;
font-weight: 700;
}
.convention p:last-child {
margin-bottom: 0;
}
.warning {
border-color: #f39c12;
Expand Down

0 comments on commit 63d3f05

Please sign in to comment.