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

exception can't modify frozen String raised while trying to load model #124

Open
laiskajoonas opened this issue May 28, 2018 · 2 comments
Open

Comments

@laiskajoonas
Copy link

I'm trying to run railroady on my rails 5.2 project, but I get bunch of exceptions complaining about the frozen literals and the model diagram does not have the relations correctly. frozen_string_literal: true stanza is recommended by rubocop. Is there a way to circumvent this problem? Other than removing all froze_string_literal lines from the project. I'm running railroady with following parameters:

railroady
-e app/models/<model_name>,
--hide-types --hide-through --hide-magic --include-concerns -m -M

The Warning is as follows:

Warning: exception can't modify frozen String raised while trying to load model class app/models/

@estani
Copy link

estani commented Oct 7, 2019

Same thing here. The resulting Diagram is just a bunch of boxes with no lines/arrows relating them.

I tried disabling it globally RUBYOPT=--disable-frozen-string-literal but this didn't help.

@chaumo
Copy link

chaumo commented Nov 9, 2022

Maybe too late but in case anyone wants to dig in deeper, I've had this problem on models using 'acts_as_votable/acts_as_voter' from acts_as_votable gem
Temp commenting those lines works, so haven't tried to update that gem (using 0.12.1), maybe it's fixed with newer versions

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

3 participants