projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179fe4f
)
Fix up case statement syntax for ruby 1.9 compatibility
author
Tom Hughes
<tom@compton.nu>
Wed, 4 Jan 2012 18:26:22 +0000
(18:26 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 4 Jan 2012 22:25:48 +0000
(22:25 +0000)
app/models/diary_sweeper.rb
patch
|
blob
|
history
diff --git
a/app/models/diary_sweeper.rb
b/app/models/diary_sweeper.rb
index 59d578f7e6737d9676a04ef6353500b18bf22f37..9f739cf5e7af761b2390027d824d968a5b63c02d 100644
(file)
--- a/
app/models/diary_sweeper.rb
+++ b/
app/models/diary_sweeper.rb
@@
-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)