Class: Workflow::User::Product::AreasController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Workflow::User::Product::AreasController
- Defined in:
- app/controllers/workflow/user/product/areas_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
2 3 4 5 6 7 |
# File 'app/controllers/workflow/user/product/areas_controller.rb', line 2 def show @area = Area.friendly.find(params[:id]) @areas = @area.children_for_product_id(params[:product_id]) @projects = @area.projects.for_product_id(params[:product_id]) @product = ::Product.find(params[:product_id]) unless params[:product_id] == 'no-name' end |