Пытаюсь подключить авторизацию через omniauth-twitter
Выдает ошибку
undefined method `remote_avatar_url=' for #<User:0x0000000012a69c00> Did you mean? remove_instance_variable
def self.find_or_create_from_twitter_omniauth(auth)
user = where(provider: auth.provider, uid: auth.uid).first_or_create
unless auth.info.image.nil?
user.remote_avatar_url = auth.info.image.gsub('http://', 'https://').gsub('_normal', '')
end
user.update(
username: auth.info.name,
password: Devise.friendly_token[0, 20],
email: "#{SecureRandom.hex}#{auth.info.nickname}"
)
user
end