Class: ActiveRecord::AutoWritable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/auto_writable/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#proxyProc

Returns:

  • (Proc)


9
10
11
12
13
# File 'lib/active_record/auto_writable/configuration.rb', line 9

def proxy
  @proxy ||= lambda do |&block|
    ::ActiveRecord::Base.connected_to(role: :writing, &block)
  end
end