I work with dRuby and basically I call a remote method that returns an object to me.
In clientide, I have this code:
handle_error(response) if response.is_a?(Error)
where the answer is DRbObject. (I developed this code before using dRuby, and I return an Error object if something went wrong). The problem is that now
response.is_a?(Error)
returns false because the object is actually a DRbObject. Any idea on how I can check the class of my application object?
Thank! Roberto
source
share