[openstreetmap/openstreetmap-website] Enable erb-no-instance-variables-in-partials lint rule (PR #6921)
Pablo Brasero
notifications at github.com
Wed Mar 25 10:30:47 UTC 2026
@pablobm commented on this pull request.
> @@ -11,15 +11,15 @@
<div class="col">
<h1><%= @title %></h1>
- <%= render :partial => "navigation" %>
+ <%= render "navigation", :user => @user, :languages => @languages || [] %>
Alternatively:
```suggestion
<%= render "navigation", :user => @user, :languages => Array.wrap(@languages) %>
```
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6921#pullrequestreview-4005605920
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6921/review/4005605920 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260325/c78076e1/attachment.htm>
More information about the rails-dev
mailing list