Class: Seatbelt::Synthesizers::Mongoid
- Inherits:
-
Object
- Object
- Seatbelt::Synthesizers::Mongoid
- 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
Instance Method Summary collapse
-
#synthesizable_attributes ⇒ Object
The attributes to synthesize as Array.
Methods included from Seatbelt::Synthesizer
Instance Method Details
#synthesizable_attributes ⇒ Object
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 |