lib/hexx/service.rb in hexx-2.0.2 vs lib/hexx/service.rb in hexx-2.1.0
- old
+ new
@@ -1,15 +1,16 @@
+# Service modules the +Service+ class depends on.
def service_modules
Dir[File.expand_path("../service/*.rb", __FILE__)]
end
service_modules.each { |file| require file }
module Hexx
# Base class for service objects.
class Service
- include Messages, Parameters, Transactions, Validations
+ include Messages, Parameters, Transactions, Validations, Callbacks
# Runs the service object.
#
# The method must be defined in a specific service class,
# inherited from <tt>Hexx::Service</tt>.