perimeter_db_rescan class, instance methods added
cast to number
send perimeter event after_save