Module: DataJanitor::AuditValidatable

Defined in:
lib/data_janitor/audit_validatable.rb

Instance Method Summary collapse

Instance Method Details

#dj_audit_validations(&block) ⇒ Object

extended data janitor model validations that apply data_janitor audit purposes



11
12
13
# File 'lib/data_janitor/audit_validatable.rb', line 11

def dj_audit_validations(&block)
  with_options(on: [:dj_audit], &block)
end

#dj_validations(&block) ⇒ Object

extended data janitor model validations that apply to new records and data_janitor audit purposes



5
6
7
# File 'lib/data_janitor/audit_validatable.rb', line 5

def dj_validations(&block)
  with_options(on: [:dj_audit, :create], &block)
end