lib/zertico/service.rb in zertico-0.6.0 vs lib/zertico/service.rb in zertico-0.6.1
- old
+ new
@@ -40,9 +40,14 @@
end
end
protected
+ def interface_id
+ return "#{interface_name}_id" if self.class.name.chomp('Controller').split('::').size > 1
+ 'id'
+ end
+
def interface_name
self.interface_class.name.singularize.underscore
end
def interface_class
\ No newline at end of file