Skip to content

Instantly share code, notes, and snippets.

View jackjennings's full-sized avatar
⛰️

Jack Jennings jackjennings

⛰️
View GitHub Profile
label::after {
content: "";
height: 8px;
width: 0;
border-top: 7px solid $color-white;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
position: absolute;
right: 16px;
top: 14px;
namespace :rvm do
task :trust_ruby_env do
on roles(:web) do
within release_path do
execute "#{fetch(:rvm_path)}/bin/rvm", "rvmrc trust #{release_path}/.ruby-env"
end
end
end
end
Drink
* name:string
* has_many :steps
* has_many :ingredients
Ingredient
* has_one :measurement
* has_one :component
Component
Object.class_eval do
def self.const_added(const_name)
super
if !const_name.to_s.upcase!
self.private_constant const_name
end
end
end
class Foo