Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant Spina::Theme::OpenStruct with Spina 2.18.0 and Rails 7.2.2 on Ruby 3.2.6 #1393

Open
donnoman opened this issue Nov 14, 2024 · 2 comments

Comments

@donnoman
Copy link

after logging in /admin/login

uninitialized constant Spina::Theme::OpenStruct

Screenshot 2024-11-13 at 3 49 09 PM

continues to happen downgrading to Rails 7.1.0

could also just be a scope of that module name issue maybe prepend with ::OpenStruct.new({ ...

I added ostruct to my gemfile and I still get the error.

Might be related to Ruby Ostruct being pulled out of system gems though. I didn't see evidence of that with Ruby 3.2.6 but Ruby 3.5.0

@donnoman
Copy link
Author

donnoman commented Nov 14, 2024

I was able to get this working without changing that file with:
Ruby 3.2.6
Ruby on Rails 6.1.7.10
Spina 2.18.0
Graphicsmagick 1.0.6

The ROR version being the important part, the rest for reference only.

@MSchmidt
Copy link
Contributor

I've just added a require 'ostruct'. Should work in any place. I've just added it on top of the Spina initializer.

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

No branches or pull requests

2 participants