Changeset 422

Show
Ignore:
Timestamp:
05/12/09 17:53:52 (9 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

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

    r394 r422  
    2727      @size = resources.size() 
    2828      return resources 
    29   end 
    30    
    31     resources = resources[@resourceset.offset.to_i,@resourceset.pagination.to_i] 
     29    end     
     30 
     31#    resources = resources[@resourceset.offset.to_i,@resourceset.pagination.to_i] 
    3232      
     33  
     34    resources = resources.paginate(:page=>@resourceset.offset.to_i,:per_page =>$WILL_PAGINATE_PER_PAGE) 
    3335    resources 
    3436  end 
     37    
     38   
    3539  def subjects(predicate, resource=nil) 
    3640    @resourceset.elements.collect{|s,p,o| s if  (resource == o || resource == nil) && predicate == p}.compact.uniq