Skip to content

Commit

Permalink
Merge pull request #80 from drecom/feature/fix_no_method_error_disabl…
Browse files Browse the repository at this point in the history
…e_query_cache

Fixes `NoMethodError: undefined method `disable_query_cache!'` with r…
  • Loading branch information
Gussan committed Oct 1, 2018
2 parents 178bb29 + c329a09 commit 91c2e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/turntable/pool_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def with_connection
end

delegate :connected?, :checkout_timeout, :automatic_reconnect, :automatic_reconnect=, :checkout_timeout, :checkout_timeout=, :dead_connection_timeout,
:spec, :connections, :size, :reaper, :table_exists?, :query_cache_enabled, :enable_query_cache!, :schema_cache, :schema_cache=, to: :proxy
:spec, :connections, :size, :reaper, :table_exists?, :query_cache_enabled, :enable_query_cache!, :disable_query_cache!, :schema_cache, :schema_cache=, to: :proxy

%w(columns_hash column_defaults primary_keys).each do |name|
define_method(name.to_sym) do
Expand Down

0 comments on commit 91c2e0c

Please sign in to comment.