Skip to content

Fix: add missing OpenStruct require for Ruby 3.2+ compatibility#584

Merged
fwuensche merged 1 commit intomainfrom
fwuensche/fix-guides-link
Mar 16, 2026
Merged

Fix: add missing OpenStruct require for Ruby 3.2+ compatibility#584
fwuensche merged 1 commit intomainfrom
fwuensche/fix-guides-link

Conversation

@fwuensche
Copy link
Copy Markdown
Contributor

Summary

Fixed a NameError in the guides page caused by OpenStruct not being explicitly required. In Ruby 3.2+, OpenStruct is no longer autoloaded by default.

Changes

Added require 'ostruct' to app/models/guide.rb.

🤖 Generated with Claude Code

OpenStruct is no longer autoloaded in Ruby 3.2+. The guides page was returning a NameError in production because OpenStruct wasn't required.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@fwuensche fwuensche merged commit 5d72d4d into main Mar 16, 2026
2 checks passed
@fwuensche fwuensche deleted the fwuensche/fix-guides-link branch March 16, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant