Skip to content

Does not work with models with . in table name  #15

@westonganger

Description

@westonganger

In some of my Rails apps I connect to multiple databases. In that way I define my models like so:

class Project < OtherDatabaseModels
  self.table_name = "other_db.projects"
end

It is outputting the following error in the file after running the annotations

# Could not dump table "other_db.projects" because of following NoMethodError
#   undefined method `[]' for nil:NilClass

The error is for having the . in the table name. Its not related not to using the second database.

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