diff options
| author | cedricnjanga | 2017-07-12 14:27:38 +0200 |
|---|---|---|
| committer | cedricnjanga | 2017-07-12 14:29:29 +0200 |
| commit | 93fe7067883367f841b2d2702302efda8457ca7e (patch) | |
| tree | e3df8439f55a5c535c10efbccb54d016b865b1c8 | |
| parent | 5683ed2be29d3112fec8c7018ccc766366aee4cc (diff) | |
| download | chouette-core-93fe7067883367f841b2d2702302efda8457ca7e.tar.bz2 | |
Add month? method in timetable policy
| -rw-r--r-- | app/policies/time_table_policy.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/time_table_policy.rb b/app/policies/time_table_policy.rb index c9f3a3ec6..92d3aef3e 100644 --- a/app/policies/time_table_policy.rb +++ b/app/policies/time_table_policy.rb @@ -25,4 +25,8 @@ class TimeTablePolicy < ApplicationPolicy def duplicate? !archived? && organisation_match? && create? end + + def month? + update? + end end |
