I don't think you need `local_assigns` here -- `nodes = paginate_scope(nodes)` should work.