Flowdock
method

load_from

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: SchemaCache
load_from(filename) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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|
          if filename.include?(".dump")
            Marshal.load(file)
          else
            if YAML.respond_to?(:unsafe_load)
              YAML.unsafe_load(file)
            else
              YAML.load(file)
            end
          end
        end
      end
Register or log in to add new notes.