Default as block
# avo-2
c
This will break any CI that creates a test database.
field :role_id, as: :hidden, default: Role.author.id
Role.author.id gets evaluated when the app loads but before the db gets created. Anybody know a good workaround? Here's a more complete gist: https://gist.github.com/davekruse/a7eb9e8719d5f8419bc2e04c43b3eebe
l
Wrap it in a block
c
Dangit, @lemon-wall-20836 , that's too easy!
What was I thinking?
l
because of that reason (evaluation on boot time), most options are blocks
this will change in Avo 3