Skip to content

Commit

Permalink
fix undefined local variable/method to let the test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
zhephyn committed Mar 10, 2025
1 parent f4ef610 commit ae6cd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avo/fields/base_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def in_action?
def get_resource_by_model_class(model_class)
resource = Avo.resource_manager.get_resource_by_model_class(model_class)

resource || (raise Avo::MissingResourceError.new(model_class, id, field))
resource || (raise Avo::MissingResourceError.new(model_class, id, self))
end
end
end
Expand Down

0 comments on commit ae6cd44

Please sign in to comment.