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

Changes does not saved in mongo

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

      When I try to save my changes in mongo, the <code>save</code> <code>update_attributes</code> or even <code>update_attributes!</code> returns true, I even see output

      MOPED: 127.0.0.1:27017 UPDATE       database=mongoid collection=product_stats selector={"_id"=>"530fa1feda15d79a31000007"} update={"$set"=>{"product_id"=>1, "vendor_id"=>799, "portal_user_id"=>[367, 585], "name"=>"Paige Rising Glen Jeans", "vendor_name"=>" Max Sales Group", "buyer_name"=>"Danielle Perlman", "updated_on"=>2014-03-12 00:12:13 UTC, "items_count"=>21, "quantity_count"=>432, "listings_count"=>8, "revenue"=>nil, "sku"=>["TSPAG01", "TSPAG11", "TSPAG10", "TSPAG16", "TSPAG13", "TSPAG12 ", "TSPAG18", "TSPAG17", "TSPAG20", "TSPAG21", "TSPAG14", "TSPAG15", "TSPAG02", "TSPAG03", "TSPAG04", "TSPAG05", "TSPAG06", "TSPAG07", "TSPAG08", "TSPAG09", ""], "category_id"=>nil, "brand_id"=>6, "deleted"=>false, "updated_at"=>2014-03-31 07:00:00 UTC}} flags=[] (0.4199ms)
      

      When I <code>find</code> record by ID it shows changes, but when I reload a console i see no changes at all, and in mongodb I don't see change either.

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

              Created:
              Updated:
              Resolved: