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
loud-jewelry-99127
07/10/2023, 4:25 PM
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
bland-terabyte-47512
07/10/2023, 4:26 PM
That sounds like the best way, thank you!
l
loud-jewelry-99127
07/10/2023, 4:27 PM
Maybe look into concerns, that way you can apply multiple configurations to all models without repeating code making it easier to maintain