Yesterday I got my first pull request accepted into Rails master. This is a great sensation! It feels nice to contribute back to the community that has given me so much.
This particular pull request adds a new
first_or_create method to Active Record that let’s you write code like this:
This is much clearer than the old
find_or_create_by_first_name method that used to look like this:
I think I’m going to keep writing push requests for Rails from time to time.
Hope you like it!