Skip to content

Instantly share code, notes, and snippets.

@svetlins
svetlins / bug.rb
Last active February 13, 2020 09:33
ActiveRecord wrong preloading behavior
# 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", '5.2.3'
my $test = "1 2 3";
grammar TestGrammar {
regex TOP { <char> ** ' ' }
proto regex char { }
regex char:sym<digit> { \d }