<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>public/avatars/original/missing.png</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -8,8 +8,9 @@ class ProjectsController &lt; ApplicationController
     respond_to do |format|
       format.html # index.html.erb
       format.xml  { render :xml =&gt; @projects }
-      format.fxml  { render :fxml =&gt; @projects.to_fxml(:include =&gt; 
-        {:sprints =&gt; {:include =&gt; {:tasks =&gt; {:methods =&gt; 
+      format.fxml  { render :fxml =&gt; @projects.to_fxml(:root =&gt; Project.to_s.underscore.pluralize,
+        :include =&gt; {:sprints =&gt; {:root =&gt; Sprint.to_s.underscore.pluralize, 
+          :include =&gt; {:tasks =&gt; {:root =&gt; Task.to_s.underscore.pluralize, :methods =&gt; 
           [:total_time, :total_time_today, :total_time_this_week, :total_time_this_month]}}}}) }    
     end
   end</diff>
      <filename>app/controllers/projects_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -62,7 +62,7 @@
       }
 
       private function chooseFile():void {
-        photo = new RubossFileReference;
+        photo = new RubossFileReference(&quot;avatar&quot;);
         photo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler, false, 0, true);
         photo.addEventListener(Event.SELECT, selectFile, false, 0, true);
         photo.addEventListener(Event.CANCEL, cancelBrowse, false, 0, true);</diff>
      <filename>app/flex/pomodo/components/login/LoginScreen.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -22,18 +22,20 @@ class Account &lt; ActiveRecord::Base
   validates_format_of       :email,    :with =&gt; Authentication.email_regex, :message =&gt; Authentication.bad_email_message
 
   has_one :user
+  
+  has_attached_file :avatar, :styles =&gt; {:thumb =&gt; '100x100&gt;'} # doesn't resize for some reason, check!
 
-  has_attachment :content_type =&gt; :image, 
-                 :storage =&gt; :file_system,
-                 :resize_to =&gt; '100x100&gt;',
-                 :path_prefix =&gt; 'public/images/accounts'
+  # has_attachment :content_type =&gt; :image, 
+  #                :storage =&gt; :file_system,
+  #                :resize_to =&gt; '100x100&gt;',
+  #                :path_prefix =&gt; 'public/images/accounts'
 
   cattr_accessor :current_account, :session_token
 
   # HACK HACK HACK -- how to do attr_accessible from here?
   # prevents a user from submitting a crafted form that bypasses activation
   # anything else you want your user to change should be added here.
-  attr_accessible :login, :email, :name, :password, :password_confirmation, :uploaded_data, :session_token
+  attr_accessible :login, :email, :name, :password, :password_confirmation, :session_token, :avatar #:uploaded_data
   
   # Authenticates a user by their login name and unencrypted password.  Returns the user or nil.
   #
@@ -61,7 +63,8 @@ class Account &lt; ActiveRecord::Base
   
   def photo_url
     begin
-      public_filename
+      #public_filename
+      avatar.url(:original)
     rescue
       DEFAULT_PHOTO_URL
     end</diff>
      <filename>app/models/account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,13 +16,19 @@ class CreateAccounts &lt; ActiveRecord::Migration
       t.column :deleted_at,                :datetime
 
       # For attachment_fu
-      t.column :parent_id,  :integer
-      t.column :content_type, :string
-      t.column :filename, :string    
-      t.column :thumbnail, :string 
-      t.column :size, :integer
-      t.column :width, :integer
-      t.column :height, :integer
+      # t.column :parent_id,  :integer
+      # t.column :content_type, :string
+      # t.column :filename, :string    
+      # t.column :thumbnail, :string 
+      # t.column :size, :integer
+      # t.column :width, :integer
+      # t.column :height, :integer
+      
+      # For paperclip
+      t.column :avatar_file_name, :string
+      t.column :avatar_content_type, :string
+      t.column :avatar_file_size, :integer
+      t.column :avatar_updated_at, :datetime
     end
     add_index :accounts, :login, :unique =&gt; true
   end</diff>
      <filename>db/migrate/20081006235620_create_accounts.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,13 +25,10 @@ ActiveRecord::Schema.define(:version =&gt; 20081014021011) do
     t.datetime &quot;activated_at&quot;
     t.string   &quot;state&quot;,                                    :default =&gt; &quot;passive&quot;
     t.datetime &quot;deleted_at&quot;
-    t.integer  &quot;parent_id&quot;
-    t.string   &quot;content_type&quot;
-    t.string   &quot;filename&quot;
-    t.string   &quot;thumbnail&quot;
-    t.integer  &quot;size&quot;
-    t.integer  &quot;width&quot;
-    t.integer  &quot;height&quot;
+    t.string   &quot;avatar_file_name&quot;
+    t.string   &quot;avatar_content_type&quot;
+    t.integer  &quot;avatar_file_size&quot;
+    t.datetime &quot;avatar_updated_at&quot;
   end
 
   add_index &quot;accounts&quot;, [&quot;login&quot;], :name =&gt; &quot;index_accounts_on_login&quot;, :unique =&gt; true</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>public/bin/Pomodo.swf</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ dima:
   activation_code:           1b6453892473a467d07372d45eb05abc2031647a
   activated_at:              
   state:                     active
-  attachment_file:           test/images/dima.png
+  #attachment_file:           test/images/dima.png
 
 peter:
   login:                     peter
@@ -46,5 +46,4 @@ aaron:
   remember_token:            
   activation_code:           1b6453892473a467d07372d45eb05abc2031647a
   activated_at:              
-
   state:                     active</diff>
      <filename>test/fixtures/accounts.yml</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>public/bin/assets/Knob Valid Blue.png</filename>
    </removed>
    <removed>
      <filename>public/bin/assets/Knob Valid Green.png</filename>
    </removed>
    <removed>
      <filename>public/bin/assets/story_editor_icon.png</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>45134ccd9b2845aea926567f5059ce03db1453e8</id>
    </parent>
  </parents>
  <author>
    <name>Dima Berastau</name>
    <email>dima@ruboss.com</email>
  </author>
  <url>http://github.com/dima/pomodo_on_rails/commit/54e29bc44839157d86e643afaa26196beeb8ea04</url>
  <id>54e29bc44839157d86e643afaa26196beeb8ea04</id>
  <committed-date>2008-12-13T12:21:03-08:00</committed-date>
  <authored-date>2008-12-13T12:21:03-08:00</authored-date>
  <message>Switched to paperclip instead of attachment_fu. Made sure project
controller specified :root option (it can return empty result sets).</message>
  <tree>9c772a5598aeb164548dd51f9d79c3b0d5db6127</tree>
  <committer>
    <name>Dima Berastau</name>
    <email>dima@ruboss.com</email>
  </committer>
</commit>
