Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

This model needs to be cleaned up; but we should validate presence of…

… term at the very least
  • Loading branch information...
commit 3df55ca7c96465367cf9e565fa4a5700fc1cd58f 1 parent 879e36c
@aditya aditya authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  app/models/badword.rb
View
2  app/models/badword.rb
@@ -1,3 +1,5 @@
class Badword < ActiveRecord::Base
set_table_name "blacklist"
+
+ validates_presence_of :term
end
Please sign in to comment.
Something went wrong with that request. Please try again.