/usr/lib/ruby/1.8/child_validation.rb is in libvalidatable-ruby1.8 1.6.7-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | module Validatable
class ChildValidation #:nodoc:
attr_accessor :attribute, :map, :should_validate_proc
def initialize(attribute, map, should_validate_proc)
@attribute = attribute
@map = map
@should_validate_proc = should_validate_proc
end
def should_validate?(instance)
instance.instance_eval &should_validate_proc
end
end
end
|