TIL that Ruby, or to be more precise `Class` class, offers `allocate` public instance method.
Read more...Today I Learned
`ActiveSupport::ArrayInquirer` and even more Rails magic
In the previous article, we dived into ActiveSupport::StringInquirer
class and superpowers it gives to String
objects. After I had published that article I decided to take another look at the ActiveSupport
module and to my surprise, I found something even more interesting, ActiveSupport::ArrayInquirer
class.
`ActiveSupport::StringInquirer` magic
Rails magic is a widespread term among developers working with Ruby on Rails application. Is it an overstatement? Well, it depends.
Read more...How to log HTTParty requests
Today I learned that `HTTParty` gem has a built-in option for enabling logging details of all requests made by the gem.
Read more...