# File lib/ancestry/materialized_path.rb, line 3 def self.extended(base) base.validates_format_of base.ancestry_column, :with => Ancestry::ANCESTRY_PATTERN, :allow_nil => true base.send(:include, InstanceMethods) end