<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,8 +1,5 @@
 class Group &lt; ActiveRecord::Base
-  
-  acts_as_taggable      
-  seo_urls      
-  
+
   belongs_to :author, :class_name =&gt; 'User', :foreign_key =&gt; 'user_id'
 
   has_many :memberships
@@ -19,6 +16,9 @@ class Group &lt; ActiveRecord::Base
   has_many :moderators, :through =&gt; :moderator_memberships, :source =&gt; :user,
                         :conditions =&gt; ['memberships.state = ?', 'active']
 
+  validates_uniqueness_of :name
+  validates_presence_of :name
+  validates_presence_of :author
 
   file_column :image, :root_path =&gt; File.join(RAILS_ROOT, &quot;public/system/group_photos&quot;), :web_root =&gt; 'system/group_photos/', :magick =&gt; {
       :versions =&gt; {
@@ -30,6 +30,9 @@ class Group &lt; ActiveRecord::Base
   }
 
   record_activity_of :user
+  acts_as_abusable
+  acts_as_taggable      
+  seo_urls      
 
   acts_as_state_machine :initial =&gt; :pending
   state :pending, :enter =&gt; :make_activation_code
@@ -38,9 +41,6 @@ class Group &lt; ActiveRecord::Base
     transitions :from =&gt; :pending, :to =&gt; :active
   end
 
-  validates_uniqueness_of :name
-  validates_presence_of :name
-  validates_presence_of :author
 
   def membership_of(user)
     mem = memberships.select{|m| m.user == user}</diff>
      <filename>app/models/group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,13 @@
 class Membership &lt; ActiveRecord::Base
+
   belongs_to :group
   belongs_to :user
   
   record_activity_of :user
   
   acts_as_state_machine :initial =&gt; :pending
-  
   state :pending, :enter =&gt; :make_activation_code
   state :active, :enter =&gt; :do_activate
-  
   event :activate do
     transitions :from =&gt; :pending, :to =&gt; :active
   end</diff>
      <filename>app/models/membership.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,7 @@
 class Profile &lt; ActiveRecord::Base
+
   belongs_to :user
   
-  record_activity_of :user
-  
-  file_column :icon, :root_path =&gt; File.join(RAILS_ROOT, &quot;public/system/profile&quot;), :web_root =&gt; 'system/profile/', :magick =&gt; {
-    :versions =&gt; {
-      :big    =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.big&quot;],    :name =&gt; &quot;big&quot;},
-      :medium =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.medium&quot;], :name =&gt; &quot;medium&quot;},
-      :small  =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.small&quot;],  :name =&gt; &quot;small&quot;},
-      :tiny   =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.tiny&quot;],   :name =&gt; &quot;tiny&quot;}
-    }
-  }
-
   has_many :friendships_by_others, :class_name =&gt; &quot;Friendship&quot;, :foreign_key =&gt; 'invited_id', :conditions =&gt; &quot;status = #{Friendship::ACCEPTED}&quot;
   has_many :friendships_by_me, :class_name =&gt; &quot;Friendship&quot;, :foreign_key =&gt; 'inviter_id', :conditions =&gt; &quot;status = #{Friendship::ACCEPTED}&quot;
 
@@ -26,7 +16,17 @@ class Profile &lt; ActiveRecord::Base
 
   before_create :set_default_icon
 
-
+  file_column :icon, :root_path =&gt; File.join(RAILS_ROOT, &quot;public/system/profile&quot;), :web_root =&gt; 'system/profile/', :magick =&gt; {
+    :versions =&gt; {
+      :big    =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.big&quot;],    :name =&gt; &quot;big&quot;},
+      :medium =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.medium&quot;], :name =&gt; &quot;medium&quot;},
+      :small  =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.small&quot;],  :name =&gt; &quot;small&quot;},
+      :tiny   =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; Tog::Config[&quot;plugins.tog_social.profile.image.versions.tiny&quot;],   :name =&gt; &quot;tiny&quot;}
+    }
+  }
+  record_activity_of :user
+  acts_as_abusable
+  
   def friends
     # Reload associations just to make sure we're working with the current staff. Bad smell!
     # todo check this... if we don't should reload the relationship to get the test working...</diff>
      <filename>app/models/profile.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9d5691331f13e964d90f22b723b21a4d30c3e465</id>
    </parent>
  </parents>
  <author>
    <name>Aitor Garc&#237;a</name>
    <email>aitor.garcia@gmail.com</email>
  </author>
  <url>http://github.com/tog/tog_social/commit/7f523370e8fa908fa7a730fd2d3fabbfcf562fb9</url>
  <id>7f523370e8fa908fa7a730fd2d3fabbfcf562fb9</id>
  <committed-date>2008-09-18T09:45:21-07:00</committed-date>
  <authored-date>2008-09-18T09:45:21-07:00</authored-date>
  <message>A group and a profile could infringe the terms of use</message>
  <tree>acca6249c15ce057ec91f2bb1cc206c33b06df9a</tree>
  <committer>
    <name>Aitor Garc&#237;a</name>
    <email>aitor.garcia@gmail.com</email>
  </committer>
</commit>
