Skip to content

Annotates plain ruby objects if they have the same class name as an ActiveRecord object #121

Closed
@cdussud

Description

@cdussud

So I have an ActiveRecord model called Invoice.

class Invoice < ActiveRecord::Base
end

and I have a plain old Ruby class also called Invoice, but scoped within a module.

module MyNamespace
class Invoice
end
end

The plain Ruby object gets annotated (with the annotation for the active record class).
Expected: no annotation on the non-db-backed class.
Note that the active record class is correctly annotated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions