diff options
| author | Michel Etienne | 2012-09-03 16:43:48 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-09-03 16:43:48 +0200 |
| commit | f6dd265a0dfdfa976adbc3e3ecfba501a99c3671 (patch) | |
| tree | 810564ba6b8ac1c219e277d66218a9cff504ffe3 /app/controllers | |
| parent | df33fee5452c94eaf55ead124fb0ed2cb6690ef6 (diff) | |
| parent | fee26ac823d1cc5a977965ca1564ac55e358dc8a (diff) | |
| download | chouette-core-f6dd265a0dfdfa976adbc3e3ecfba501a99c3671.tar.bz2 | |
synchro
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/referentials_controller.rb | 8 |
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 |
