fix: update docker and messages
This commit is contained in:
parent
73637b52ce
commit
175d3a5e89
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue
Block a user