<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>how-to-model-update_all-in-mongodb &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/how-to-model-update_all-in-mongodb/</link>
	<description>Feed of posts on WordPress.com tagged "how-to-model-update_all-in-mongodb"</description>
	<pubDate>Thu, 23 May 2013 09:10:44 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[How to update all in mongoid]]></title>
<link>http://rifkifauzi.wordpress.com/2012/03/04/how-to-update-all-in-mongoid/</link>
<pubDate>Sun, 04 Mar 2012 03:23:10 +0000</pubDate>
<dc:creator>kubid</dc:creator>
<guid>http://rifkifauzi.wordpress.com/2012/03/04/how-to-update-all-in-mongoid/</guid>
<description><![CDATA[in Active record we simply use Model.update_all() then how we do that in mongoid ? simple.. use coll]]></description>
<content:encoded><![CDATA[<p>in Active record we simply use <a href="http://apidock.com/rails/ActiveRecord/Base/update_all/class" target="_blank">Model.update_all()</a> then how we do that in mongoid ?<br />
simple.. use <a href="http://www.mongodb.org/display/DOCS/Updating" target="_blank">collection.update</a>, example:</p>
<pre class="brush: ruby; title: ; notranslate" title="">Article.collection.update({:user_id =&#62; self.id}, {&#34;$set&#34; =&#62; {:status =&#62; self.status}}, {:multi =&#62; true})</pre>
]]></content:encoded>
</item>

</channel>
</rss>
