Skip to content

Instantly share code, notes, and snippets.

View schnika's full-sized avatar

Patrick Nüser schnika

  • njiuko GmbH
  • Hamburg
  • 12:38 (UTC +02:00)
View GitHub Profile
@schnika
schnika / rails_active_record_persistence_reload.rb
Last active April 21, 2021 22:46
Rails instance.reload does not clear destroyed flag
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails"