lib/ice/cubeable.rb in ice-0.4.3 vs lib/ice/cubeable.rb in ice-0.4.4

- old
+ new

@@ -8,10 +8,14 @@ get_cube_class class_obj.superclass end end def to_ice - cube_class = get_cube_class self.class - cube_class.new self + begin + cube_class = get_cube_class self.class + cube_class.new self + rescue + raise "Cannot find Cube class for model that you are calling to_ice on." + end end end end