aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/companies_controller.rb
diff options
context:
space:
mode:
authorLuc Donnet2012-02-23 15:01:03 +0100
committerLuc Donnet2012-02-23 15:01:03 +0100
commit1bf6eb00189e124674a70cb7216fb002f12b79ca (patch)
tree725e3c12d4bd8936f124aa4071ac5d31432e2099 /app/controllers/companies_controller.rb
parentda3e849d4d89ffa3de2d370a30d3d5531b50ea5b (diff)
downloadchouette-core-1bf6eb00189e124674a70cb7216fb002f12b79ca.tar.bz2
Update controler for resource and collection
Diffstat (limited to 'app/controllers/companies_controller.rb')
-rw-r--r--app/controllers/companies_controller.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/controllers/companies_controller.rb b/app/controllers/companies_controller.rb
index 4fb83d789..2b13d78cf 100644
--- a/app/controllers/companies_controller.rb
+++ b/app/controllers/companies_controller.rb
@@ -12,11 +12,12 @@ class CompaniesController < ChouetteController
protected
+ def resource_url(company = nil)
+ referential_company_path(referential, company || resource)
+ end
- # def resource_url(company = nil)
- # puts "########################################"
- # puts referential_company_path(referential, company || @resource).inspect
- # referential_company_path(referential, company || @resource)
- # end
+ def collection_url
+ referential_companies_path(referential)
+ end
end