lib/alephant/broker/models/response/asset_response.rb in alephant-broker-0.0.3 vs lib/alephant/broker/models/response/asset_response.rb in alephant-broker-0.1.0
- old
+ new
@@ -23,11 +23,10 @@
rescue AWS::S3::Errors::NoSuchKey, InvalidCacheKey => e
set_error_for(e, 404)
rescue Exception => e
set_error_for(e, 500)
end
-
end
private
def set_error_for(exception, status)
@@ -37,11 +36,8 @@
end
def cache_id
@lookup.read(request.options).tap { |cache_id| raise InvalidCacheKey if cache_id.nil? }
end
-
end
end
end
-
-