diff options
| author | Zog | 2018-02-12 10:19:40 +0100 |
|---|---|---|
| committer | Zog | 2018-02-12 10:19:40 +0100 |
| commit | 5877ed29f0566ba07247aaa1c10e0dd98df1efc7 (patch) | |
| tree | a1e540177ef267d9138099c5961f27d038e095f2 /app | |
| parent | 7f044f8ab9cf9394c4180f3d467a74bd95dcd398 (diff) | |
| download | chouette-core-5877ed29f0566ba07247aaa1c10e0dd98df1efc7.tar.bz2 | |
Refs #5150; Update decorators
Diffstat (limited to 'app')
| -rw-r--r-- | app/decorators/time_table_decorator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/decorators/time_table_decorator.rb b/app/decorators/time_table_decorator.rb index 95b1fd959..e4f9d7dbc 100644 --- a/app/decorators/time_table_decorator.rb +++ b/app/decorators/time_table_decorator.rb @@ -14,7 +14,7 @@ class TimeTableDecorator < AF83::Decorator l.href { [:edit, context[:referential], object] } end - instance_decorator.action_link if: ->{ object.calendar }, secondary: true do |l| + instance_decorator.action_link policy: :actualize, if: ->{ object.calendar }, secondary: true do |l| l.content t('actions.actualize') l.href do h.actualize_referential_time_table_path( |
