Forum: Ruby on Rails Validation issue in 0.14.3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
steven.mohapibanks (Guest)
on 2005-11-12 12:49
(Received via mailing list)
Hi,

I have a model as follows:

class CancellationNotification < ActiveRecord::Base

   # Relationships
   belongs_to :originator
   belongs_to :cancellation

   # Validations
   validates_presence_of :originator_id, :cancellation_id
end

As part of my unit test I check that passing no information to
CancellationNotification.create() fails validation, But the
originator_id does not fail validation. If I change its name it's
fine. Have I clashed with some new "special" AR value or something?
This worked in 0.13.1

Kind regards,
Steven
This topic is locked and can not be replied to.