Make sure the right adapter is used, not necessarily AR::Base

pull/6827/head
Felix Schäfer 13 years ago
parent 5e8a6d282e
commit 9e193b1805
  1. 2
      lib/report/controller.rb

@ -313,7 +313,7 @@ module Report::Controller
##
# Override in subclass if you like
def is_public_sql(val=true)
"(is_public = #{val ? ActiveRecord::Base.connection.quoted_true : ActiveRecord::Base.connection.quoted_false})"
"(is_public = #{val ? report_engine.reporting_connection.quoted_true : report_engine.reporting_connection.quoted_false})"
end
##

Loading…
Cancel
Save