Closed dummied closed 8 years ago
https://github.com/SherSpock/muscle-wizards/blob/master/app/models/message.rb#L5
validates :body, :user, :conversation, presence: true
Would validate not just the presence of the id, but the existence of the associated record as well.
https://github.com/SherSpock/muscle-wizards/blob/master/app/models/message.rb#L5
validates :body, :user, :conversation, presence: true
Would validate not just the presence of the id, but the existence of the associated record as well.