Hello!
I need high-level rule that accepts additional fields to validate form
This solution is not working time_occupied? predicate arity is invalid
configure do def time_occupied?(start_from, end_at, id) // end end
rule(time_occupied_rule: [:id, :start_from, :end_at]) do |id, start_from, end_at| id.time_occupied?(start_from, end_at) end
Is there any solution in this case?
version: 0.10.7