aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/referentials_controller.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb
index 8881c5127..931411c2d 100644
--- a/app/controllers/referentials_controller.rb
+++ b/app/controllers/referentials_controller.rb
@@ -6,10 +6,6 @@ class ReferentialsController < InheritedResources::Base
show!
end
- def create
- create!
- end
-
protected
def resource
@referential ||= current_organisation.referentials.find_by_id(params[:id])
@@ -19,7 +15,7 @@ class ReferentialsController < InheritedResources::Base
end
def create_resource(referential)
referential.organisation = current_organisation
- referential
+ super
end
-
+
end