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

Problem with global Boolean definition

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0 final
    • Component/s: None
    • Labels:

      Description

      As described in solnic/virtusMONGOID-135, mongoid breaks the coercion feature for Boolean in virtus.

      This is due to the global definition of a Boolean class by mongoid.

      I created a test case to show the issue.

      https://gist.github.com/4352389

      A workaround in virtus is to use Virtus::Attribute::Boolean instead of Boolean in the class definition but it would be great if mongoid would not define global classes like that.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: