Why is Ruby on Rails' default_scope bad?
A pretty popular opinion in the Ruby on Rails community is that default_scopes should not be used for any reason. However, often it's not fully explained why default_scopes are harmful to applications. Default Scopes are harmful because they are unexpected and hard to.
Why is Ruby on Rails' default_scope bad? #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/why-is-ruby-on-rails-default_scope-bad