delegating methods
delegate
fun trick!
KIROKAZE

pixel skylines

No title available
"I'm Dorothy Gale from Kansas"

tannertan36

Product Placement

Origami Around
The Stonewall Inn
Sweet Seals For You, Always
taylor price
Aqua Utopia|海の底で記憶を紡ぐ
hello vonnie

gracie abrams
Keni
No title available

roma★
occasionally subtle
🩵 avery cochrane 🩵
Fai_Ryy

bliss lane
seen from United States
seen from T1
seen from United Kingdom
seen from Russia
seen from United States
seen from Philippines

seen from India

seen from T1
seen from United States

seen from Germany

seen from United States
seen from United States

seen from Pakistan

seen from Brazil
seen from Italy
seen from Australia

seen from United Kingdom
seen from Malaysia
seen from Italy

seen from Australia
@decaffeinatedpolicefart
delegating methods
delegate
fun trick!
handling stubbing errors
I wanted to stub a method call to raise an error for a test case, but I ran into an error:
allow_any_instance_of(MyClass).to receive(:foo).and_return("bar")
I got this error message:
Using any_instance to stub a method (foo) that has been defined on a prepended module (#<Module:0x0123>) is not supported.
A super easy fix for that was to create a double instance of my class:
let(:my_class_instance) { double(MyClass, foo: "bar") }
and then:
before do
allow(MyClass).to receive(:new).and_return(my_class_instance)
end
Adding foreign key using strong migrations gem
if the table is small, just wrap everything in a safety_assured block and you can add the foreign key and reference in one single migration.
Just don't forget to run a backfill task to normalize your data!
We all know that Hollywood is the biggest film industry in the world — at least by the amount of money it makes and the spotlight it gets. B
Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each
movie recommendations!
Rails ActiveRecord scoping method allows applying scope to all queries in block. Rails7 adds all_queries which applies scope to objects quer
to replace your local branch with the remote branch
git fetch / git reset --hard origin/feature-branch
query performance log
ActiveRecord::Base.logger = Logger.new(STDOUT)
environment.rb
# Set to Logger::DEBUG for detailed SQL logging in environment.rb
ActiveRecord::Base.logger.level = Logger::DEBUG
well..if that's what tumblr suggested as my tumblog name
so be it