<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ module IsRateable
   def self.included(base)
     base.extend(ClassMethods)
   end
-  
+
   module ClassMethods
     # Add this method to your model
     #
@@ -15,11 +15,11 @@ module IsRateable
     def is_rateable(options={})
       include InstanceMethods
       has_many :ratings, :as =&gt; :rateable
-      
+
       cattr_accessor :minimum_rating_allowed, :maximum_rating_allowed
       self.minimum_rating_allowed = options[:from] || 1
       self.maximum_rating_allowed = options[:upto] || 5
-      
+
     end
   end
 
@@ -35,11 +35,11 @@ module IsRateable
     def rating_range
       minimum_rating_allowed..maximum_rating_allowed
     end
-    
+
     def rate(value, options={})
       ratings.create({ :value =&gt; value }.merge(options))
     end
-    
+
     def rating_in_words
       case rating
       when 0
@@ -56,7 +56,7 @@ module IsRateable
         &quot;five&quot;
       else
         rating.to_s
-      end      
+      end
     end
   end
 
@@ -82,10 +82,9 @@ module IsRateable
     def render_ajax_rating(record)
       content_tag(:ul, :class =&gt;  &quot;rating #{record.rating_in_words}star&quot;) do
         (record.minimum_rating_allowed..record.maximum_rating_allowed).map do |i|
-          content_tag(:li, link_to_remote(i, 
+          content_tag(:li, link_to_remote(i,
                       :url =&gt; { :controller =&gt; record.class.to_s.downcase.pluralize, :id =&gt; record.to_param, :action =&gt; &quot;rate&quot;, :rating =&gt; i  },
-                      :loading =&gt; &quot;Element.show('spinner')&quot;,
-                      :complete =&gt; { :success =&gt; &quot;Element.show('success_rating')&quot; }),
+                      :loading =&gt; &quot;Element.show('spinner')&quot;),
                       :class =&gt; &quot;rating-#{i}&quot;)
         end.join(&quot;\n&quot;)
       end</diff>
      <filename>lib/is_rateable.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>33e0a0b843370632c560cedd2d4dac4462acd1b1</id>
    </parent>
  </parents>
  <author>
    <name>Mateus Linhares</name>
    <email>mlinhares@ikwa.com.br</email>
  </author>
  <url>http://github.com/zachinglis/is_rateable/commit/7c3fe0090cf8522334b3c35eb86a9fcccef150a9</url>
  <id>7c3fe0090cf8522334b3c35eb86a9fcccef150a9</id>
  <committed-date>2009-06-09T13:28:32-07:00</committed-date>
  <authored-date>2009-06-09T07:04:31-07:00</authored-date>
  <message>Refactoring is_rateable

Signed-off-by: Zach Inglis &lt;zach@lt3media.com&gt;</message>
  <tree>74d65a92259aa7ec4150ef9a647747b92aafcb95</tree>
  <committer>
    <name>Zach Inglis</name>
    <email>zach@lt3media.com</email>
  </committer>
</commit>
