lib/pghero/methods/explain.rb in pghero-1.4.2 vs lib/pghero/methods/explain.rb in pghero-1.5.0
- old
+ new
@@ -16,9 +16,11 @@
end
explanation
end
+ private
+
def explain_safe?
select_all("SELECT 1; SELECT 1")
false
rescue ActiveRecord::StatementInvalid
true