diff options
Diffstat (limited to 'app/policies')
| -rw-r--r-- | app/policies/company_policy.rb | 8 | ||||
| -rw-r--r-- | app/policies/compliance_check_set_policy.rb | 2 | ||||
| -rw-r--r-- | app/policies/journey_pattern_policy.rb | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/app/policies/company_policy.rb b/app/policies/company_policy.rb index 6106798be..45386aba4 100644 --- a/app/policies/company_policy.rb +++ b/app/policies/company_policy.rb @@ -1,7 +1,7 @@ class CompanyPolicy < ApplicationPolicy - class Scope < Scope - def resolve - scope + class Scope < Scope + def resolve + scope + end end end -end diff --git a/app/policies/compliance_check_set_policy.rb b/app/policies/compliance_check_set_policy.rb index 3f715649e..171a33347 100644 --- a/app/policies/compliance_check_set_policy.rb +++ b/app/policies/compliance_check_set_policy.rb @@ -4,4 +4,4 @@ class ComplianceCheckSetPolicy < ApplicationPolicy scope end end -end +end
\ No newline at end of file diff --git a/app/policies/journey_pattern_policy.rb b/app/policies/journey_pattern_policy.rb index 507a364b6..12bcced17 100644 --- a/app/policies/journey_pattern_policy.rb +++ b/app/policies/journey_pattern_policy.rb @@ -18,4 +18,3 @@ class JourneyPatternPolicy < ApplicationPolicy !archived? && organisation_match? && user.has_permission?('journey_patterns.update') end end - |
