Class: Activerecord::Pickin::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/activerecord-pickin.rb

Class Method Summary collapse

Class Method Details

.apply_activerecord_patchObject



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