]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/acl.rb
Exclude hidden diary entries and comments from spam scoring
[rails.git] / app / models / acl.rb
index 8bb4ae4b9dd8ebf294419aa141ebeaea5f4d7994..095bad89b942d07e62ee74b18e999100905c456b 100644 (file)
@@ -1,4 +1,21 @@
+# == Schema Information
+#
+# Table name: acls
+#
+#  id      :integer          not null, primary key
+#  address :inet
+#  k       :string           not null
+#  v       :string
+#  domain  :string
+#
+# Indexes
+#
+#  acls_k_idx  (k)
+#
+
 class Acl < ActiveRecord::Base
+  validates :k, :presence => true
+
   def self.match(address, domain = nil)
     if domain
       Acl.where("address >>= ? OR domain = ?", address, domain)