fix: update docker and messages

This commit is contained in:
bijan committed 2024-05-12 20:29:52 +03:30
1 parent 73637b52ce
commit 175d3a5e89
2 files changed
+12

No files matched your search

+10
View File
@@ -14,6 +14,16 @@ ActiveAdmin.register Message do
# Uncomment all parameters which should be permitted for assignment
#
permit_params :title, :name, :description, :email, :phone
controller do
def destroy
Message.destroy(params[:id])
flash[:notice] = "Message deleted successfully!"
redirect_to admin_messages_path
end
end
#
# or
#