-
I have a resource like this: class Avo::Resources::MyModel < Avo::BaseResource
def fields
field "Computed field",
as: :text do |model, resource, view|
# model.inspect
# resource.inspect
# view.inspect
end
end
end And all |
Beta Was this translation helpful? Give feedback.
Answered by
krystof-k
Mar 9, 2024
Replies: 1 comment
-
OK, I'm reading documentation for Avo 2 the whole time… 🤦 It would be nice to highlight it there. In Avo 3, it works without the block parameters. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
krystof-k
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, I'm reading documentation for Avo 2 the whole time… 🤦 It would be nice to highlight it there.
In Avo 3, it works without the block parameters.