Compatibility to ActiveModel API

Avoid using {...} for multi-line blocks.