Sha256: 8dc69fe1d7c3e909b9c3ab3ef81ddca632a4ca013fb5492a221af1a449c0facb
Contents?: true
Size: 444 Bytes
Versions: 20
Compression:
Stored size: 444 Bytes
Contents
class NonValidatedIssue < ActiveRecord::Base belongs_to :person validates_presence_of :subject validate :dummy_validation def validation_log @validation_log ||= [] end def log(validation_line) validation_log << validation_line validation_log end def dummy_validation if new_record? log("Validating new non validated issue") else log("Validating non validated issue #{id}") end end end
Version data entries
20 entries across 20 versions & 1 rubygems