lib/foobara/rails/routes.rb in foobara-rails-command-connector-0.0.1 vs lib/foobara/rails/routes.rb in foobara-rails-command-connector-0.0.2

- old
+ new

@@ -1,5 +1,7 @@ ActionDispatch::Routing::Mapper.class_eval do + command_connector = Rails.application.config.foobara_command_connector + define_method :command do |*args, **opts, &block| - RAILS_COMMAND_CONNECTOR.connect(*args, **opts, &block) + command_connector.connect(*args, **opts, &block) end end