Sha256: e34cf5f8f1492861413633910045501270fa388e49f6aa367e6d12c2d6abbd75

Contents?: true

Size: 354 Bytes

Versions: 10

Compression:

Stored size: 354 Bytes

Contents

module Reform
  module Schema
    def schema(options={})
      require "disposable/twin/schema"
      Disposable::Twin::Schema.from(self,
        {
          superclass:       Representable::Decorator,
          representer_from: lambda { |nested| nested.representer_class }
        }.merge(options) # TODO: options not tested.
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
reform-2.0.5 lib/reform/schema.rb
reform-2.0.4 lib/reform/schema.rb
reform-2.0.3 lib/reform/schema.rb
reform-2.0.2 lib/reform/schema.rb
reform-2.0.1 lib/reform/schema.rb
reform-2.0.0 lib/reform/schema.rb
reform-2.0.0.rc3 lib/reform/schema.rb
reform-2.0.0.rc2 lib/reform/schema.rb
reform-2.0.0.rc1 lib/reform/schema.rb
reform-2.0.0.beta2 lib/reform/schema.rb