module ConstantTableSaver
Constants
- VERSION
Public Class Methods
reset_all_caches()
click to toggle source
# File lib/constant_table_saver.rb, line 42 def self.reset_all_caches klasses = ActiveRecord::Base.respond_to?(:descendants) ? ActiveRecord::Base.descendants : ActiveRecord::Base.send(:subclasses) klasses.each {|klass| klass.reset_constant_record_cache! if klass.respond_to?(:reset_constant_record_cache!)} end