lib/embedson/model.rb in embedson-1.0.4 vs lib/embedson/model.rb in embedson-1.1.0
- old
+ new
@@ -14,9 +14,10 @@
# options - The Hash options used to define custom column name, class name
# and field name in embedded class (default: {}):
# :class_name - Name of class which will be ebedded.
# :column_name - Name of column where Hash representation will be stored.
# :inverse_of - Name of field where related class will store current object.
+ # :hash_method - Method name which returns hash representation os saved object. Default :to_h
#
# Examples
#
# embeds_one :virt, class_name: Virt, column_name: :data, inverse_of: :parent
#