Validate method doesn't recognize another instance method

All,

I am attempting to do some custom validation on my object.

Here is my validate method:
protected
def validate
puts "Do I have the target_list_ids method? " +
self.methods.include?(‘target_list_ids’).to_s

if target_list_ids.nil? || target_list_ids.length == 0
errors.add_to_base(“You must choose at least one target list for
this job”)
end

puts "Do I have the Fax method? " + 

self.methods.include?(‘Fax’).to_s
if Fax.nil?
errors.add_to_base(“You must choose at least one report
destination (either email or fax) for this job”)
end

puts “checking”

puts Fax.nil?

puts EMAIL.nil?

puts “EMAIL: #{EMAIL}”

if ((Fax.nil?) || (Fax == ‘’)) && ((EMAIL.nil?) || (EMAIL == ‘’))

end

end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs