You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding field :attributes causes an immediate SystemStackError: stack level too deep with one (useless) level of backtrace. (When running Cucumber it's somewhere in Cucumber; when running RSpec it's somewhere in RSpec.)
Probably the right thing to do is to raise a better error sooner, so the user knows what the real problem is.
The text was updated successfully, but these errors were encountered:
I can't reproduce this. Can you post more details (active_hash version, ruby version, exact code snippet etc...)? The following does not error out for me with AcitveHash 0.9.1 on REE:
class SomeClass < ActiveHash::Base
fields :attributes
end
class SomeClass < ActiveHash::Base
field :attributes
end
It's still confusing and wrong and I'll fix it, but I'd like to be able to reproduce the issue if possible. Thanks!
For now I've updated ActiveHash to raise an error when trying to overwrite :attributes. Eventually I'll probably move that into the Rails module, since it's only really there for AR compatibility (POLS).
Adding
field :attributes
causes an immediateSystemStackError: stack level too deep
with one (useless) level of backtrace. (When running Cucumber it's somewhere in Cucumber; when running RSpec it's somewhere in RSpec.)Probably the right thing to do is to raise a better error sooner, so the user knows what the real problem is.
The text was updated successfully, but these errors were encountered: