Sha256: eef62cb15ce04b8544373e3c81f032c668c7a3671333b47b53ccf2fffc184df5
Contents?: true
Size: 459 Bytes
Versions: 79
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true # 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
79 entries across 75 versions & 7 rubygems