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
ROM::Struct::MissingAttribute:
undefined method `[]=' for #<ROM::Struct::ProCompany:0x00007ffed0791040>
Did you mean? [] (attribute not loaded?)
# /Users/username/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rom-core-5.0.2/lib/rom/struct.rb:105:in `rescue in method_missing'
# /Users/username/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/rom-core-5.0.2/lib/rom/struct.rb:102:in `method_missing'
# /Users/username/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/transproc-1.1.0/lib/transproc/array/combine.rb:26:in `block in add_groups_to_element'
It tries to use #[]= operator on ROM::Struct while its not defined on it
estepnv
changed the title
ROM::Struct::MissingAttribute undefined method `[]=' for #<ROM::Struct::ProCompany
Nested association assignment on :create command execution - ROM::Struct::MissingAttribute undefined method `[]=' for #<ROM::Struct>
Jul 22, 2019
estepnv
changed the title
Nested association assignment on :create command execution - ROM::Struct::MissingAttribute undefined method `[]=' for #<ROM::Struct>
Nested association assignment on :create command execution
Jul 22, 2019
The example described here https://rom-rb.org/5.0/learn/repositories/writing-aggregates/
Creating a record along with associated records raises
It tries to use
#[]=
operator on ROM::Struct while its not defined on itTo Reproduce
Expected behavior
It should not raise error
Environment
The text was updated successfully, but these errors were encountered: