delegating methods
delegate
fun trick!

#extradirty
Aqua Utopia|海の底で記憶を紡ぐ
I'd rather be in outer space 🛸

JVL
No title available
Game of Thrones Daily

Kaledo Art
Three Goblin Art

titsay

JBB: An Artblog!
Jules of Nature

ellievsbear
Today's Document

if i look back, i am lost

shark vs the universe
Misplaced Lens Cap

tannertan36

Kiana Khansmith
No title available
styofa doing anything
seen from United States

seen from Russia

seen from United States

seen from Malaysia
seen from Malaysia
seen from United States
seen from United States

seen from United Kingdom

seen from Czechia
seen from Malaysia
seen from Indonesia

seen from United States

seen from United States
seen from Brazil

seen from Türkiye
seen from United States
seen from T1

seen from Türkiye

seen from Germany

seen from Singapore
@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