-
Notifications
You must be signed in to change notification settings - Fork 108
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
Error while starting server with Rails 5.2.0.rc1 #224
Comments
Looks like Rails is grabbing the wrong constant - not in Representable's hand. Maybe dig into the |
This is the code of yaml_column.rb 'load' method:
I think it tries to create an instance of module and throws exception while this process. But I don't understand why it tries to create instance of JSON module in yaml_column. |
Yepp, must be somewhere further up the stack. Is Rails maybe looking for constants that equal |
Could it be here: https://github.com/rails/rails/blob/master/activestorage/app/models/active_storage/blob.rb#L22 ? This is the first use of |
This is the culprit, replacing |
@renchap thank for work. Waitng for megre. |
`JSON` constant defined. For example when using the `representable` gem: trailblazer/representable#224
It has been merged into the |
I updated to Rails 5.2.0.rc1 and now have such error:
activerecord-5.2.0.rc1/lib/active_record/coders/yaml_column.rb:24:in 'load': undefined method 'new' for Representable::JSON:Module (NoMethodError)
Can anybody help me with this issue?
The text was updated successfully, but these errors were encountered: