cancancan icon indicating copy to clipboard operation
cancancan copied to clipboard

STI normalizer fails when existing rule conditions are relation

Open adzap opened this issue 1 year ago • 0 comments

See https://github.com/CanCanCommunity/cancancan/blob/959eee14e132b3f5e22b9e29649327eaf46efb37/lib/cancan/model_adapters/sti_normalizer.rb#L34

The merge presumes a hash of conditions but this raises error if the conditions are a relation.

adzap avatar Jul 04 '22 00:07 adzap