In this line:
visits.map(&:visit_status_id).max == VisitState.get(state).id
I’m just curious what that ampersand is doing there and its relevance to
being passed into map with the symbol.
Also, when you specify a has_many :visits, for example, will that create
a local variable in the model called visits, which contains the
collection of records from the visits table?
Thanks for response