Sha256: 29483213eb2c7cdaa10da85bbb4de39ea3e055a04490a3b1ba538bdeec8b6864
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
# frozen_string_literal: true module ActiveRecordScopingWithAssoc class Railtie < Rails::Railtie ActiveSupport.on_load :active_record do ActiveRecord::Relation.send :include, ActiveRecordScopingWithAssoc::Relation ActiveRecord::Associations::Association.prepend ActiveRecordScopingWithAssoc::Association end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord_scoping_with_assoc-0.1.1 | lib/activerecord_scoping_with_assoc/railtie.rb |