lib/custom_fields/source.rb in custom_fields-2.0.0.rc13 vs lib/custom_fields/source.rb in custom_fields-2.1.0.rc
- old
+ new
@@ -99,9 +99,11 @@
old_metadata = self.send(name).metadata
# puts "old_metadata = #{old_metadata.klass.inspect} / #{old_metadata.object_id.inspect}" # DEBUG
+ # puts "[CustomFields] refresh_metadata_with_custom_fields, #{name.inspect}, self = #{self.inspect}"
+
self.send(name).metadata = old_metadata.clone.tap do |metadata|
# Rails.logger.debug "[CustomFields] refresh_metadata_with_custom_fields #{metadata.klass}" if defined?(Rails) # DEBUG
# backup the current klass
metadata[:original_klass] ||= metadata.klass
\ No newline at end of file