Skip to content

STI class not inheriting attributes from citier child class #67

@maliakmal

Description

@maliakmal

Hi guys I have the following classes set up:

class Contact < ActiveRecord::Base
acts_as_citier
end

class Company < Contact
acts_as_citier
end

class Operator < Company
end

When I try to instantiate an object of Company I get an object with all the attributes of Company class and Contact however if I try to instantiate an object of class Operator I only get the attributes of class Contact and not of Company which I'm inheriting from. I've dropped and created my citier views however still can't resolve this. Please do help.

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