lib/custom_fields/extensions/mongoid/relations/referenced/in.rb in custom_fields-2.8.0 vs lib/custom_fields/extensions/mongoid/relations/referenced/in.rb in custom_fields-2.9.0.rc1

- old
+ new

@@ -5,10 +5,13 @@ class In < Relations::One class << self def valid_options_with_parent_class valid_options_without_parent_class.push :custom_fields_parent_klass end - alias_method_chain :valid_options, :parent_class + + alias_method :valid_options_without_parent_class, :valid_options + alias_method :valid_options, :valid_options_with_parent_class + end end end end end