lib/interpol/stub_app.rb in interpol-0.3.3 vs lib/interpol/stub_app.rb in interpol-0.3.4
- old
+ new
@@ -55,10 +55,10 @@
version = config.api_version_for(app.request.env, endpoint)
example = endpoint.find_example_for!(version, 'response')
rescue NoEndpointDefinitionFoundError
config.request_version_unavailable(app, version, endpoint.available_versions)
else
- example.apply_filters(config.filter_example_data_blocks, app.request.env)
+ example = example.apply_filters(config.filter_example_data_blocks, app.request.env)
return example, version
end
end
end
end