Class: Activerecord::Pickin::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Activerecord::Pickin::Railtie
- Defined in:
- lib/activerecord-pickin.rb
Class Method Summary collapse
Class Method Details
.apply_activerecord_patch ⇒ Object
10 11 12 13 14 |
# File 'lib/activerecord-pickin.rb', line 10 def self.apply_activerecord_patch ActiveSupport.on_load(:active_record) do ActiveRecord::Relation.send(:include, ActiveRecord::Pickin::Relation) end end |