Sha256: 82938f572614f5fd53fb58346bf78370903d6057d93db8345799098174274953

Contents?: true

Size: 697 Bytes

Versions: 27

Compression:

Stored size: 697 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

27 entries across 27 versions & 1 rubygems

Version Path
scorpion-ioc-0.6.2 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.6.1 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.6.0 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.23 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.22 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.21 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.20 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.19 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.18 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.17 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.16 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.15 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.14 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.13 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.12 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.11 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.10 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.9 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.8 lib/scorpion/rails/active_record.rb
scorpion-ioc-0.5.7 lib/scorpion/rails/active_record.rb