ActiveRecord::find issue with :includes
-
Greg Vaughn
I've been digging and have narrowed this down a bit. For some reason when June includes AASM, inherited_with_inheritable_attributes is not called. This method is aliased to inherited by Rails and sets up the association metadata in Beaver. If I directly call
June.send :inherited_with_inheritable_attributes, Beaver
the problem goes away.
I created a dummy module and included that in June to see if this was a deeper issue in Ruby and/or Rails, but the error does not appear. It's specific to AASM so far as I can tell.
-
Greg Vaughn
I have an isolated solution I'm almost happy with. Will update with a
pull request when ready.
A deeper solution may be to use an inheritable attribute for the state
machine. I'll send you a quick fix and decide whether I want to tackle
that refactoring.
On Jul 25, 2008, at 1:44 PM, Lighthouse wrote:
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.