FAQ
g = Group::FirstRun.new
=> #<Group::FirstRun _id: 50d4d991463a994017000026, _type:
"Group::FirstRun", created_at: nil, updated_at: nil, name: "Welcome",
cover_item_id: nil, last_post_at: 2012-12-21 21:50:09 UTC>
g.items.new({user: Tal, group_item: tgi},GroupItem::Clone)
MOPED: 127.0.0.1:27017 QUERY database=delight_development
collection=albums selector={"$query"=>{"_id"=>"50d4d991463a994017000026"},
"$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 fields=nil
(0.3572ms)
=> #<GroupItem::Clone group_item_id: "50aa5c3b463a995b3b000001">
GroupItem::Clone.new({user: Tal, group_item: tgi})
=> #<GroupItem::Clone group_item_id: "50aa5c3b463a995b3b000001">

This is really bugging me, can anyone recreate? I can't figure it out.

Search Discussions

  • Durran Jordan at Dec 27, 2012 at 9:43 pm
    It's a bug, and I'm working on the fix. (
    https://github.com/mongoid/mongoid/issues/2639)

    2012/12/21 Tal Atlas <swimming.bird@gmail.com>
    g = Group::FirstRun.new
    => #<Group::FirstRun _id: 50d4d991463a994017000026, _type:
    "Group::FirstRun", created_at: nil, updated_at: nil, name: "Welcome",
    cover_item_id: nil, last_post_at: 2012-12-21 21:50:09 UTC>
    g.items.new({user: Tal, group_item: tgi},GroupItem::Clone)
    MOPED: 127.0.0.1:27017 QUERY database=delight_development
    collection=albums selector={"$query"=>{"_id"=>"50d4d991463a994017000026"},
    "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 fields=nil
    (0.3572ms)
    => #<GroupItem::Clone group_item_id: "50aa5c3b463a995b3b000001">
    GroupItem::Clone.new({user: Tal, group_item: tgi})
    => #<GroupItem::Clone group_item_id: "50aa5c3b463a995b3b000001">

    This is really bugging me, can anyone recreate? I can't figure it out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmongoid @
categoriesmongodb, rubyonrails
postedDec 21, '12 at 9:53p
activeDec 27, '12 at 9:43p
posts2
users2
websitemongoid.org
irc#mongoid

2 users in discussion

Durran Jordan: 1 post Tal Atlas: 1 post

People

Translate

site design / logo © 2022 Grokbase