Closed jnfeinstein closed 8 years ago
This needs to be documented in README I think. And fix the build please, rubocop -a
.
@JagdeepSingh your comments here?
@dblock will fix rubocop
. I did not add to README because the :fields
helper is also not included in the README.
Updated w/ rubocop
fixes.
Looks okay to me. Just that :relations
may be confusing for users. It will only track the embedded relations, not any other relation in the class. So, may be rename on: :relations
to on: :embedded_relations
or something. And/or have a clear documentation in the README about it.
@JagdeepSingh updated per your suggestion.
Still needs a README update otherwise looks great.
@dblock updated. I added a blurb on the :fields helper since that was also not documented.
Great, merged, Thanks!
I think this was already in the works given the deprecation warning when 'on' is set to 'all'. Adding 'fields' already triggers on all of the fields of the model, now adding 'relations' will do the same for all embedded relations. ['fields', 'relations'] should perform the desired future behavior of 'all'.