Sha256: 790772ff921b7600a36ca22a21cec7de14f787ed201139d8cc29d2688815c5fc

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

module Protobuf
  module ActiveRecord
    module ServiceFilters
      extend ::ActiveSupport::Concern

      included do
        after_filter :_protobuf_active_record_clear_active_connections
      end

      def _protobuf_active_record_clear_active_connections
        ::ActiveRecord::Base.clear_active_connections!
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
protobuf-activerecord-3.1.0.alpha2 lib/protobuf/active_record/service_filters.rb