lib/services/modules/object_class.rb in services-3.0.0 vs lib/services/modules/object_class.rb in services-3.0.1

- old
+ new

@@ -1,7 +1,9 @@ module Services module ObjectClass - private def object_class + private + + def object_class self.class.to_s[/\AServices::([^:]+)/, 1].singularize.constantize rescue raise "Could not determine service class from #{self.class}." end end