-
Notifications
You must be signed in to change notification settings - Fork 2
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
dependent option is ignored when using :through option #1045
Conversation
rubocop. one thing i just noticed in the doc you linked:
which is not the case here. IIRC, there's only one scope that uses that preservation_catalog/app/models/zip_endpoint.rb Lines 24 to 31 in 9ed2b70
we'd have to join through to maybe we should just punt on this for now and ticket the other thing and get rid of this |
Rubocop flagging this is a bug in the old version we have: Unfortunately, after updating to a more recent version, we go from checking
|
We jumped over several bugs in rubocop-rspec (DescribeClass cop crashing) and in rubocop itself (false positives). Most of the corrections are whitespace or trivial formatting. NOTE: we had to respecify to include `**/*.rb` files, since our include statement now overrides anything upstream (i.e. the default) rather than append to it.
@jmartin-sul we looked at that when we first stumbled on the docs. The other class does contain the foreign key, for the thing we are associating to. For this, it isn't important that Updated our rubocop and rubocop-rspec versions and got it to be cool w/ the 1-line change. As a side-benefit, a bunch of extra whitespace cleanup. |
@atz: ah, ok, i misread the docs as implying that the FK chain should point back to the thing that and that made sense to me, because the but if that's not the case, i retract my above comment. i dunno, the language feels ambiguous to me. you've got more AR experience than me, so i'd trust your judgement on this. |
anyway, regardless of whether we should be using |
See: https://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_one
Closes #1014