lib/zertico/service.rb in zertico-0.5.5 vs lib/zertico/service.rb in zertico-0.5.6

- old
+ new

@@ -34,12 +34,12 @@ self.interface_class.name.singularize.underscore end def interface_class begin - self.class.name.chomp('Controller').constantize + self.class.name.chomp('Controller').singularize.constantize rescue NameError - self.class.name.chomp('Controller').split('::').last.constantize + self.class.name.chomp('Controller').split('::').last.singularize.constantize end end end -end \ No newline at end of file +end