-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
I'd like to be able to do something like this:
belongs_to :shop, class_name: 'AppShared::Shop', default_scope: ->{ asc(:name) }
I can think of two use cases:
1) Set sort order on relations
2) When using Mongoid::Paranoid, use "unscoped" on the relation to get deleted objects.
Any thoughts?