<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,13 +40,25 @@ This is the equivalent to the following code
         self.state = 'draft'
       end
       
+      def set_draft!
+        update_attribute :state, 'draft'
+      end
+      
       def set_review
         self.state = 'review'
       end
       
+      def set_review!
+        update_attribute :state, 'review'
+      end
+      
       def set_published
         self.state = 'published'
       end
+      
+      def set_published!
+        update_attribute :state, 'published'
+      end
     end
 
 
@@ -63,6 +75,6 @@ Detail
 ### What the options do ###
 
 1. `field_name` specifies the field name the state is stored in, by default this is a field called 'state'
-2. `prefix` added a prefix to the named_scopes as well as the boolean accessors (e.g. draft?)
+2. `prefix` added a prefix to the named_scopes as well as the boolean accessors, state setters (both instant and normal)
 
 Copyright (c) 2009 James Brooks, released under the MIT license</diff>
      <filename>README.markdown</filename>
    </modified>
    <modified>
      <diff>@@ -35,6 +35,9 @@ module ActiveRecord
           
           # Add state setter
           class_eval &quot;def set_#{options[:prefix]}#{state} ; self.#{options[:field_name]} = '#{state}' ; end&quot;
+          
+          # Add instant state setter
+          class_eval &quot;def set_#{options[:prefix]}#{state}! ; update_attribute :#{options[:field_name]}, '#{state}' ; end&quot;
         end
       end
     end</diff>
      <filename>lib/has_states.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5902b9459ef4dfbd5b1bfb3afd487f9dc45925c4</id>
    </parent>
  </parents>
  <author>
    <name>James Brooks</name>
    <email>james@gooddogdesign.com</email>
  </author>
  <url>http://github.com/JamesBrooks/has_states/commit/c2ec785cd2d3c8cf8451a41bf87634d956826c8b</url>
  <id>c2ec785cd2d3c8cf8451a41bf87634d956826c8b</id>
  <committed-date>2009-03-17T21:34:10-07:00</committed-date>
  <authored-date>2009-03-17T21:34:10-07:00</authored-date>
  <message>Added instant state setters, updated documentation with new state setters and the the effect of the prefix on them</message>
  <tree>1666b86d88b680fde6161630ffcc0358a4e22e11</tree>
  <committer>
    <name>James Brooks</name>
    <email>james@gooddogdesign.com</email>
  </committer>
</commit>
