Sha256: df3f416df91abff59d0bdc56ff42c3526ec1dfefdc55d5685bbaf4672c707477
Contents?: true
Size: 980 Bytes
Versions: 1
Compression:
Stored size: 980 Bytes
Contents
require 'protector/adapters/active_record/base' require 'protector/adapters/active_record/association' require 'protector/adapters/active_record/relation' require 'protector/adapters/active_record/preloader' module Protector module Adapters module ActiveRecord def self.activate! ::ActiveRecord::Base.send :include, Protector::Adapters::ActiveRecord::Base ::ActiveRecord::Relation.send :include, Protector::Adapters::ActiveRecord::Relation ::ActiveRecord::Associations::SingularAssociation.send :include, Protector::Adapters::ActiveRecord::Association ::ActiveRecord::Associations::CollectionAssociation.send :include, Protector::Adapters::ActiveRecord::Association ::ActiveRecord::Associations::Preloader.send :include, Protector::Adapters::ActiveRecord::Preloader ::ActiveRecord::Associations::Preloader::Association.send :include, Protector::Adapters::ActiveRecord::Preloader::Association end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protector-0.1.0 | lib/protector/adapters/active_record.rb |