|
From: | noreply |
Subject: | [myexperiment-hackers] [3455] trunk/lib/acts_as_contributable.rb: added quick fix for creation of new contributables and sunspot |
Date: | Thu, 28 Feb 2013 17:28:22 +0000 (UTC) |
added quick fix for creation of new contributables and sunspot
--- trunk/lib/acts_as_contributable.rb 2013-02-27 13:49:31 UTC (rev 3454)
+++ trunk/lib/acts_as_contributable.rb 2013-02-28 17:28:22 UTC (rev 3455)
@@ -83,6 +83,7 @@
end
def contributor_name
+ return nil if contribution.nil?
return contribution.contributor.name if contribution.contributor.respond_to?('name')
return contribution.contributor.title if contribution.contributor.respond_to?('title')
end
[Prev in Thread] | Current Thread | [Next in Thread] |