fractaledmind / activeset

A toolkit for working with enumerable sets.
MIT License
2 stars 1 forks source link

Sorting can cause model's default scope to override #35

Open emolayi opened 5 years ago

emolayi commented 5 years ago

When merging in the sort instructions, the default scope on a model will override conflicting filters applied to the passed in set: https://github.com/fractaledmind/activeset/blob/master/lib/active_set/sorting/active_record_strategy.rb#L15

fractaledmind commented 5 years ago

Moved to new monorepo -> https://github.com/fractaledmind/actionset/issues/25

fractaledmind commented 5 years ago

@emolayi or @riyengar8: Can you write a spec to capture this behavior?