lib/lamby/config.rb in lamby-3.1.3 vs lib/lamby/config.rb in lamby-4.0.0.beta1
- old
+ new
@@ -29,10 +29,19 @@
initialize_defaults
yield(self) if block_given?
self
end
+ def rack_app
+ @rack_app ||= Rack::Builder.new { run Rails.application }.to_app
+ end
+
+ def rack_app=(app)
+ @rack_app = app
+ end
+
def initialize_defaults
+ @rack_app = nil
@event_bridge_handler = lambda { |event, context| puts(event) }
end
def event_bridge_handler
@event_bridge_handler