The idea is that we are binding an attribute cart_empty
on the current
object to get updated when some remote attribute on some other object
changes. This results in a method call current_obj.cart_empty = new_value
.
bind(:cart_empty).to observe(@cart, :empty?)
bind(:cart_empty).to @cart.observe(:empty?)
bind :cart_empty, @cart.observe(:empty?)