Sha256: 7a97d1140d7a12df06700c9682097d1cfb4bc242c06cac4f615fd88812aa21ce
Contents?: true
Size: 677 Bytes
Versions: 4
Compression:
Stored size: 677 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.prepend Scorpion::Rails::ActiveRecord::Model ::ActiveRecord::Relation.prepend Scorpion::Rails::ActiveRecord::Relation ::ActiveRecord::Associations::Association.prepend Scorpion::Rails::ActiveRecord::Association # TODO: extend Scorpion::Hunter to support AR end end end end
Version data entries
4 entries across 4 versions & 1 rubygems