fix: update docker and messages
This commit is contained in:
@ -20,4 +20,6 @@ COPY Gemfile* package.json yarn.lock /app/
|
||||
RUN gem install bundler -v 2.1.4 && \
|
||||
bundle install --jobs 20
|
||||
|
||||
RUN bundle update
|
||||
|
||||
COPY . /app
|
@ -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
|
||||
#
|
||||
|
Reference in New Issue
Block a user