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

Problem with global Boolean definition

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

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bernd bernd
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: