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

'circular require' warning displayed when running rspecs.

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

      In this file: https://github.com/mongoid/mongoid/blob/master/lib/mongoid/railtie.rb#L2, mongoid is required, and,
      in this file: https://github.com/mongoid/mongoid/blob/master/lib/mongoid.rb#L30, railtie is required which gives the following warning while running rspecs:

      ruby-2.1.0/gems/mongoid-4.0.0/lib/mongoid/railtie.rb:2: warning: loading in progress, circular require considered harmful - ..../.rvm/gems/ruby-2.1.0/gems/mongoid-4.0.0/lib/mongoid.rb

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

              Created:
              Updated:
              Resolved: