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

Subclasses stomp on superclass fields with the same name breaking the field for other subclasses #54

Closed
RickMoynihan opened this issue Jun 6, 2016 · 1 comment

Comments

@RickMoynihan
Copy link
Member

RickMoynihan commented Jun 6, 2016

      class Base
        include Tripod::Resource
        field :inherited, RDF::RDFS::label
      end

      class Foo < Base
        # expects inherited to be RDF::RDFS::label
      end

      class Bar < Base
        field :inherited, RDF::URI.new("http://stomp/over/inherited/field")
      end

Foo.fields[:inherited].predicate.to_s ;; => "http://stomp/over/inherited/field"

(should be RDF::RDFS::label)

@RickMoynihan RickMoynihan changed the title Subclasses stomp on Superclass fields with the same name breaking the field for other classes that inherit it Subclasses stomp on superclass fields with the same name breaking the field for other classes that inherit it Jun 6, 2016
@RickMoynihan RickMoynihan changed the title Subclasses stomp on superclass fields with the same name breaking the field for other classes that inherit it Subclasses stomp on superclass fields with the same name breaking the field for other subclasses Jun 6, 2016
@RicSwirrl
Copy link
Member

Cheers for the bug report.

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