]> git.openstreetmap.org Git - rails.git/commitdiff
Fix up case statement syntax for ruby 1.9 compatibility
authorTom Hughes <tom@compton.nu>
Wed, 4 Jan 2012 18:26:22 +0000 (18:26 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 4 Jan 2012 22:25:48 +0000 (22:25 +0000)
app/models/diary_sweeper.rb

index 59d578f7e6737d9676a04ef6353500b18bf22f37..9f739cf5e7af761b2390027d824d968a5b63c02d 100644 (file)
@@ -17,8 +17,8 @@ private
 
   def expire_cache_for(record)
     case
-    when record.is_a?(DiaryEntry): entry = record
-    when record.is_a?(DiaryComment): entry = record.diary_entry
+    when record.is_a?(DiaryEntry) then entry = record
+    when record.is_a?(DiaryComment) then entry = record.diary_entry
     end
 
     expire_action(:controller => 'diary_entry', :action => 'view', :display_name => entry.user.display_name, :id => entry.id)