lib/active_migration/key_mapper.rb
def load_keymap(map) #:nodoc:
      @maps ||= Hash.new
      if @maps[map].nil? && File.file?(File.join(self.storage_path, map.to_s + "_map.yml"))
        @maps[map] = YAML.load(File.open(File.join(self.storage_path, map.to_s + "_map.yml")))
        logger.debug("#{self.class.to_s} lazy loaded #{map} successfully.")
      end
    end
def load_keymap(map) #:nodoc:
      @maps ||= Hash.new
      if @maps[map].nil? && File.file?(File.join(self.storage_path, map.to_s + "_map.yml"))
        @maps[map] = YAML.load(File.open(File.join(self.storage_path, map.to_s + "_map.yml")))
        logger.debug("#{self.class.to_s} lazy loaded #{map} successfully.")
      end
    end
def load_keymap ( map ) #:nodoc: @maps ||= Hash . new if @maps [ map ] . nil? && File . file? ( File . join ( self . storage_path , map . to_s + "_map.yml" ) ) @maps [ map ] = YAML . load ( File . open ( File . join ( self . storage_path , map . to_s + "_map.yml" ) ) ) logger . debug ( "#{self.class.to_s} lazy loaded #{map} successfully." ) end end
Lazy loader...
Lazy loader ...