jrochkind / rails61_sti_bug_non_repro

Demo app for Rails issue reproduction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Same app as https://github.com/jrochkind/rails7_sti_bug_demo, but in Rails 6.1 -- demonstrates that same steps do not raise error here.

  1. ./bin/rails db:reset
  2. ./bin/rails runner "Car.create!(title: 'honda')"
  3. ./bin/rails runner "Car"

Does NOT raise exception, that is raised in Rails 7.0 version.

./bin/rails runner ./scripts/reference_car.rb

Gets to Made it past with no exception, when Rails 7.0 version does not.

About

Demo app for Rails issue reproduction


Languages

Language:Ruby 79.0%Language:HTML 16.1%Language:JavaScript 2.9%Language:CSS 2.0%