aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorLuc Donnet2018-04-21 15:53:38 +0200
committerGitHub2018-04-21 15:53:38 +0200
commit0e842bc3123dc40e2b93b3d6710cfb242b19fa93 (patch)
tree3f6ad022ec39bd55cfa2175eaa8cf05582aa712b /app/controllers
parent11ba2437b090373ebf1662f30fad227576f2448d (diff)
parent0ac844bde0ee251463e4eae7691906c39445767d (diff)
downloadchouette-core-0e842bc3123dc40e2b93b3d6710cfb242b19fa93.tar.bz2
Merge pull request #508 from af83/6630-clean-up-fix-attempt
Refs #6630 Fix server error on clean up
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/clean_ups_controller.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/clean_ups_controller.rb b/app/controllers/clean_ups_controller.rb
index ec28aa0fc..c25df1a00 100644
--- a/app/controllers/clean_ups_controller.rb
+++ b/app/controllers/clean_ups_controller.rb
@@ -4,12 +4,12 @@ class CleanUpsController < ChouetteController
belongs_to :referential
def create
- clean_up = CleanUp.new(clean_up_params)
- clean_up.referential = @referential
- if clean_up.valid?
- clean_up.save
+ @clean_up = CleanUp.new(clean_up_params)
+ @clean_up.referential = @referential
+ if @clean_up.valid?
+ @clean_up.save
else
- flash[:alert] = clean_up.errors.full_messages.join("<br/>")
+ flash[:alert] = @clean_up.errors.full_messages.join("<br/>")
end
redirect_to referential_path(@referential)
end