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
class ExerciseType < ApplicationRecord
has_many :exercise_types_user
has_many :users, through: :exercise_types_user
end
class User < ApplicationRecord
has_many :exercise_types_user
has_many :exercise_types, through: :exercise_types_user
end
class ExerciseTypesUser < ApplicationRecord
belongs_to :user
belongs_to :exercise_type
end
# works perfectly:
user.exercise_types << exercise_type
# but here is the bug..
exercise_types.users.count
# returns a number higher than count + 1
# fine after a page refresh, so its just the client count which is not being updated correctly
The text was updated successfully, but these errors were encountered:
@barriehadfield I think this got fixed with other stuff. I put in a test spec for it, and it passes. Can you verify that it is indeed working on edge, and if not, reopen.
In
poly-assoc3
branch:The text was updated successfully, but these errors were encountered: