See rails validation context. Locus' validation context should be easier to use/understand. Also check out how lotus validations.