<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>generators/authenticated/templates/features/accounts.feature</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/sessions.feature</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/step_definitions/ra_env.rb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/step_definitions/ra_navigation_steps.rb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/step_definitions/ra_resource_steps.rb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/step_definitions/ra_response_steps.rb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/step_definitions/rest_auth_features_helper.rb</filename>
    </added>
    <added>
      <filename>generators/authenticated/templates/features/step_definitions/user_steps.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -103,8 +103,8 @@ class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
         m.directory File.join('spec/models', class_path)
         m.directory File.join('spec/helpers', model_controller_class_path)
         m.directory File.join('spec/fixtures', class_path)
-        m.directory File.join('stories', model_controller_file_path)
-        m.directory File.join('stories', 'steps')
+        m.directory 'features'
+        m.directory File.join('features', 'step_definitions')
       else
         m.directory File.join('test/functional', controller_class_path)
         m.directory File.join('test/functional', model_controller_class_path)
@@ -174,23 +174,23 @@ class AuthenticatedGenerator &lt; Rails::Generator::NamedBase
                                class_path,
                               &quot;#{table_name}.yml&quot;)
 
-        # RSpec Stories
-        m.template  'stories/steps/ra_navigation_steps.rb',
-         File.join('stories/steps/ra_navigation_steps.rb')
-        m.template  'stories/steps/ra_response_steps.rb',
-         File.join('stories/steps/ra_response_steps.rb')
-        m.template  'stories/steps/ra_resource_steps.rb',
-         File.join('stories/steps/ra_resource_steps.rb')
-        m.template  'stories/steps/user_steps.rb',
-         File.join('stories/steps/', &quot;#{file_name}_steps.rb&quot;)
-        m.template  'stories/users/accounts.story',
-         File.join('stories', model_controller_file_path, 'accounts.story')
-        m.template  'stories/users/sessions.story',
-         File.join('stories', model_controller_file_path, 'sessions.story')
-        m.template  'stories/rest_auth_stories_helper.rb',
-         File.join('stories', 'rest_auth_stories_helper.rb')
-        m.template  'stories/rest_auth_stories.rb',
-         File.join('stories', 'rest_auth_stories.rb')
+        # Cucumber features
+        m.template  'features/step_definitions/ra_navigation_steps.rb',
+         File.join('features/step_definitions/ra_navigation_steps.rb')
+        m.template  'features/step_definitions/ra_response_steps.rb',
+         File.join('features/step_definitions/ra_response_steps.rb')
+        m.template  'features/step_definitions/ra_resource_steps.rb',
+         File.join('features/step_definitions/ra_resource_steps.rb')
+        m.template  'features/step_definitions/user_steps.rb',
+         File.join('features/step_definitions/', &quot;#{file_name}_steps.rb&quot;)
+        m.template  'features/accounts.feature',
+         File.join('features', 'accounts.feature')
+        m.template  'features/sessions.feature',
+         File.join('features', 'sessions.feature')
+        m.template  'features/step_definitions/rest_auth_features_helper.rb',
+         File.join('features', 'step_definitions', 'rest_auth_features_helper.rb')
+        m.template  'features/step_definitions/ra_env.rb',
+         File.join('features', 'step_definitions', 'ra_env.rb')
 
       else
         m.template 'test/functional_test.rb',</diff>
      <filename>generators/authenticated/authenticated_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 module AuthenticatedTestHelper
   # Sets the current &lt;%= file_name %&gt; in the session from the &lt;%= file_name %&gt; fixtures.
   def login_as(&lt;%= file_name %&gt;)
-    @request.session[:&lt;%= file_name %&gt;_id] = &lt;%= file_name %&gt; ? &lt;%= table_name %&gt;(&lt;%= file_name %&gt;).id : nil
+    @request.session[:&lt;%= file_name %&gt;_id] = &lt;%= file_name %&gt; ? (&lt;%= file_name %&gt;.is_a?(&lt;%= file_name.camelize %&gt;) ? &lt;%= file_name %&gt;.id : &lt;%= table_name %&gt;(&lt;%= file_name %&gt;).id) : nil
   end
 
   def authorize_as(&lt;%= file_name %&gt;)</diff>
      <filename>generators/authenticated/templates/authenticated_test_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -55,9 +55,9 @@ class &lt;%= class_name %&gt; &lt; ActiveRecord::Base
   #
   def self.authenticate(login, password)
     return nil if login.blank? || password.blank?
-    u = &lt;% if    options[:stateful]           %&gt;find_in_state :first, :active, :conditions =&gt; {:login =&gt; login}&lt;%
+    u = &lt;% if    options[:stateful]           %&gt;find_in_state :first, :active, :conditions =&gt; {:login =&gt; login.downcase}&lt;%
            elsif options[:include_activation] %&gt;find :first, :conditions =&gt; ['login = ? and activated_at IS NOT NULL', login]&lt;%
-           else %&gt;find_by_login(login)&lt;% end %&gt; # need to get the salt
+           else %&gt;find_by_login(login.downcase)&lt;% end %&gt; # need to get the salt
     u &amp;&amp; u.authenticated?(password) ? u : nil
   end
 </diff>
      <filename>generators/authenticated/templates/model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-# -*- coding: mule-utf-8 -*-
+# -*- coding: utf-8 -*-
 module Authentication
   module ByCookieToken
     # Stuff directives into including module </diff>
      <filename>lib/authentication/by_cookie_token.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>generators/authenticated/templates/stories/rest_auth_stories.rb</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/rest_auth_stories_helper.rb</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/steps/ra_navigation_steps.rb</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/steps/ra_resource_steps.rb</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/steps/ra_response_steps.rb</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/steps/user_steps.rb</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/users/accounts.story</filename>
    </removed>
    <removed>
      <filename>generators/authenticated/templates/stories/users/sessions.story</filename>
    </removed>
    <removed>
      <filename>install.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>700e02b804247a3073d5362ddec47d9af2319dc1</id>
    </parent>
    <parent>
      <id>2ae4c22f5a42100458f8be89c9f366b4099a4451</id>
    </parent>
  </parents>
  <author>
    <name>Diego Carrion</name>
    <email>dc.rec1@gmail.com</email>
  </author>
  <url>http://github.com/dcrec1/restful-authentication-i18n/commit/2884f0a395a1d1ccd1211c9cb03b2b6f101be595</url>
  <id>2884f0a395a1d1ccd1211c9cb03b2b6f101be595</id>
  <committed-date>2009-02-25T18:38:54-08:00</committed-date>
  <authored-date>2009-02-25T18:38:54-08:00</authored-date>
  <message>fixed conflicts</message>
  <tree>32b45118af677b681e326419b6c9f59f20d4f421</tree>
  <committer>
    <name>Diego Carrion</name>
    <email>dc.rec1@gmail.com</email>
  </committer>
</commit>
