<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,7 @@
-  
+  * Aliased Methods named_scope search to ext_search and paginate to ext_paginate to avoid conflicts.
+  * Updated the Readme
+  * Removed an unusued back_to helper
+  * Fixed a bug with simple_error_messages_for [joe1chen]
   * Fixed a bug in generators on Windows [Paolo Angelini]
 
 2009-09-09</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -69,5 +69,5 @@ Please contribute in coding, patch, and submitting translation api documentation
 
 Official Site can be found here:: http://www.lipsiadmin.com
 Community can be found here:: http://groups.google.com/group/lipsiadmin
-Api documentation can be found here:: http://api.lipsiasoft.com
+Api documentation can be found here:: http://api.lipsiadmin.com
 Follow us on twitter:: http://twitter.com/daddye
\ No newline at end of file</diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -154,10 +154,12 @@ module Lipsiadmin
         #     store_data(params, :include =&gt; :posts)
         # 
         def store_data(params, options={})
+          # Some can tell me that this method made two identical queries one for count one for paginate.
+          # We don't use the select count because in some circumstances require much time than select *.
           @model.send(:with_scope, :find =&gt; options) do
-            collection           = @model.search(params)
+            collection           = @model.ext_search(params)
             collection_count     = collection.length
-            collection_paginated = collection.paginate(params)
+            collection_paginated = collection.ext_paginate(params)
             { :results =&gt; store_data_from(collection_paginated), :count =&gt; collection_count }
           end
         end</diff>
      <filename>lib/controller/ext.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,14 +8,14 @@ module Lipsiadmin
     # 
     #   Examples:
     #   
-    #     invoices = current_account.store.invoices.with(:order).search(params)
+    #     invoices = current_account.store.invoices.with(:order).ext_search(params)
     #     invoices_count = invoices.size
-    #     invoices_paginated = invoices.paginate(params)
+    #     invoices_paginated = invoices.ext_paginate(params)
     # 
     module UtilityScopes
       def self.included(base)#:nodoc:
         base.class_eval do 
-          named_scope :search, lambda { |params|
+          named_scope :ext_search, lambda { |params|
             order = params[:sort].blank? &amp;&amp; params[:dir].blank? ? nil : &quot;#{params[:sort]} #{params[:dir]}&quot;
             conditions = nil
 
@@ -26,13 +26,21 @@ module Lipsiadmin
 
             { :conditions =&gt; conditions }
           }
-
-          named_scope :paginate, lambda { |params|
+          named_scope :ext_paginate, lambda { |params|
             order = params[:sort].blank? &amp;&amp; params[:dir].blank? ? nil : &quot;#{params[:sort]} #{params[:dir]}&quot;
             { :order =&gt; order, :limit =&gt; params[:limit], :offset =&gt; params[:start] }
           }
-
           named_scope :with, lambda { |*associations| { :include =&gt; associations } }
+          
+          # You or your plugins (ex: will_paginate) now can override the search/paginate
+          # at the moment we can't remove them for backward compatibility.
+          (class &lt;&lt; self; self end).instance_eval do
+            %w(search paginate).each do |name|
+              define_method name do |*args|
+                send(&quot;ext_#{name}&quot;, *args)
+              end
+            end
+          end
         end
       end
     end</diff>
      <filename>lib/data_base/utility_scopes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -179,11 +179,6 @@ module Lipsiadmin
           I18n.t(&quot;activerecord.attributes.#{instance}.#{method}&quot;, :default =&gt; method.to_s.humanize)
         end
         
-        # Store the location to come back from for example an extjs grid
-        def back_to(location)
-          content_tag(:script, &quot;Backend.app.backTo(#{url_for(location)})&quot;, :type =&gt; Mime::JS)
-        end
-        
         # Generate the menu from the Lispiadmin::AccessControl
         def backend_menu
           config = AccountAccess.maps_for(current_account).collect(&amp;:project_modules).flatten.uniq.collect(&amp;:config)</diff>
      <filename>lib/view/helpers/backend_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>add98dc9615b18e3f95b3d03865ea160b5761857</id>
    </parent>
  </parents>
  <author>
    <name>Davide D'Agostino</name>
    <email>DAddYE@MacBook.local</email>
  </author>
  <url>http://github.com/Lipsiasoft/lipsiadmin/commit/c66b8644dd735ece86d35e3f20aa2e96ec930150</url>
  <id>c66b8644dd735ece86d35e3f20aa2e96ec930150</id>
  <committed-date>2009-11-05T09:21:03-08:00</committed-date>
  <authored-date>2009-11-05T09:21:03-08:00</authored-date>
  <message>Aliased Methods named_scope search to ext_search and paginate to ext_paginate to avoid conflicts.
Updated the Readme
Removed an unusued back_to helper</message>
  <tree>f133396ecf14e7dc3e6e2e0dff37b2af1a8b7376</tree>
  <committer>
    <name>Davide D'Agostino</name>
    <email>DAddYE@MacBook.local</email>
  </committer>
</commit>
