Created
April 21, 2017 19:15
-
-
Save blakewest/b81844e1032596d97cc8bfd5dd0de8fe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Forest::MembershipPatient | |
include ForestLiana::Collection | |
collection :membership_patients | |
field :name, type: 'String' do |object| | |
::MembershipPatient.unscoped.find(object.id).name | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here, name is in my list twice. I do not know why. It is not a DB column of this model. I had to add it specifically. See the code snippet above. That is me adding it specifically:
