lib/jsonify.rb in scrapify-0.0.4 vs lib/jsonify.rb in scrapify-0.0.5

- old
+ new

@@ -5,11 +5,12 @@ end def call(env) path = env['REQUEST_PATH'] response = path == @route ? all : one(find_id(path)) - [200, {"Content-Type" => "application/json"}, [response]] + header = @model.http_cache_header.merge("Content-Type" => "application/json") + [200, header, [response]] end private def all @@ -21,6 +22,6 @@ end def find_id(path) path[path.rindex('/') + 1, path.size] end -end \ No newline at end of file +end