FIX: Avoid checking for a template when setting an etag.

This commit is contained in:
Guo Xiang Tan 2016-03-26 13:46:26 +08:00
parent 37fe36778b
commit 195931c6ba
1 changed files with 1 additions and 1 deletions

View File

@ -989,7 +989,7 @@ SQL
def schema
schema_version = ActiveRecord::Base.exec_sql("SELECT max(version) AS tag FROM schema_migrations").first['tag']
if stale?(public: true, etag: schema_version)
if stale?(public: true, etag: schema_version, template: false)
render json: DataExplorer.schema
end
end