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

Doesn't work with ActiveRecord 4 #1

Open
ben-moxon opened this issue Apr 23, 2014 · 2 comments
Open

Doesn't work with ActiveRecord 4 #1

ben-moxon opened this issue Apr 23, 2014 · 2 comments

Comments

@ben-moxon
Copy link

I have been looking at upgrading a site that uses redis-column to Rails 4 and I have hit a problem where I see "undefined method `assign_redis_columns'" on any model.

@ajn
Copy link
Owner

ajn commented Apr 23, 2014

I've just pushed a potential working version to a rails4 branch, try it out with:
gem "redis-column", github: "ajn/redis-column", branch: "rails4"
If it works for you, I'll push a new version of the gem.

p.s. I assumed you're also upgrading to the latest ruby so have bumped to that too.

@ben-moxon
Copy link
Author

Unfortunately I'm still seeing the same problem - it looks as though it is getting as far as the "after_initialise :assign_redis_columns" call and then it simply can't find the method on the model. I don't yet have a good enough handle on the Concerns approach to be able to patch it correctly yet.

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

No branches or pull requests

2 participants