Breaking the Singleton: How to Reload Ruby Singleton Instance
Ruby's Singleton module has an undocumented method that lets you reload instances. Here's how I used it to fix my Rails tests.
blog.arkency.com/breaking-the...
07.07.2025 09:28 — 👍 0 🔁 1 💬 0 📌 0
⚡ Event Sourcerer
✍️ Blogger at http://event-driven.io
👨💻 Open Sourcing at https://github.com/oskardudycz
📧 Newsletter: http://architecture-weekly.com
#EventModeling author, #EventSourcing programmer and contributor, #EventDriven systems architect, #GIT geek, #FOSS proponent and #OpenStandards supporter
EventModeling.org
AdaptechGroup.com
Founder at Brand24 a social listening company with thousands of clients from 154 countries. Award-winning photographer. Humble singer & guitar player.
CEO/Engineer, creator of Sidekiq
https://mikeperham.com
https://contribsys.com
https://sidekiq.org
Portland, OR
👴 speedrunning retirement
🧑💻 (prev.) cheap science officer at Rebased
🤹♂️ (prev.) assistant professor at WUT’s cybersecurity division
💎 (bad co-)maintainer of Bogus & Reek
📷 (very amateur) street photographer
🫂 he/him, vim/nvim
🕸️ https://chastell.net
www.2n.pl CEO, RoR developer, sailor, m:tg player.
Save the date — April 11-13th, 2025
https://wrocloverb.com/
NopeJS programmer at https://northpass.com, unfulfilled football player, board/war gamer, Vim cleric and Elixir fanboy.
I help custom software development companies to market and sell their services. www.paulmajchrzak.com
I solve problems. Dealing with legacy Ruby on Rails software with a help of DDD. arkency since 2014
Arkency | RailsEventStore | wroc_love.rb
Rails programmer since 2004
Chess player aspiring to become IM
coffee amateur
sf books lover
DDD, CQRS, Event Sourcing
thoughtbot is your expert partner for product design and development. We help you lead the way through better products, faster teams, and stronger growth.
https://thoughtbot.com/
official Bluesky account (check username👆)
Bugs, feature requests, feedback: support@bsky.app