From 9130b44fb9a4fd132da5c2f2dd2a7668fc41dc86 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Wed, 23 Jan 2019 14:04:48 +1300 Subject: [PATCH] Rubocop fixup --- app/helpers/buttons_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/buttons_helper.rb b/app/helpers/buttons_helper.rb index 994265adc..ea475fa05 100644 --- a/app/helpers/buttons_helper.rb +++ b/app/helpers/buttons_helper.rb @@ -58,16 +58,17 @@ module ButtonsHelper button( new_photo_path(id: model.id, type: model_type_for_photo(model)), - 'buttons.add_a_photo', 'camera') + 'buttons.add_a_photo', 'camera' + ) end - def edit_button(path) button(path, 'buttons.edit', 'pencil') end def delete_button(model, message: 'are_you_sure') return unless can? :destroy, model + link_to model, method: :delete, data: { confirm: t(message) }, class: 'btn btn-default btn-xs' do render 'shared/glyphicon', icon: 'trash', title: 'buttons.delete' end