Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: association_parser #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelrigart
Copy link
Contributor

In PR #44 the requrest is to cast the AC::Parameters to a hash. This is not needed, since AC::Parameters has a values call that delegates it to the @parameters variable. The variable is a ActiveSupport::HashWithIndifferentAccess, which has a values method.
So the only thing that needs to be done is extend the conditional to check if the attributes variable is AC::Parameters object.

Another option would be to change the conditional to see of the attributes objec respond_to?(:values)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant