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

Overriding field types in Mongoid 2.1.0

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

      Hey guys,

      This is a repeat of: https://github.com/mongoid/mongoid/issues/819

      This issue was fixed: https://github.com/mongoid/mongoid/pull/818 ... however, it has reappeared in the current master.

      Example:

      class Image
      include Mongoid::Document
      field :blah
      end

      class Another
      include Mongoid::Document
      field :image, :type => Image
      end

      This will error and return: <...snip...> /gems/mongoid-ede2aac548ee/lib/mongoid/document.rb:126:in `initialize': wrong number of arguments (2 for 1) (ArgumentError)

            Assignee:
            Unassigned Unassigned
            Reporter:
            pkieltyka Peter Kieltyka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: