martinrehfeld/role_model — Issue #14: Defining `def inherited()` causes incompatibilities with Rails 3.2.
Author: leehambley
Created: 2012-01-27 09:24:27+00:00
State: open

… and other gems which define `def inherited`.

The code, [`./lib/role_model/class_methods.rb`](https://github.com/martinrehfeld/role_model/blob/master/lib/role_model/class_methods.rb) seems to be the problem. It causes for example, Carrierwave and Kaminari to work unreliably.

Kaminari have pushed a fix for this at https://github.com/amatsuda/kaminari/commit/5894d6805e31b856e5dd99a9013cc4a5cbf83ec1.

I've forked role_model and plan on experimenting, but owing to the way `role_model` is built, the patch doesn't apply 1:1 from Kaminari, unfortunately.

I can't even say for certain that this is the problem, but I am investigating.