Displaying 1 result from an estimated 1 matches for "admin_email_address".
2011 Jun 15
1
.new_record? and :_destroy
Rails version 2.3.8
I have a ticket model that has many comments
the comments have an attribute called "admin" -- is this a comment
added by an administrator
the ticket has an attribute called "admin_email_address"
I want to validate when saving the ticket and say "if I have a new
admin comment, make sure I have an admin_email_address"
In my ticket model, the method to do the validate looks like the
following and works as expected except for one thing. If the :_destroy
flag on the comment wa...