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
# model with associationsclassFoo < ActiveRecord::Basephi_modelbelongs_to:barhas_many:bazextend_phi_access:bar,:bazend# setup associationsfoo=Foo.newbar=Bar.newbaz=Baz.newfoo.bar=barfoo.baz << baz# PHI access is not extended until we call the wrapped methodfoo.allow_phi!('me','reason')foo.association(:bar).reader.phi_allowed?# => falsefoo.bar.phi_allowed?# => truefoo.association(:bar).reader.phi_allowed?# => true# desired outcomefoo.allow_phi!('me','reason')foo.association(:bar).reader.phi_allowed?# => truefoo.bar.phi_allowed?# => truefoo.association(:bar).reader.phi_allowed?# => true
We should update allow_phi! to proactively iterate over PHI extensions and call allow PHI on them.
The text was updated successfully, but these errors were encountered:
We should update
allow_phi!
to proactively iterate over PHI extensions and call allow PHI on them.The text was updated successfully, but these errors were encountered: