lib/custom_fields/extensions/mongoid/relations/referenced/many.rb in custom_fields-2.0.0.rc13 vs lib/custom_fields/extensions/mongoid/relations/referenced/many.rb in custom_fields-2.1.0.rc
- old
+ new
@@ -22,9 +22,12 @@
build_without_custom_fields(attributes, options, type)
end
alias_method_chain :build, :custom_fields
+
+ # new should point to the new build method
+ alias :new :build_with_custom_fields
end
end
end
end
\ No newline at end of file