lib/zertico/service.rb in zertico-0.1.3 vs lib/zertico/service.rb in zertico-0.2.0
- old
+ new
@@ -29,13 +29,13 @@
end
protected
def interface_name
- self.class.name.chomp("Controller").singularize.underscore
+ self.class.name.chomp("Controller").split("::").last.singularize.underscore
end
def interface_class
self.interface_name.camelize.constantize
end
end
-end
+end
\ No newline at end of file