Sha256: e37e193270bdc4ec7da0ad43585c06d79b918ed5fc8e3db53303794a3e712092

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 Bytes

Contents

module FreshConnection
  module Extend
    module ArRelation
      module ForRails
        def pluck(*args)
          @klass.manage_access(enable_slave_access) { super }
        end

        def read_master
          spawn.read_master!
        end

        def read_master!
          @read_from_master = true
          self
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fresh_connection-0.4.4 lib/fresh_connection/extend/ar_relation/for_rails4.rb
fresh_connection-1.0.1 lib/fresh_connection/extend/ar_relation/for_rails4.rb
fresh_connection-1.0.0 lib/fresh_connection/extend/ar_relation/for_rails4.rb
fresh_connection-0.4.3 lib/fresh_connection/extend/ar_relation/for_rails4.rb
fresh_connection-0.4.2 lib/fresh_connection/extend/ar_relation/for_rails4.rb
fresh_connection-0.4.1 lib/fresh_connection/extend/ar_relation/for_rails4.rb