Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1017

Macros (embeds_many, etc) should Raise on Unrecognized Options Keys

    • Type: Icon: Task Task
    • Resolution: Done
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      All too often, it is easy to leave off a letter in an options key:

      module Node
      embedded_in :parent,
      :polyorphic => true
      end

      Obviously the intention is for the relation to be :polymorphic rather than :polyorphic. Mongoid should raise immediately, warning that :polyorphic is not recognized as a known options key.

            Assignee:
            durran Durran Jordan
            Reporter:
            yfeldblum yfeldblum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: