use callback lambda for rails 4+