Sha256: d9ab9752ef7823bd46e843478b2badeecdddd14595453b800f9fda258e0bbebe
Contents?: true
Size: 231 Bytes
Versions: 1
Compression:
Stored size: 231 Bytes
Contents
::ActiveRecord::Base.class_eval do def self.run_data_miner_on_belongs_to_associations reflect_on_all_associations(:belongs_to).each do |a| next if a.options[:polymorphic] a.klass.run_data_miner! end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
earth-0.0.33 | lib/earth/active_record_ext.rb |