little-psychiatrist-30020
08/24/2022, 6:08 PMlemon-wall-20836
08/24/2022, 6:09 PMlemon-wall-20836
08/24/2022, 6:09 PMlemon-wall-20836
08/24/2022, 6:09 PMlemon-wall-20836
08/24/2022, 6:10 PMlittle-psychiatrist-30020
08/24/2022, 6:21 PMlittle-psychiatrist-30020
08/24/2022, 6:22 PMlemon-wall-20836
08/24/2022, 6:22 PMlemon-wall-20836
08/24/2022, 6:22 PMpending
to paid
?little-psychiatrist-30020
08/24/2022, 6:24 PMpay!
action in Avo, and which actions are available given the current state, etc.lemon-wall-20836
08/24/2022, 6:24 PMlittle-psychiatrist-30020
08/24/2022, 6:26 PMlemon-wall-20836
08/24/2022, 6:27 PMlittle-psychiatrist-30020
08/24/2022, 6:31 PMlemon-wall-20836
08/24/2022, 6:32 PMlemon-wall-20836
08/24/2022, 6:32 PMlittle-psychiatrist-30020
08/24/2022, 6:50 PMlemon-wall-20836
08/24/2022, 6:50 PMlittle-psychiatrist-30020
08/24/2022, 6:51 PMlemon-wall-20836
08/24/2022, 6:51 PMlemon-wall-20836
08/24/2022, 6:52 PMvisible
block on every actionlemon-wall-20836
08/24/2022, 6:52 PMlittle-psychiatrist-30020
08/24/2022, 6:52 PMself.visible = -> (resource:, view:) { view == :show }
lemon-wall-20836
08/24/2022, 6:52 PMresource
and you can access the actual record with resource.model
little-psychiatrist-30020
08/24/2022, 6:54 PMlemon-wall-20836
08/24/2022, 6:54 PMlittle-psychiatrist-30020
08/24/2022, 6:56 PMlemon-wall-20836
08/24/2022, 6:57 PMlittle-psychiatrist-30020
08/24/2022, 6:59 PMlemon-wall-20836
08/24/2022, 7:00 PMlemon-wall-20836
08/24/2022, 7:00 PMhandle
method, name
, visible
block, etc., right?little-psychiatrist-30020
08/24/2022, 7:01 PMlittle-psychiatrist-30020
08/24/2022, 7:02 PMlemon-wall-20836
08/24/2022, 7:02 PMlittle-psychiatrist-30020
08/24/2022, 7:03 PMlemon-wall-20836
08/24/2022, 7:03 PMlemon-wall-20836
08/24/2022, 7:03 PMlemon-wall-20836
08/24/2022, 7:04 PMlemon-wall-20836
08/24/2022, 7:04 PMlittle-psychiatrist-30020
08/24/2022, 7:04 PMlemon-wall-20836
08/24/2022, 7:04 PMlemon-wall-20836
08/24/2022, 7:05 PMlittle-psychiatrist-30020
08/25/2022, 12:30 PMif resource.may_complete?
which is true/false. Any ideas?lemon-wall-20836
08/25/2022, 12:31 PMlemon-wall-20836
08/25/2022, 12:31 PMlittle-psychiatrist-30020
08/25/2022, 12:31 PMlittle-psychiatrist-30020
08/25/2022, 12:31 PMlemon-wall-20836
08/25/2022, 12:31 PMvisible
block on the actionlemon-wall-20836
08/25/2022, 12:32 PMresource
lemon-wall-20836
08/25/2022, 12:32 PMresource.model
holds the statelemon-wall-20836
08/25/2022, 12:32 PMresource.model.may_complete?
little-psychiatrist-30020
08/25/2022, 12:33 PMlemon-wall-20836
08/25/2022, 12:33 PMlemon-wall-20836
08/25/2022, 12:33 PMlemon-wall-20836
08/25/2022, 12:33 PMruby
self.visible = -> (resource:, view:) { resource.model.may_complete? }
lemon-wall-20836
08/25/2022, 12:33 PMlittle-psychiatrist-30020
08/25/2022, 12:34 PMlemon-wall-20836
08/25/2022, 12:34 PMlittle-psychiatrist-30020
08/25/2022, 12:38 PMself.visible = -> (resource:, view:) { resource.model.try(:may_complete?) ? view == :show : false }
little-psychiatrist-30020
08/25/2022, 12:38 PMlemon-wall-20836
08/25/2022, 12:55 PMlittle-psychiatrist-30020
08/31/2022, 2:46 PMfield :memberships, as: :has_many, detach_button: false
but it doesn't appear to do anything.little-psychiatrist-30020
08/31/2022, 2:46 PMlemon-wall-20836
08/31/2022, 2:46 PMlemon-wall-20836
08/31/2022, 2:46 PMlemon-wall-20836
08/31/2022, 2:47 PMlemon-wall-20836
08/31/2022, 2:47 PMcan_attach?
, can_edit?
and otherslittle-psychiatrist-30020
08/31/2022, 2:48 PMlittle-psychiatrist-30020
08/31/2022, 3:03 PMtranslation missing: en.avo.x_records_selected_from_a_total_of_x_html
little-psychiatrist-30020
08/31/2022, 3:04 PMlemon-wall-20836
08/31/2022, 3:04 PMlemon-wall-20836
08/31/2022, 3:04 PMlemon-wall-20836
08/31/2022, 3:05 PMbin/rails generate avo:locales
lemon-wall-20836
08/31/2022, 3:05 PMlittle-psychiatrist-30020
08/31/2022, 3:05 PMlemon-wall-20836
08/31/2022, 3:06 PMlemon-wall-20836
08/31/2022, 3:06 PMlemon-wall-20836
08/31/2022, 3:06 PMlemon-wall-20836
08/31/2022, 3:06 PM