Ciao from Claudio! As we get closer to the first beta release of Rails 5, here are the latest updates about what was committed into rails/rails this week.
Delegating a method to :block will now raise an exception. This is to prevent Rails from trying to invoke a block, rather than delegating the method. Same for :args and :arg.
1.year used to return the number of seconds in a year as a Float. This was confusing and inconsistent with similar methods. Now it returns a Fixnum (in case you are wondering, it’s 31,557,600).