Posts in English
Last May we happily announced that Rafael França and Carlos Antonio earned commit access to the Ruby on Rails repository – it was a great accomplishment that deserved its own blog post. Today, we have some great news and we want to share with our readers. Just a few days ago, our team mate Rafael … »
Tags: culture, great work, rails, Posted in English, 1 Comment »
It is common for web applications to interface with external services. When testing, since depending on an external service is very fragile, we end up mocking the interaction with such services. However, once in a while, it is still a good idea to check if the contract between your application and the service is still … »
Tags: rspec, Posted in English, 4 Comments »
A couple weeks ago, Aaron Patterson (aka @tenderlove) wrote about getting rid of config.threadsafe! on Rails 4. When discussing multi-process and multi-threaded servers in production, one important aspect of the discussion that came up in the blog post was code loading. This blog post is about which code loading strategies exist in a Rails application, … »
Tags: eager load, rails, Posted in English, 8 Comments »
Besides the big and shiny features that Rails 4 holds, there’s a lot of small improvements on several other sections of the Rails framework – helpers, core extensions, app configurations and more – that might not even hit the Changelogs but will somehow make our lifes easier in the future. One of these hidden gems … »
Tags: actionpack, open source, rails 4, Posted in English, 8 Comments »
When creating an Active Record object, either by using `new` or `create`/`create!`, or even through a `belongs_to` or `has_many` association, you can give a block straight to the method call instead of relying on `tap`. It is possible to avoid doing manual work, sometimes simple stuff such as using `tap` with methods like these, or sometimes more complicated things, by getting to know what a framework like Rails can give us for free.
Tags: activerecord, blocks, open source, rails, Posted in English, 8 Comments »
In this post we talk about the motivation of the composed_of removal in the Rails 4.0 and the possible replacements
Tags: activerecord, composed_of, rails 4, Posted in English, Comments Off on About the composed_of removal