Skip to content

Instantly share code, notes, and snippets.

View rafaelfranca's full-sized avatar
🚆
Focused on Rails

Rafael Mendonça França rafaelfranca

🚆
Focused on Rails
View GitHub Profile
# 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
@font-face {
font-family: "Carnevalee-Freakshow";
// File at `app/assets/fonts/Carnevalee-Freakshow.ttf
src: font-url('Carnevalee-Freakshow.ttf') format('truetype');
}
@rafaelfranca
rafaelfranca / 28718.rb
Last active July 4, 2022 20:11 — forked from alexcameron89/28718.rb
A Reproduction Script for Rails issue #28718
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"