r/ruby • u/ombulabs • 10h ago
Blog post Can You Remove DatabaseCleaner?
0
Upvotes
r/ruby • u/6stringfanatic • 15h ago
I wrote a post about using ActiveRecord::Relation#merge to share scopes across models in Rails.
The example shows how duplicating a query can lead to inconsistent behaviour, and how extracting the rule into a named scope avoids that.
https://pushfromkush.com/publications/merging-relations-scopes-in-rails
r/ruby • u/Codalio-SoftwareFact • 13h ago
r/ruby • u/galactic_lobster • 5h ago