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

Fix missing param, accept Class in AR assoc class_name param #31

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

Conversation

ypresto
Copy link

@ypresto ypresto commented Jul 10, 2017

  • anonymous_class was missing from block params, AR's method_missing is called and fails
  • We use Class constant for class_name, such like class_name: User.

@ypresto
Copy link
Author

ypresto commented Jul 14, 2017

omg... I got this today.

DEPRECATION WARNING: Passing a class to the `class_name` is deprecated and will raise an ArgumentError in Rails 5.2.

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