Pop quiz time: Given a published post with an associated user, what gets printed here?
if user_id = post.user_id && post.published? do
IO.inspect(user_id)
end
Hint: It ain't what I thought. 😬
Post
Pop quiz time: Given a published post with an associated user, what gets printed here?
if user_id = post.user_id && post.published? do
IO.inspect(user_id)
end
Hint: It ain't what I thought. 😬
@entropealabs Yuuup. I looked at this in code review and was like "okay, so we're pulling out the user ID and also checking that it's published.
A space for Bonfire maintainers and contributors to communicate