Class: ActiveRecord::FixtureSet::RenderContext

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/fixtures.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.create_subclassObject



1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
# File 'lib/active_record/fixtures.rb', line 1054

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