Skip to content

Instantly share code, notes, and snippets.

View pixeltrix's full-sized avatar

Andrew White pixeltrix

View GitHub Profile
# Must have mysql installed with database 'activerecord_unittest' and user 'rails'
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'mysql2'
GEMFILE
system 'bundle'
# This works
require 'rubygems'
require 'activesupport'
class Base
def self.cry
"#{self.name}.cry called!"
end
end