Allow user to pass lambda to local attributes, block will be

evaluated and its results assigned to the local object.

synced local_attributes: { reviews_count: -> (booking) { booking.reviews.size } }
Taking the proc definition away to keep the setup lighter, or a reusable method from a concern to keep it DRY.