]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_sweeper.rb
Make sure the ruby quadtile code give the same result as the C version
[rails.git] / app / models / user_sweeper.rb
index 7f172317d4adc0fc7d5e67efeccdb9581667a0e2..d2fd983f76221d56215eab4c315763ffda02e374 100644 (file)
@@ -14,7 +14,7 @@ private
   def expire_cache_for(old_record, new_record)
     if old_record and
         (new_record.nil? or
-         old_record.visible != new_record.visible or
+         old_record.visible? != new_record.visible? or
          old_record.display_name != new_record.display_name)
       old_record.diary_entries.each do |entry|
         expire_action(:controller => 'diary_entry', :action => 'view', :display_name => old_record.display_name, :id => entry.id)