Sha256: 163bedf8fa8be4bda727dea3926fbca46d9bd3e620caa371e1fcc9b03e2dcd73
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 Bytes
Contents
module Scorpion module Rails module ActiveRecord require "scorpion/rails/active_record/model" require "scorpion/rails/active_record/relation" require "scorpion/rails/active_record/association" # Setup scorpion support for activerecord def self.install! return unless defined? ::ActiveRecord ::ActiveRecord::Base.send :prepend, Scorpion::Rails::ActiveRecord::Model ::ActiveRecord::Relation.send :prepend, Scorpion::Rails::ActiveRecord::Relation ::ActiveRecord::Associations::Association.send :prepend, Scorpion::Rails::ActiveRecord::Association # TODO: extend Scorpion::Hunter to support AR end end end end
Version data entries
5 entries across 5 versions & 1 rubygems