diff options
| author | Marc Florisson | 2012-09-03 16:36:03 +0200 |
|---|---|---|
| committer | Marc Florisson | 2012-09-03 16:36:03 +0200 |
| commit | fee26ac823d1cc5a977965ca1564ac55e358dc8a (patch) | |
| tree | 1084d9fee501ebde6d9c12924b9562ab6c9ac732 | |
| parent | 6dafb0a0a66ff73d7fde30fb33903e780e2fae1b (diff) | |
| download | chouette-core-fee26ac823d1cc5a977965ca1564ac55e358dc8a.tar.bz2 | |
fix referential creation. Refs #114
| -rw-r--r-- | app/controllers/referentials_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/referentials_controller.rb b/app/controllers/referentials_controller.rb index 6ee744413..87c632bc7 100644 --- a/app/controllers/referentials_controller.rb +++ b/app/controllers/referentials_controller.rb @@ -13,5 +13,10 @@ class ReferentialsController < InheritedResources::Base def collection @referentials ||= current_organisation.referentials end + def create_resource(referential) + referential.organisation = current_organisation + super + end + end |
