summaryrefslogtreecommitdiff
path: root/app/controllers/admin/ressources_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/ressources_controller.rb')
-rw-r--r--app/controllers/admin/ressources_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/ressources_controller.rb b/app/controllers/admin/ressources_controller.rb
index 293681b..76cb786 100644
--- a/app/controllers/admin/ressources_controller.rb
+++ b/app/controllers/admin/ressources_controller.rb
@@ -58,7 +58,7 @@ class Admin::RessourcesController < ApplicationController
def update
#params[:participant][:community_ids] ||= []
@ressource = Ressource.find(params[:id])
- if @ressource.update_attributes(ressource_params)
+ if @ressource.update(ressource_params)
flash[:notice] = 'Ressource was successfully updated.'
redirect_to admin_ressource_path(:id => @ressource)
else