Skip to content


Mass Assignment #1

aaronchi opened this Issue · 4 comments

2 participants


The plugin doesn't account for the new Rails 3.2 strict mass assignment setting. It would be nice if the methods that added likes and follows used :without_protection => true or some other method to avoid mass assignment errors.


Would you mind sending a pull request for this? The code should be fairly easy to understand. Thanks!


yah. Can do it when I have some time. Looking at this as a potential replacement for acts_as_follower but it seems to have some other issues as well. For example: object.followers returns an array instead of a scoped method that you can apply other scopes to.


I've been using the code in production for ~3 weeks and it's been super stable.

I agree with you with the .followers array. I never got around to changing it, it should definitely be a scoped method.


@aaronchi See issue #2 about your second request (scope).

@cmer cmer closed this issue from a commit
@cmer Fixes #1 5bf34c8
@cmer cmer closed this in 5bf34c8
@listrophy listrophy referenced this issue from a commit in listrophy/socialization
@listrophy listrophy Use block form of create to work across AR versions.
- The :without_protection flag only works on newer ActiveRecord versions.
- Fixes #1 (for more versions of ActiveRecord)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.