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 Rails 5.1 deprecation warnings #273

Merged
merged 1 commit into from
Jul 21, 2017
Merged

Fix Rails 5.1 deprecation warnings #273

merged 1 commit into from
Jul 21, 2017

Conversation

Spone
Copy link
Contributor

@Spone Spone commented Jul 18, 2017

Just a heads-up as it's not critical (and I know you don't support Rails 5.1 yet).

I get this when I run my tests on a Rails 5.1 project with Fae::BaseModelConcern included in my model.

DEPRECATION WARNING: Passing a class to the `class_name` is deprecated and will raise an ArgumentError in Rails 5.2. It eagerloads more classes than necessary and potentially creates circular dependencies. Please pass the class name as a string: `has_many :tracked_changes, class_name: 'Fae::Change'` (called from include at /home/hans/projects/myproject/app/models/my_model.rb:2)

```
DEPRECATION WARNING: Passing a class to the `class_name` is deprecated and will raise an ArgumentError in Rails 5.2. It eagerloads more classes than necessary and potentially creates circular dependencies. Please pass the class name as a string: `has_many :tracked_changes, class_name: 'Fae::Change'`
```
@jamesmk jamesmk merged commit 8102692 into wearefine:master Jul 21, 2017
@jamesmk
Copy link
Member

jamesmk commented Jul 21, 2017

Thanks!

@Spone Spone deleted the patch-1 branch July 22, 2017 08:59
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.

2 participants