Save a method definition on railties

Plus keep the protected blocks consistently indented in the file.

P.S. If you are keeping this, so you can document it with the block above, ignore this one.