From 7fe8b7d100e92060a14f7c7bc32a097947dd860e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 19 Jun 2017 17:27:06 +0200 Subject: TimeTableDecorator#action_links: Add missing destroy link Wasn't adding the destroy link to the `links` list, so it didn't get added to the header buttons. Refs #3479 --- app/decorators/time_table_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/decorators/time_table_decorator.rb b/app/decorators/time_table_decorator.rb index 57661c627..526537310 100644 --- a/app/decorators/time_table_decorator.rb +++ b/app/decorators/time_table_decorator.rb @@ -40,7 +40,7 @@ class TimeTableDecorator < Draper::Decorator end if h.policy(object).destroy? - Link.new( + links << Link.new( content: h.destroy_link_content, href: h.referential_time_table_path(context[:referential], object), method: :delete, -- cgit v1.2.3