We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When running Avalon's test suite I'm seeing the following error:
FrozenError: can't modify frozen Array: ["field is required."] # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:249:in `block in association_valid?' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:246:in `association_valid?' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:233:in `block in validate_collection_association' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:233:in `each' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:233:in `validate_collection_association' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:147:in `block in define_autosave_association_callbacks' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:105:in `instance_eval' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/autosave_association.rb:105:in `block in define_non_cyclic_method' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/validations.rb:100:in `block in run_validations!' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/validations.rb:100:in `run_validations!' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/validations.rb:69:in `valid?' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/validations.rb:93:in `perform_validations' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/validations.rb:50:in `save' # /usr/local/bundle/gems/active-fedora-14.0.0/lib/active_fedora/associations/builder/orders.rb:44:in `save' # ./app/models/master_file.rb:248:in `media_object='
I think this could be resolved by avoiding modification of the frozen array by using += instead of << and .uniq instead of .uniq! on
+=
<<
.uniq
.uniq!
active_fedora/lib/active_fedora/autosave_association.rb
Lines 248 to 249 in 8e7d365
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When running Avalon's test suite I'm seeing the following error:
I think this could be resolved by avoiding modification of the frozen array by using
+=
instead of<<
and.uniq
instead of.uniq!
onactive_fedora/lib/active_fedora/autosave_association.rb
Lines 248 to 249 in 8e7d365
The text was updated successfully, but these errors were encountered: