lib/the_help/service.rb in the_help-1.5.1 vs lib/the_help/service.rb in the_help-1.5.2
- old
+ new
@@ -235,19 +235,20 @@
raise TheHelp::AbstractClassError if self.class == TheHelp::Service
raise TheHelp::ServiceNotImplementedError unless defined?(main)
end
def log_service_call
- logger.info("Service call to #{self.class.name} for #{context.inspect}")
+ logger.info("Service call to #{self.class.name}/#{__id__} " \
+ "for #{context.inspect}")
end
def authorized?
false
end
def authorize
return if authorized?
- logger.warn("Unauthorized attempt to access #{self.class.name} " \
+ logger.warn("Unauthorized attempt to access #{self.class.name}/#{__id__} " \
"as #{context.inspect}")
run_callback(not_authorized, service: self.class, context: context)
stop!
end