Class: ActiveRecord::AutoWritable::Configuration
- Inherits:
-
Object
- Object
- ActiveRecord::AutoWritable::Configuration
- Defined in:
- lib/active_record/auto_writable/configuration.rb
Instance Attribute Summary collapse
Instance Attribute Details
#proxy ⇒ 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 |