diff options
Diffstat (limited to 'app/controllers/networks_controller.rb')
| -rw-r--r-- | app/controllers/networks_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index eed00f365..b9423c976 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -4,4 +4,13 @@ class NetworksController < ChouetteController respond_to :xml respond_to :json + protected + + def resource_url(network = nil) + referential_network_path(referential, network || resource) + end + + def collection_url + referential_networks_path(referential) + end end |
