aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorMichel Etienne2012-09-03 16:43:48 +0200
committerMichel Etienne2012-09-03 16:43:48 +0200
commitf6dd265a0dfdfa976adbc3e3ecfba501a99c3671 (patch)
tree810564ba6b8ac1c219e277d66218a9cff504ffe3 /app/controllers
parentdf33fee5452c94eaf55ead124fb0ed2cb6690ef6 (diff)
parentfee26ac823d1cc5a977965ca1564ac55e358dc8a (diff)
downloadchouette-core-f6dd265a0dfdfa976adbc3e3ecfba501a99c3671.tar.bz2
synchro
Diffstat (limited to 'app/controllers')
-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