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

Version Path
activerecord-6.0.3.7 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.6 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.5 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.4 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.3 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.2 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.1 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.3.rc1 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.2.2 lib/active_record/fixture_set/render_context.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/fixture_set/render_context.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/fixture_set/render_context.rb
activerecord-6.0.2.1 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.2 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.2.rc2 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.2.rc1 lib/active_record/fixture_set/render_context.rb
activerecord-6.0.1 lib/active_record/fixture_set/render_context.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.0/lib/active_record/fixture_set/render_context.rb
activerecord-6.0.1.rc1 lib/active_record/fixture_set/render_context.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activerecord-6.0.0/lib/active_record/fixture_set/render_context.rb