diff options
| author | teddywing | 2018-02-13 13:49:29 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-13 13:49:29 +0100 |
| commit | 84891328d7ea0c3b82ba3fa3a73b7c49f317855e (patch) | |
| tree | b1b49aced5f513e2170a7a6e85ee85d067a35a84 /app | |
| parent | 56de2fc715ccaeb908d1646c1f554ed50c2a1de8 (diff) | |
| parent | 5877ed29f0566ba07247aaa1c10e0dd98df1efc7 (diff) | |
| download | chouette-core-84891328d7ea0c3b82ba3fa3a73b7c49f317855e.tar.bz2 | |
Merge pull request #301 from af83/5150-update-decorators
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( |
