app/controllers/conversations_controller.rb
# move_to_trash and untrash are the two methods presented by Mailboxer and they are pretty self-explanatory.
move_to_trash and untrash are the two methods presented by Mailboxer and they are pretty self-explanatory.
move_to_trash and untrash are the two methods presented by Mailboxer and they are pretty self - explanatory .
def destroy
    @conversation.move_to_trash(current_user)
    flash[:success] = 'The conversation was moved to trash.'
    redirect_to conversations_path
  end
def destroy @conversation . move_to_trash ( current_user ) flash [ :success ] = 'The conversation was moved to trash.' redirect_to conversations_path end
move_to_trash and untrash are the two methods presented by Mailboxer and they are pretty self-explanatory.
move_to_trash and untrash are the two methods presented by Mailboxer and they are pretty self - explanatory .