lib/webvalve/fake_service_wrapper.rb in webvalve-0.9.10 vs lib/webvalve/fake_service_wrapper.rb in webvalve-0.10.0
- old
+ new
@@ -1,18 +1,18 @@
module WebValve
class FakeServiceWrapper
# lazily resolve the app constant to leverage rails class reloading
- def initialize(app)
- @app_klass_name = app.name
+ def initialize(app_class_name)
+ @app_class_name = app_class_name
end
def call(env)
app.call(env)
end
private
def app
- @app_klass_name.constantize
+ @app_class_name.constantize
end
end
end