lib/embedson/model/method_builder.rb in embedson-1.0.4 vs lib/embedson/model/method_builder.rb in embedson-1.1.0

- old
+ new

@@ -20,10 +20,10 @@ EmbeddedBuilder.new(self).define generate_common end def hash_method - @hash_method || options.fetch(:hash_method, nil) || :to_h + @hash_method ||= options.fetch(:hash_method, nil) || :to_h end def column_name @column_name ||= options.fetch(:column_name, nil) || field_name end