lib/custom_fields/extensions/mongoid/relations/referenced/in.rb in custom_fields-2.3.1 vs lib/custom_fields/extensions/mongoid/relations/referenced/in.rb in custom_fields-2.3.2

- old
+ new

@@ -5,12 +5,14 @@ class In < Relations::One class << self - def valid_options - [:autosave, :foreign_key, :index, :polymorphic, :custom_fields_parent_klass] + def valid_options_with_parent_class + valid_options_without_parent_class.push :custom_fields_parent_klass end + + alias_method_chain :valid_options, :parent_class end end