Sha256: 01afd799da4f158e08715801979f096893856e823a1cc14beae66409c4930954
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
module Octopus::Persistence def reload_connection() set_connection() if should_set_current_shard? end def update_attribute(name, value) reload_connection() super(name, value) end def update_attributes(attributes) reload_connection() super(attributes) end def update_attributes!(attributes) reload_connection() super(attributes) end def reload reload_connection() super end def delete reload_connection() super end def destroy reload_connection() super end end ActiveRecord::Base.send(:include, Octopus::Persistence)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ar-octopus-0.0.19 | lib/octopus/persistence.rb |