You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but m.tags is an ActiveRecord collection, not an an array, so there is no intersect? method here (where as in the code before,
an automatic conversion seems to have happened).
I think an obvious solution would be to write m.tags.to_a.intersect?.
The text was updated successfully, but these errors were encountered:
Since rolling out #579, we are seeing the follwing error in production:
The reason is that in
media_controller.rb
, we have in line 639which replaced
but
m.tags
is an ActiveRecord collection, not an an array, so there is nointersect?
method here (where as in the code before,an automatic conversion seems to have happened).
I think an obvious solution would be to write
m.tags.to_a.intersect?
.The text was updated successfully, but these errors were encountered: