Sha256: 86301d2d072733634d6f844c0deb67339e4c613ccfa61a6fd262df1ce2bd49da
Contents?: true
Size: 477 Bytes
Versions: 42
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true require "base64" # NOTE: This class has to be defined in compact style in # order for rendering context subclassing to work correctly. class ActiveRecord::FixtureSet::RenderContext # :nodoc: def self.create_subclass Class.new(ActiveRecord::FixtureSet.context_class) do def get_binding binding() end def binary(path) %(!!binary "#{Base64.strict_encode64(File.binread(path))}") end end end end
Version data entries
42 entries across 42 versions & 5 rubygems