Skip to content

Make compatible with Rails 3.2.22 - #8

Open
vollnhals wants to merge 1 commit into
smathieu:masterfrom
giantmonkey:vollnhals-compat-rails-3-2-22
Open

Make compatible with Rails 3.2.22#8
vollnhals wants to merge 1 commit into
smathieu:masterfrom
giantmonkey:vollnhals-compat-rails-3-2-22

Conversation

@vollnhals

Copy link
Copy Markdown

We are using preload_counts in rails 3.2.22 project.

Sadly it was not working because of two issues:

  • all is not lazy and so its not possible to call all.scoped. switch to scoped instead
  • the association reflection has no method scope. check with respond_to? before calling

I have not checked these changes with rails 4.

@smathieu

Copy link
Copy Markdown
Owner

Looks like this is breaking Rails 4. I haven't been using/maintaining this gem actively. This was originally written for Rails 2, then upgraded to Rails 3. You should try using an older version of the gem to address your issue.

I'm happy to accept a PR that makes this compatible with Rails 3 & 4, but please make sure the travis build tests all configurations.

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