<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/admin/configurations_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/products_controller.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -37,7 +37,7 @@ task :stats =&gt; &quot;spec:statsetup&quot;
 desc &quot;Run all specs in spec directory&quot;
 Spec::Rake::SpecTask.new(:spec) do |t|
   t.spec_opts = ['--options', &quot;\&quot;#{extension_root}/spec/spec.opts\&quot;&quot;]
-  t.spec_files = FileList['spec/**/*_spec.rb']
+  t.spec_files = FileList[&quot;#{extension_root}/spec/**/*_spec.rb&quot;]
 end
 
 namespace :spec do</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -6,98 +6,7 @@ class SearchExtension &lt; Spree::Extension
   description &quot;Search and sort extension for spree.&quot;
   url &quot;http://github.com/edmundo/spree-search/tree/master&quot;
 
-  # Testing route.
-  define_routes do |map|
-    map.search_test '/search/test', :controller =&gt; 'searches', :action =&gt; 'test'
-  end
-
-  define_routes do |map|
-    map.resources :searches
-  end
-
   def activate
-# Uncomment those methods to make the simple search work for products and inside taxons
-#    ProductsController.class_eval do
-#      private
-#      
-#      def collection
-#        products_per_page = 20
-#
-#        search = Search.new({
-#          :taxon_id =&gt; params[:taxon],
-#          :min_price =&gt; params[:min_price],
-#          :max_price =&gt; params[:max_price],
-#          :keywords =&gt; params[:search]
-#        })
-#        # Verify if theres any ondition.
-#        conditions = search.conditions
-#        if conditions == [&quot;&quot;]
-#          conditions = &quot;&quot;
-#        end
-#    
-#        # Define what is allowed.
-#        sort_params = {
-#          &quot;price_asc&quot; =&gt; &quot;master_price ASC&quot;,
-#          &quot;price_desc&quot; =&gt; &quot;master_price DESC&quot;,
-#          &quot;date_asc&quot; =&gt; &quot;available_on ASC&quot;,
-#          &quot;date_desc&quot; =&gt; &quot;available_on DESC&quot;,
-#          &quot;name_asc&quot; =&gt; &quot;name ASC&quot;,
-#          &quot;name_desc&quot; =&gt; &quot;name DESC&quot;
-#        }
-#        # Set it to what is allowed or default.
-#        @sort_by = sort_params[params[:sort]] || &quot;available_on DESC&quot;
-#        
-#        @search_param = &quot;- #{:searching_by.l_with_args({ :search_term =&gt; params[:search] })}&quot; if params[:search]
-#        
-#        @collection ||= Product.active.by_name(params[:search]).find(
-#          :all,
-#          :conditions =&gt; conditions,
-#          :order =&gt; @sort_by,
-#          :page =&gt; {:start =&gt; 1, :size =&gt; products_per_page, :current =&gt; params[:p]},
-#          :include =&gt; :images)
-#      end
-#    end
-#
-#    TaxonsController.class_eval do
-#      private
-#      
-#      def load_data
-#        products_per_page = 20
-#    
-#        search = Search.new({
-#          :taxon_id =&gt; params[:taxon],
-#          :min_price =&gt; params[:min_price],
-#          :max_price =&gt; params[:max_price],
-#          :keywords =&gt; params[:search]
-#        })
-#        # Verify if theres any ondition.
-#        conditions = search.conditions
-#        if conditions == [&quot;&quot;]
-#          conditions = &quot;&quot;
-#        end
-#    
-#        # Define what is allowed.
-#        sort_params = {
-#          &quot;price_asc&quot; =&gt; &quot;master_price ASC&quot;,
-#          &quot;price_desc&quot; =&gt; &quot;master_price DESC&quot;,
-#          &quot;date_asc&quot; =&gt; &quot;available_on ASC&quot;,
-#          &quot;date_desc&quot; =&gt; &quot;available_on DESC&quot;,
-#          &quot;name_asc&quot; =&gt; &quot;name ASC&quot;,
-#          &quot;name_desc&quot; =&gt; &quot;name DESC&quot;
-#        }
-#        # Set it to what is allowed or default.
-#        @sort_by = sort_params[params[:sort]] || &quot;available_on DESC&quot;
-#        
-#        @search_param = &quot;- #{:searching_by.l_with_args({ :search_term =&gt; params[:search] })}&quot; if params[:search]
-#        
-#        @products ||= object.products.active.by_name(params[:search]).find(
-#          :all,
-#          :conditions =&gt; conditions,
-#          :order =&gt; @sort_by,
-#          :page =&gt; {:start =&gt; 1, :size =&gt; products_per_page, :current =&gt; params[:p]},
-#          :include =&gt; :images)
-#      end
-#    end
     
     # Add pagination support for the find_by_sql method inside paginating_find plugin.
     PaginatingFind::ClassMethods.class_eval do
@@ -126,13 +35,6 @@ class SearchExtension &lt; Spree::Extension
     # Add support for internationalization to this extension.
     Globalite.add_localization_source(File.join(RAILS_ROOT, 'vendor/extensions/search/lang/ui'))
 
-    # Add the administration link. (Only as a placeholder)
-    Admin::ConfigurationsController.class_eval do
-      before_filter :add_search_link, :only =&gt; :index
-      def add_search_link
-        @extension_links &lt;&lt; {:link =&gt;  '#' , :link_text =&gt; Globalite.localize(:ext_search), :description =&gt; Globalite.localize(:ext_search_description)}
-      end
-    end
   end
   
   def self.require_gems(config)</diff>
      <filename>search_extension.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>703601a847b1e2f556f07bb7f7e3051397e7519a</id>
    </parent>
  </parents>
  <author>
    <name>Edmundo Valle Neto</name>
    <email>edmundo.vn@gmail.com</email>
  </author>
  <url>http://github.com/edmundo/spree-search/commit/d5741807cf03dc2512a8df988e850cf45d19d413</url>
  <id>d5741807cf03dc2512a8df988e850cf45d19d413</id>
  <committed-date>2009-01-16T11:33:29-08:00</committed-date>
  <authored-date>2009-01-16T11:33:29-08:00</authored-date>
  <message>Changed the code from place, putting inside app.</message>
  <tree>d37a4d4e4c72377096940b92c77fcc564d6e0a3b</tree>
  <committer>
    <name>Edmundo Valle Neto</name>
    <email>edmundo.vn@gmail.com</email>
  </committer>
</commit>
