lib/zertico/service.rb in zertico-0.5.2 vs lib/zertico/service.rb in zertico-0.5.3

- old
+ new

@@ -29,13 +29,17 @@ end protected def interface_name - self.class.name.chomp('Controller').split('::').last.singularize.underscore + self.interface_class.name.singularize.underscore end def interface_class - self.interface_name.camelize.constantize + begin + self.class.name.chomp('Controller').constantize + rescue NameError + self.class.name.chomp('Controller').split('::').last.constantize + end end end end \ No newline at end of file