|
From: | noreply |
Subject: | [myexperiment-hackers] [3004] trunk/lib/acts_as_contributable.rb: set contributor in contribution if it's not set |
Date: | Mon, 21 May 2012 12:54:35 +0000 (UTC) |
set contributor in contribution if it's not set
--- trunk/lib/acts_as_contributable.rb 2012-05-18 10:43:11 UTC (rev 3003)
+++ trunk/lib/acts_as_contributable.rb 2012-05-21 12:54:34 UTC (rev 3004)
@@ -39,6 +39,8 @@
:contributable => c)
end
+ c.contribution.contributor ||= c.contributor
+
if c.contribution.policy.nil?
c.contribution.policy = create_default_policy(c.contributor)
end
[Prev in Thread] | Current Thread | [Next in Thread] |