aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/clean_ups_controller.rb
diff options
context:
space:
mode:
authorZog2018-04-18 13:19:18 +0200
committerJohan Van Ryseghem2018-04-27 11:17:19 +0200
commitf7fe4c24e29ceb517abdda66899952a5d6aa73bf (patch)
tree7fdd8323e8e5a0189771976878310167b6cdac49 /app/controllers/clean_ups_controller.rb
parent0046e5a01cb08c10118b01c50f3c52d159854ef0 (diff)
downloadchouette-core-f7fe4c24e29ceb517abdda66899952a5d6aa73bf.tar.bz2
Refs #6572; New Referential#Show for noredy referentials
Diffstat (limited to 'app/controllers/clean_ups_controller.rb')
-rw-r--r--app/controllers/clean_ups_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/clean_ups_controller.rb b/app/controllers/clean_ups_controller.rb
index c25df1a00..350f9ae87 100644
--- a/app/controllers/clean_ups_controller.rb
+++ b/app/controllers/clean_ups_controller.rb
@@ -3,6 +3,8 @@ class CleanUpsController < ChouetteController
respond_to :html, :only => [:create]
belongs_to :referential
+ defaults :resource_class => CleanUp
+
def create
@clean_up = CleanUp.new(clean_up_params)
@clean_up.referential = @referential