lib/convenient_service/dependencies.rb in convenient_service-0.17.0 vs lib/convenient_service/dependencies.rb in convenient_service-0.18.0

- old
+ new

@@ -173,17 +173,24 @@ def require_rescues_result_unhandled_exceptions require_relative "service/plugins/rescues_result_unhandled_exceptions" end ## - # @api public + # @api private # # @return [Boolean] # @note Expected to be called from app entry points like `initializers` in Rails. # - def require_cleans_exception_backtrace - require_relative "dependencies/extractions/active_support_backtrace_cleaner" + def require_wraps_result_in_db_transaction + ## + # - https://edgeguides.rubyonrails.org/active_record_basics.html + # - https://api.rubyonrails.org/classes/ActiveRecord.html + # - https://github.com/rails/rails/tree/main/activerecord + # + require "active_record" + + require_relative "service/plugins/wraps_result_in_db_transaction" end ## # @api private # @@ -334,9 +341,10 @@ require_relative ::File.join("examples", "standard", version, "cowsay") require_relative ::File.join("examples", "standard", version, "date_time") require_relative ::File.join("examples", "standard", version, "factorial") require_relative ::File.join("examples", "standard", version, "gemfile") require_relative ::File.join("examples", "standard", version, "request_params") + require_relative ::File.join("examples", "standard", version, "comprehensive_suite") if version.empty? end ## # @api private #