Sha256: bbfabbce8e4d82b0c9573f6260f8eaf8449bf7dd94248c0f4fc434fb77ee9b27

Contents?: true

Size: 235 Bytes

Versions: 2

Compression:

Stored size: 235 Bytes

Contents

ActionDispatch::Routing::Mapper.class_eval do
  command_connector = Rails.application.config.foobara_command_connector

  define_method :command do |*args, **opts, &block|
    command_connector.connect(*args, **opts, &block)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foobara-rails-command-connector-0.0.3 lib/foobara/rails/routes.rb
foobara-rails-command-connector-0.0.2 lib/foobara/rails/routes.rb