]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/acl.rb
Refactor user_changeset_comments integration test to use factories.
[rails.git] / app / models / acl.rb
index 8bb4ae4b9dd8ebf294419aa141ebeaea5f4d7994..529ccbe3bc26640dfb057674aca5b433ec1582d3 100644 (file)
@@ -1,4 +1,6 @@
 class Acl < ActiveRecord::Base
+  validates :k, :presence => true
+
   def self.match(address, domain = nil)
     if domain
       Acl.where("address >>= ? OR domain = ?", address, domain)