Method: ROM::Relation::ClassInterface#default_schema

Defined in:
lib/rom/relation/class_interface.rb

#default_schema(klass = self) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



299
300
301
302
303
304
305
306
# File 'lib/rom/relation/class_interface.rb', line 299

def default_schema(klass = self)
  klass.schema ||
    if klass.schema_proc
      klass.set_schema!(klass.schema_proc.call)
    else
      klass.schema_class.define(klass.default_name)
    end
end