Sha256: 69a1ee554e1695c978e945c8bcc0f74aeb2b8b2f35c75ad08de6ca182c90e5fc
Contents?: true
Size: 456 Bytes
Versions: 26
Compression:
Stored size: 456 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.read(path))}") end end end end
Version data entries
26 entries across 26 versions & 4 rubygems