Class: ActiveRecord::FixtureSet::RenderContext
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/fixture_set/render_context.rb |
Overview
NOTE: This class has to be defined in compact style in order for rendering context subclassing to work correctly.
Class Method Summary
Class Method Details
.create_subclass
[ GitHub ]# File 'activerecord/lib/active_record/fixture_set/render_context.rb', line 8
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