diff options
| author | Robert | 2017-05-24 07:40:24 +0200 | 
|---|---|---|
| committer | Robert | 2017-05-24 07:40:24 +0200 | 
| commit | d5063b73ff1e794d32a73d85880c541113fe29c6 (patch) | |
| tree | 0e80c1940775d7228f1254b5f8cc0f6f64a3fb1d /app/policies/line_policy.rb | |
| parent | a47fe543ca8213d4b32d51c209b42e8f1a762776 (diff) | |
| download | chouette-core-d5063b73ff1e794d32a73d85880c541113fe29c6.tar.bz2 | |
Refs: #3446; Applying to time_tables- and lines policy
Diffstat (limited to 'app/policies/line_policy.rb')
| -rw-r--r-- | app/policies/line_policy.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/line_policy.rb b/app/policies/line_policy.rb index 443e3e22f..68c373c1e 100644 --- a/app/policies/line_policy.rb +++ b/app/policies/line_policy.rb @@ -1,4 +1,9 @@ +require_relative 'chain'  class LinePolicy < BoivPolicy +  extend Policies::Chain + +  chain_policies :archived?, :!, policies: %i{create_footnote? destroy_footnote? edit_footnote?} +    class Scope < Scope      def resolve        scope  | 
