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
I expected scopes on association to work, but they currently don't. Is this a planned feature, or something that is worth me investigating as an enhancement?
Any direction would be appreciated if this enhancement is desired for the project.
classProjectincludeHer::Modelhas_many:iterations# This works.defcurrent_iterationiterations.where(scope: :current).firstendendclassIterationincludeHer::Modelbelongs_to:projecthas_many:storiesscope:done,->{where(scope: :done)}scope:current,->{where(scope: :current)}scope:offset,->(offset){where(offset: offset)}endproject=Project.find(12345)iteration=project.current_iteration
This is what I want to be able to do, but current is undefined on the Her::Model::Associations::HasManyAssociation
This is something that would be really useful. This involves rewriting the associations code to make it compatible with the Her::Model::Relation system.
Let me know if this something you’d like to work on! 😄
I expected scopes on association to work, but they currently don't. Is this a planned feature, or something that is worth me investigating as an enhancement?
Any direction would be appreciated if this enhancement is desired for the project.
This is what I want to be able to do, but
current
is undefined on theHer::Model::Associations::HasManyAssociation
The text was updated successfully, but these errors were encountered: