Sort all models
# avo-2
b
Hi again, is there a way to apply the same sorting to all models? For example enforce that they are sorted by the created_at attribute or other one?
l
Hello @bland-terabyte-47512 , there are multiple ways of doing that, if you want the same default scope for all your models I would suggest you to do it in the parent app directly on the models
b
That sounds like the best way, thank you!
l
Maybe look into concerns, that way you can apply multiple configurations to all models without repeating code making it easier to maintain
Anytime!