MaMpf (Mathematical Media Platform) — an E-Learning platform for mathematics featuring a media player & editor. Developed & deployed at Heidelberg University.
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?.
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?
.