aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorTeddy Wing2017-06-19 17:27:06 +0200
committerTeddy Wing2017-06-19 17:42:05 +0200
commit7fe8b7d100e92060a14f7c7bc32a097947dd860e (patch)
tree731b9c7c67ce309bbc22e8fd3f573e1b3ba687f5 /app
parentd4de52d63f400f30dabb7034e14202f5c9bd0192 (diff)
downloadchouette-core-7fe8b7d100e92060a14f7c7bc32a097947dd860e.tar.bz2
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
Diffstat (limited to 'app')
-rw-r--r--app/decorators/time_table_decorator.rb2
1 files changed, 1 insertions, 1 deletions
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,