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?
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:
in my User class:
Is there a better way / something I am missing?