From 195931c6ba3f51dd35727e26f096b4cb06b6bca8 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Sat, 26 Mar 2016 13:46:26 +0800 Subject: [PATCH] FIX: Avoid checking for a template when setting an etag. --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index a44808e..0b04fdd 100644 --- a/plugin.rb +++ b/plugin.rb @@ -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