diff options
| author | Zog | 2018-02-27 16:32:42 +0100 | 
|---|---|---|
| committer | Zog | 2018-02-27 16:32:42 +0100 | 
| commit | 0eb57e0a2632563eb1c9b39b3290c378e9b27ed5 (patch) | |
| tree | 99dc763f9cd62e5debdc6fa03f1e386ff0aa0922 | |
| parent | ff9f6fa9674a4a50da480b550611cd1ce9d84c23 (diff) | |
| download | chouette-core-0eb57e0a2632563eb1c9b39b3290c378e9b27ed5.tar.bz2 | |
Refs #5878; Refactor ComplianceChecksController
Use InheritedResources helpers
| -rw-r--r-- | app/controllers/compliance_checks_controller.rb | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/app/controllers/compliance_checks_controller.rb b/app/controllers/compliance_checks_controller.rb index 32a408336..f6659ab9f 100644 --- a/app/controllers/compliance_checks_controller.rb +++ b/app/controllers/compliance_checks_controller.rb @@ -1,6 +1,4 @@  class ComplianceChecksController <  InheritedResources::Base -  before_action do -    @workbench = Workbench.find params[:workbench_id] -  end - +  belongs_to :workbench +  belongs_to :compliance_check_set  end | 
