<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/authorization/aasm_roles.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -122,6 +122,8 @@ To use:
   @--skip-migration@ will skip the user migration, and @--skip-routes@ will skip
   resource generation -- both useful if you've already run this generator.
 
+* --aasm: Works the same as stateful but uses the updated aasm gem
+
 * --rspec: Generate RSpec tests and Stories in place of standard rails tests.
   This requires the
     &quot;RSpec and Rspec-on-rails plugins&quot;:http://rspec.info/</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -268,7 +268,11 @@ class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
         puts &quot;- Add an observer to config/environment.rb&quot;
         puts &quot;    config.active_record.observers = :#{file_name}_observer&quot;
       end
-      if options[:stateful]
+      if options[:aasm]
+        puts &quot;- Install the acts_as_state_machine gem:&quot;
+        puts &quot;    sudo gem sources -a http://gems.github.com (If you haven't already)&quot;        
+        puts &quot;    sudo gem install rubyist-aasm&quot;        
+      elsif options[:stateful]
         puts &quot;- Install the acts_as_state_machine plugin:&quot;
         puts &quot;    svn export http://elitists.textdriven.com/svn/plugins/acts_as_state_machine/trunk vendor/plugins/acts_as_state_machine&quot;
       end
@@ -386,6 +390,8 @@ protected
       &quot;Generate signup 'activation code' confirmation via email&quot;) { |v| options[:include_activation] = true }
     opt.on(&quot;--stateful&quot;,
       &quot;Use acts_as_state_machine.  Assumes --include-activation&quot;) { |v| options[:include_activation] = options[:stateful] = true }
+    opt.on(&quot;--aasm&quot;,
+      &quot;Use (gem) aasm.  Assumes --include-activation&quot;)            { |v| options[:include_activation] = options[:stateful] = options[:aasm] = true }      
     opt.on(&quot;--rspec&quot;,
       &quot;Force rspec mode (checks for RAILS_ROOT/spec by default)&quot;) { |v| options[:rspec] = true }
     opt.on(&quot;--no-rspec&quot;,</diff>
      <filename>generators/authenticated/authenticated_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,10 @@ class &lt;%= class_name %&gt; &lt; ActiveRecord::Base
   include Authentication
   include Authentication::ByPassword
   include Authentication::ByCookieToken
-&lt;% if options[:stateful] -%&gt;
+&lt;% if options[:aasm] -%&gt;
+  include Authorization::AasmRoles
+&lt;% elsif options[:stateful] -%&gt;
   include Authorization::StatefulRoles&lt;% end %&gt;
-
   validates_presence_of     :login
   validates_length_of       :login,    :within =&gt; 3..40
   validates_uniqueness_of   :login,    :case_sensitive =&gt; false</diff>
      <filename>generators/authenticated/templates/model.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cff7cbca33d3d1c10f219a7628539712e62bda93</id>
    </parent>
  </parents>
  <author>
    <name>Codafoo</name>
    <email>codafoo@gmail.com</email>
  </author>
  <url>http://github.com/zachinglis/restful-authentication/commit/2d24dae056f4d2b68c69429ed4395cdd8b02efb2</url>
  <id>2d24dae056f4d2b68c69429ed4395cdd8b02efb2</id>
  <committed-date>2008-06-03T05:36:17-07:00</committed-date>
  <authored-date>2008-06-03T05:36:17-07:00</authored-date>
  <message>Add in support for AASM</message>
  <tree>28aae697675b9ba0eafaf664cd966d367bc34772</tree>
  <committer>
    <name>Codafoo</name>
    <email>codafoo@gmail.com</email>
  </committer>
</commit>
