Rubocop fixup

This commit is contained in:
Brenda Wallace
2019-01-23 14:04:48 +13:00
parent 8eb9487967
commit 9130b44fb9

View File

@@ -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