Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 483 Bytes
# Include hook code here
require 'query_reviewer'
if QueryReviewer.enabled?
ActiveRecord::ConnectionAdapters::MysqlAdapter.send(:include, QueryReviewer::MysqlAdapterExtensions)
ActionController::Base.send(:include, QueryReviewer::ControllerExtensions)
Array.send(:include, QueryReviewer::ArrayExtensions)
if ActionController::Base.respond_to?(:append_view_path)
ActionController::Base.append_view_path(File.dirname(__FILE__) + "/lib/query_reviewer/views")
end
end