Skip to content

Instantly share code, notes, and snippets.

@blakewest
Created April 21, 2017 19:15
Show Gist options
  • Save blakewest/b81844e1032596d97cc8bfd5dd0de8fe to your computer and use it in GitHub Desktop.
Save blakewest/b81844e1032596d97cc8bfd5dd0de8fe to your computer and use it in GitHub Desktop.
class Forest::MembershipPatient
include ForestLiana::Collection
collection :membership_patients
field :name, type: 'String' do |object|
::MembershipPatient.unscoped.find(object.id).name
end
end
@blakewest
Copy link
Author

Note, this box is rather small to be re-arranging like 30 columns. Being able to make this box larger would be helpful.
image

@blakewest
Copy link
Author

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:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment