If it is particularly important that a record not accidentally be displayed once deleted, is there a better way to help ensure this than giving it a default scope?
Use a wrapper around your ActiveRecord model - more and more I prefer this approach, where models define scopes and basic validations, but not how they are composed together.
If it is particularly important that a record not accidentally be displayed once deleted, is there a better way to help ensure this than giving it a default scope?
Use a wrapper around your ActiveRecord model - more and more I prefer this approach, where models define scopes and basic validations, but not how they are composed together.