Method: ActiveRecord::FixtureSet::RenderContext.create_subclass
- Defined in:
- activerecord/lib/active_record/fixture_set/render_context.rb
.create_subclass ⇒ Object
:nodoc:
8 9 10 11 12 13 14 15 16 17 18 |
# 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 |