fix: update docker and messages

This commit is contained in:
bijan 2024-05-12 20:29:52 +03:30
parent 73637b52ce
commit 175d3a5e89
2 changed files with 12 additions and 0 deletions

View File

@ -20,4 +20,6 @@ COPY Gemfile* package.json yarn.lock /app/
RUN gem install bundler -v 2.1.4 && \ RUN gem install bundler -v 2.1.4 && \
bundle install --jobs 20 bundle install --jobs 20
RUN bundle update
COPY . /app COPY . /app

View File

@ -14,6 +14,16 @@ ActiveAdmin.register Message do
# Uncomment all parameters which should be permitted for assignment # Uncomment all parameters which should be permitted for assignment
# #
permit_params :title, :name, :description, :email, :phone 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 # or
# #