aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/clean_ups_controller.rb
diff options
context:
space:
mode:
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