method
load_from
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaCache
load_from(filename)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/schema_cache.rb, line 8
def self.load_from(filename)
return unless File.file?(filename)
read(filename) do |file|
filename.include?(".dump") ? Marshal.load(file) : YAML.load(file)
end
end