Nested STI?

Hi,

I’m having some issues when trying to nest multiple STIs. Is possible?
i.e.:

class Author
:has_many => :posts
end

class Reviewer < Author
end

class Administrator < Reviewer

class Post
belongs_to :author
end

admin = Administrator.create
Post.create(:author => admin)

Ignorem o erro na sintaxe ali. :stuck_out_tongue:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs