Skip to content

Two level inheritance => fetch issue #62

@jlafourc

Description

@jlafourc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions