Sha256: e143cc2f9a42d7bcfae74e7a0be2a14e5e1d616486f1c3cc7d38c637ba523f36

Contents?: true

Size: 373 Bytes

Versions: 8

Compression:

Stored size: 373 Bytes

Contents

module FreshConnection
  module Extend
    module ConnectionHandler
      def self.included(base)
        base.alias_method_chain :retrieve_connection, :fresh_connection
      end

      def retrieve_connection_with_fresh_connection(klass)
        c = retrieve_connection_without_fresh_connection(klass)
        c.model_class = klass
        c
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fresh_connection-0.3.0 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.6 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.5 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.4 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.3 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.2 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.1 lib/fresh_connection/extend/connection_handler.rb
fresh_connection-0.2.0 lib/fresh_connection/extend/connection_handler.rb