Sha256: 651c752d82f7b3a2df469c12af050aea45a5eae443ec3ef4461502b7720428c1
Contents?: true
Size: 535 Bytes
Versions: 35
Compression:
Stored size: 535 Bytes
Contents
module Scorpion module Rails module ActiveRecord # Adds dependency injection to ActiveRecord::Base models. module Model include Scorpion::Stinger def self.prepended( base ) # Setup dependency injection base.send :include, Scorpion::Object base.singleton_class.class_exec do delegate :with_scorpion, to: :all end super end def association( *args, &block ) sting! super end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems