They are not equivalent.
doSomeThing() unless person.present?
will be executed only if person.presentthere isnull
doSomeThing() unless person.present
will be executed if person.present- valuefalse
doSomeThing() if person.present
will be executed if person.present- valuetrue
check compiled javascript .
source
share