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

Two level inheritance => fetch issue #62

Open
jlafourc opened this issue Sep 5, 2012 · 1 comment
Open

Two level inheritance => fetch issue #62

jlafourc opened this issue Sep 5, 2012 · 1 comment

Comments

@jlafourc
Copy link

jlafourc commented Sep 5, 2012

Hi,

I'm testing the gem so I've created a small project with this :

class Party < ActiveRecord:Base
acts_as_citier
end

class Person < Party
acts_as_citier
end

class Structure < Person
acts_as_citier
end

I wrote the migrations like in the example.

So the test is :

  • Open a console
  • Insert a Structure in the database => OK I've got everything in every table
  • I do Party.all => It fetches the Structure
  • Close the console
  • Open a new console
  • I do Person.all => nothing is fetched
  • I do Party.all => It fetches the Structure as usual
  • I do Person.all => Now it fetches the Structure

Weird ?

Thanks for help

Julien

@justinchoy
Copy link

Hi, I have the same issue.
It seems as though its not loading the views correctly. Have you found a solution yet?

Thanks
Justin

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