Skip to content

Commit 796786f

Browse files
committed
fix: Replace deprecated render text: with render html: for Rails 8 compatibility
1 parent 0beb65c commit 796786f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/users_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def tree
2727
@title << " By Karma"
2828
render_to_string action: "list", layout: nil
2929
}
30-
render text: content, layout: "application"
30+
render html: content.html_safe, layout: "application"
3131
elsif params[:moderators]
3232
@users = User.where("is_admin = ? OR is_moderator = ?", true, true)
3333
.order("id ASC").to_a
@@ -43,7 +43,7 @@ def tree
4343
@newest = User.order("id DESC").limit(10)
4444
render_to_string action: "tree", layout: nil
4545
}
46-
render text: content, layout: "application"
46+
render html: content.html_safe, layout: "application"
4747
end
4848
end
4949

0 commit comments

Comments
 (0)