Topic: Explain Syntax
Hello! Can someone please be kind of enough to explain what the following snippet of code actually does? I've been trying to figure it out for a while now...
self.old_rating.nil? ? nil : self.old_rating.rating
That's just some random code from the acts_as_rateable plugin, by the way. Thanks a lot!