6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/rails_event_store/browser/engine.rb', line 6
def self.call(env)
warn " RailsEventStore::Browser::Engine has been deprecated.\n\n This gem will be discontinued on next RailsEventStore release. \n Please use 'ruby_event_store-browser' gem from now on.\n\n In Gemfile:\n\n gem 'ruby_event_store-browser', require: 'ruby_event_store/sbrowser/app'\n\n\n In routes.rb:\n\n mount RubyEventStore::Browser::App.for(\n event_store_locator: -> { Rails.configuration.event_store },\n host: 'http://localhost:3000',\n path: '/res'\n ) => '/res' if Rails.env.development?\n EOW\n\n request = Rack::Request.new(env)\n app = RubyEventStore::Browser::App.for(\n event_store_locator: -> { Rails.configuration.event_store },\n host: request.base_url,\n path: request.script_name\n )\n app.call(env)\nend\n"
|