This code is provided as an example in for use with devise and OmniAuth, it works in my project.
class User < ActiveRecord::Base def self.new_with_sessi
A assignment operator (=) returns the assigned value, which is then evaluated by the if. In ruby, only false and nil are considered as false. Everything else evaluates to true in a boolean context (like an if).
=
if
false
nil
true