Class: Seatbelt::Synthesizers::Mongoid

Inherits:
Object
  • Object
show all
Includes:
Seatbelt::Synthesizer
Defined in:
lib/seatbelt/synthesizers/mongoid.rb

Overview

Public: A Synthesizer that syncs a Mongoid::Document based implementation class with a Seatbelt::Document proxy object

Instance Attribute Summary

Attributes included from Seatbelt::Synthesizer

#synthesizable_object

Instance Method Summary collapse

Methods included from Seatbelt::Synthesizer

#initialize, #synthesize

Instance Method Details

#synthesizable_attributesObject

The attributes to synthesize as Array.



10
11
12
# File 'lib/seatbelt/synthesizers/mongoid.rb', line 10

def synthesizable_attributes
  synthesizable_object.fields.keys.map(&:to_sym)
end