Changeset 318

Show
Ignore:
Timestamp:
03/02/09 12:16:06 (10 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/app/helpers
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/app/helpers/explorator_helper.rb

    r274 r318  
    2323    @size =  resources.size() 
    2424    if((@filter!=nil)&&(@filter!="")) 
    25       resources =   resources.select {|x|  
    26          
    27         render_resource(x).to_s().downcase.index(@filter.downcase) != nil} 
     25      resources =   resources.select {|x|          
     26        render_resource(x).to_s().downcase.index(@filter.downcase) != nil 
     27      } 
    2828      @size = resources.size() 
    2929      return resources 
    30     end 
    31      
     30  end 
     31   
    3232    resources = resources[@resourceset.offset.to_i,@resourceset.pagination.to_i] 
    33   
     33      
    3434    resources 
    3535  end