From 015cc9e451fab036b2c9315ff9f1e9b8f31a1064 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Tue, 13 Sep 2011 18:21:16 -0700 Subject: [PATCH] actually fix specs/cucumber --- app/models/signed_retraction.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/signed_retraction.rb b/app/models/signed_retraction.rb index d2aa2e154..44fdd7ba7 100644 --- a/app/models/signed_retraction.rb +++ b/app/models/signed_retraction.rb @@ -18,8 +18,13 @@ class SignedRetraction :target_author_signature, :sender + #NOTE(fix this hack -- go through the app and make sure we only call RelayableRetraction in a unified way) def author - sender.person + if sender.is_a?(User) + sender.person + else + sender + end end def signable_accessors