mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-31 04:31:01 -05:00
Rubocop fixup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user