Module: Reform::Schema
- Included in:
- Contract
- Defined in:
- lib/reform/schema.rb
Instance Method Summary collapse
Instance Method Details
#schema(options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/reform/schema.rb', line 3 def schema(={}) require "disposable/twin/schema" Disposable::Twin::Schema.from(self, { superclass: Representable::Decorator, representer_from: lambda { |nested| nested.representer_class } }.merge() # TODO: options not tested. ) end |