<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -652,19 +652,31 @@ module Ardes#:nodoc:
         @enclosing_collection_resources ||= []
       end
       
-      # Has the resource been saved successfully?
-      # If the record has not had validation attempted, it is saved.
-      # Returns true if the record is not new, and there are no errors
+      # NOTE: This method is overly complicated and unecessary.  It's much clearer just to keep
+      # track of record saves yourself, this is here for BC.  For an example of how it should be
+      # done look at the actions module in http://github.com/ianwhite/response_for_rc
+      #
+      # Has the resource been saved successfully?, if no save has been attempted, save the
+      # record and return the result
+      #
+      # This method uses the @resource_saved tracking var, or the model's state itself if
+      # that is not available (which means if you do resource.update_attributes, then this
+      # method will return the correct result)
       def resource_saved?
-        resource.save unless resource.validation_attempted?
-        resource.saved?
+        save_resource if @resource_saved.nil? &amp;&amp; !resource.validation_attempted?
+        @resource_saved = resource.saved? if @resource_saved.nil?
+        @resource_saved
       end
       
-      # DEPRECATED: just use resource.save
+      # NOTE: it's clearer to just keep track of record saves yourself, this is here for BC
+      # See the comment on #resource_saved?
+      #
+      # @resource_saved = resource.update_attributes(params[resource_name])
+      #
+      # Save the resource, and keep track of the result
       def save_resource
-        resource.save
+        @resource_saved = resource.save
       end
-      deprecate :save_resource =&gt; 'Use resource.save'
       
     private
       # returns the route that was used to invoke this controller and current action.  The path is found first from params[:resource_path]</diff>
      <filename>lib/ardes/resources_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>40174b572fa933173d5d3c1983eaad7da015b13f</id>
    </parent>
  </parents>
  <author>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </author>
  <url>http://github.com/ianwhite/resources_controller/commit/454b4dc8c69bf417edb4a6d2f9ef8847b94ee42c</url>
  <id>454b4dc8c69bf417edb4a6d2f9ef8847b94ee42c</id>
  <committed-date>2008-10-10T17:59:26-07:00</committed-date>
  <authored-date>2008-10-10T17:59:26-07:00</authored-date>
  <message>Removed deprecation warnings from save_resource, and added warnings in the
comments.</message>
  <tree>f76625cf530bfea51fa9b67731351715ef678e40</tree>
  <committer>
    <name>Ian White</name>
    <email>ian.w.white@gmail.com</email>
  </committer>
</commit>
