Mongoid Removes Symbol:Size method per a temporal change for Ruby 1.9

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Do we still need to remove size method from Ruby's Symbol class or is there a way to contain this removal to codebases running Ruby 1.9?

      https://github.com/mongodb/mongoid/blob/548f9c5744bac5d151e6f32260054db5a87f59d6/lib/mongoid/extensions.rb#L9

      Came across this issue while trying to call size on a symbol in the rails console.

      Ruby 2.4 | Rails 5.1

              Assignee:
              Unassigned
              Reporter:
              Colin Hart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: