class Reply

Public Instance Methods

check_content_mismatch() click to toggle source
# File activemodel/test/models/reply.rb, line 21
def check_content_mismatch
  if title && content && content == "Mismatch"
    errors[:title] << "is Content Mismatch"
  end
end
check_empty_title() click to toggle source
# File activemodel/test/models/reply.rb, line 13
def check_empty_title
  errors[:title] << "is Empty" unless title && title.size > 0
end
check_wrong_update() click to toggle source
# File activemodel/test/models/reply.rb, line 31
def check_wrong_update
  errors[:title] << "is Wrong Update" if title && title == "Wrong Update"
end
errors_on_empty_content() click to toggle source
# File activemodel/test/models/reply.rb, line 17
def errors_on_empty_content
  errors[:content] << "is Empty" unless content && content.size > 0
end
title_is_wrong_create() click to toggle source
# File activemodel/test/models/reply.rb, line 27
def title_is_wrong_create
  errors[:title] << "is Wrong Create" if title && title == "Wrong Create"
end