Sha256: b2bea7957524c1f7dcd3414d93ef66937457fb890aae334d628fccbdfab7e5df
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module Octoshark module ActiveRecordExtensions extend ActiveSupport::Concern included do class << self alias_method_chain :establish_connection, :octoshark end end module ClassMethods def establish_connection_with_octoshark(*args) establish_connection_without_octoshark(*args) Octoshark.reload! if Octoshark.configured? end end end end ActiveRecord::Base.send(:include, Octoshark::ActiveRecordExtensions)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
octoshark-0.0.3 | lib/octoshark/active_record_extensions.rb |