]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/new.html.erb
Update ActiveRecord queries to use arel
[rails.git] / app / views / user / new.html.erb
index 9fcbfdcba76d8dc3dd5f0104fbc29c2c2d67fe11..04c86b5a8ea89dba89a830d7504818ddb988b1df 100644 (file)
@@ -1,6 +1,6 @@
 <h1><%= t 'user.new.heading' %></h1>
 
-<% if Acl.find_by_address(request.remote_ip, :conditions => {:k => "no_account_creation"}) %>
+<% if Acl.address(request.remote_ip).where(:k => "no_account_creation").exists? %>
 
 <p><%= t 'user.new.no_auto_account_create' %></p>