Skip to content

undefined method `to_adapter' for User:Class #10

@stefl

Description

@stefl

If a user attempts to edit their profile they will get this error.

To fix this I had to do something like this, which feels like a cludge:

class Adapter
  def get! identifier
    User.get(identifier)
  end
end

in my User class:

def self.to_adapter
  Adapter.new
end

Is there a better way / something I am missing?

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