module
CQL::ActiveRecord::Validations
Defined in:
active_record/validations.crClass Method Summary
-
.applies?(on : Symbol | Nil, context : Symbol | Nil) : Bool
Whether a rule declared with
on: onruns in context; a rule withouton:runs in every context.
Macro Summary
Class Method Detail
def self.applies?(on : Symbol | Nil, context : Symbol | Nil) : Bool
#
Whether a rule declared with on: on runs in context; a rule without on: runs in every context.