Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small Typos in Associations Guide #257

Merged
merged 2 commits into from Jan 29, 2017
Merged

Small Typos in Associations Guide #257

merged 2 commits into from Jan 29, 2017

Conversation

christopherciufo
Copy link
Contributor

Small typos I found while reading through the docs for the first time

As I am very new to Hanami, can someone confirm that the where clause correction makes sense? Thanks.

@@ -122,7 +122,7 @@ class AuthorRepository < Hanami::Repository
end

def find_with_books(id)
aggregate(:books).where(authors__id: id).as(Author).one
aggregate(:books).where(author_id: id).as(Author).one
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Sequel syntax, it's correct with double underscore. 😉

@jodosha
Copy link
Member

jodosha commented Jan 2, 2017

@christopherciufo Hi and thanks for this PR.

As I am very new to Hanami, can someone confirm that the where clause correction makes sense? Thanks.

Sorry, but I don't understand this question. Can you please tell us an example of what you are trying to achieve? Thanks! 😄

@AlfonsoUceda
Copy link
Contributor

@jodosha maybe is the line you commented.

@christopherciufo thanks for your PR, could you fix what @jodosha said? Thanks!

@christopherciufo
Copy link
Contributor Author

Sorry all for the confusion. This very tiny PR is ready to go haha 👍

@AlfonsoUceda AlfonsoUceda self-assigned this Jan 29, 2017
@AlfonsoUceda AlfonsoUceda merged commit cb7035c into hanami:build Jan 29, 2017
@AlfonsoUceda
Copy link
Contributor

thanks and merging!

@christopherciufo christopherciufo deleted the patch-1 branch June 6, 2018 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants