method

create_subclass

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: RenderContext
create_subclass() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/fixture_set/render_context.rb, line 6
  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
Register or log in to add new notes.