Methods
- E
- T
- V
Instance Public methods
Source: show
# File rails/activerecord/test/fixtures/reply.rb, line 16 def errors_on_empty_content errors.add("content", "Empty") unless attribute_present? "content" end
Source: show
# File rails/activerecord/test/fixtures/reply.rb, line 26 def title_is_wrong_create errors.add("title", "is Wrong Create") if attribute_present?("title") && title == "Wrong Create" end
Source: show
# File rails/activerecord/test/fixtures/reply.rb, line 12 def validate errors.add("title", "Empty") unless attribute_present? "title" end
Source: show
# File rails/activerecord/test/fixtures/reply.rb, line 20 def validate_on_create if attribute_present?("title") && attribute_present?("content") && content == "Mismatch" errors.add("title", "is Content Mismatch") end end
Source: show
# File rails/activerecord/test/fixtures/reply.rb, line 30 def validate_on_update errors.add("title", "is Wrong Update") if attribute_present?("title") && title == "Wrong Update" end