Class: ROM::Memory::Schema

Inherits:
Schema
  • Object
show all
Defined in:
core/lib/rom/memory/schema.rb

Overview

Specialized schema for memory adapter

Instance Method Summary collapse

Instance Method Details

#call(relation) ⇒ Object

See Also:



14
15
16
# File 'core/lib/rom/memory/schema.rb', line 14

def call(relation)
  relation.new(relation.dataset.project(*map(&:name)), schema: self)
end