Modified: branches/showcase48/app/controllers/research_objects_controller.rb (3005 => 3006)
--- branches/showcase48/app/controllers/research_objects_controller.rb 2012-05-21 12:58:41 UTC (rev 3005)
+++ branches/showcase48/app/controllers/research_objects_controller.rb 2012-05-21 12:59:49 UTC (rev 3006)
@@ -95,8 +95,11 @@
research_object = file
end
+ policy = Policy.new(:contributor => current_user, :name => 'auto', :share_mode => 0, :update_mode => 6)
+
@research_object = ResearchObject.create(
:contributor => current_user,
+ :contribution => Contribution.new(:policy => policy),
:url ="" url,
:title => ro_params[:title],
:description => ro_params[:description],