Module: ROM::Plugins::Relation::Schema
- Defined in:
- lib/rom/plugins/relation/schema.rb
Defined Under Namespace
Classes: Schema
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rom/plugins/relation/schema.rb', line 7 def self.included(klass) super klass.class_eval do def self.schema(&block) @__schema__ = Schema.create(&block) if block_given? @__schema__ end end end |