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

ActiveRecord internals #42

Open
mehlah opened this issue Jul 2, 2015 · 1 comment
Open

ActiveRecord internals #42

mehlah opened this issue Jul 2, 2015 · 1 comment

Comments

@mehlah
Copy link
Member

mehlah commented Jul 2, 2015

A walkthrough on what happens when you hit enter in a Rails console after this line

Post.where(...).where(...).where(...).order(...).limit(5)

What AR objects are instantiated? How queries chain is held? When Arel comes on stage?

I'm still learning myself those things and experimenting by digging Rails source and will be happy to share what I've learned so far if anyone is interested.

@michaelbaudino
Copy link
Member

This one sounds more Ruby-esque than the other one (#43) 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants