]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/acl.rb
Use picture elements to render some more graphics as SVG
[rails.git] / app / models / acl.rb
index 0c89968289e60e78d806230f9851535d795c6115..8bb4ae4b9dd8ebf294419aa141ebeaea5f4d7994 100644 (file)
@@ -1,9 +1,9 @@
 class Acl < ActiveRecord::Base
   def self.match(address, domain = nil)
     if domain
 class Acl < ActiveRecord::Base
   def self.match(address, domain = nil)
     if domain
-      condition = Acl.where("address >>= ? OR domain = ?", address, domain)
+      Acl.where("address >>= ? OR domain = ?", address, domain)
     else
     else
-      condition = Acl.where("address >>= ?", address)
+      Acl.where("address >>= ?", address)
     end
   end
 
     end
   end