Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael França rafaelfranca

  • Shopify
  • Ottawa, ON
View GitHub Profile
@rafaelfranca
rafaelfranca / 28718.rb
Last active Mar 25, 2021 — forked from alexcameron89/28718.rb
A Reproduction Script for Rails issue #28718
View 28718.rb
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
gem "rails", "5.0.2"
View foo.scss
@font-face {
font-family: "Carnevalee-Freakshow";
// File at `app/assets/fonts/Carnevalee-Freakshow.ttf
src: font-url('Carnevalee-Freakshow.ttf') format('truetype');
}
View rails_render_benchmark_code_and_templates
# test/template/benchmark/render_erb_test.rb
# encoding: utf-8
require 'abstract_unit'
require 'controller/fake_models'
require 'benchmark/ips'
class TestController < ActionController::Base
end
class RenderErbBenchmarks < ActiveSupport::TestCase