Forum: Rails France [HS] Test unitaires, tests d'intégration, tests psychologiques :))

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
philippe lachaise (Guest)
on 2008-10-24 00:20
(Received via mailing list)
Je viens de recevoir, en provenance de trustedopinion.com ce message
gratifiant pour mon ego :

"Philippe, 0 people were interested in you this month!"

J'imagine le :

msg = Message.new(  :body => "#{@user.name},
#{@user.intested_people.count}
people were interested in you this month!"  )

Moi j'aurais rajouté un condition :

msg.deliver unless @user.intested_people.count < EGO_DAMAGING_THRESHOLD

Je sais pas si ils vont se faire beaucoup d'amis ;-)

--
IciMarché fédère l'e-commerce de proximité
http://icimarche.fr
This topic is locked and can not be replied to.