Sha256: a0a2b898667ce3219e5a5c1783905c75e61354b3e93bde145760bca0c2142e97

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

module FreshConnection
  module Extend
    module ArStatementCache
      if ActiveRecord::VERSION::MINOR == 2
        def execute(params, connection, &block)
          klass.all.manage_access { super }
        end
      else
        def execute(params, klass, connection, &block)
          klass.all.manage_access { super }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fresh_connection-3.0.0.rc1 lib/fresh_connection/extend/ar_statement_cache.rb