Changeset 452

Show
Ignore:
Timestamp:
06/03/09 14:59:03 (9 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

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

    r422 r452  
    1414  #return an interval of resources from the offset to the pagination attribute. 
    1515  #This method is used when the user is paginating a set of resources 
    16   def groupBy (type=:s)          
     16  def groupBy (type=:s)    
     17    
    1718    @resourceset.elements.collect{|s,p,o| eval(type.to_s)}.compact.uniq    
    1819  end 
     
    2829      return resources 
    2930    end     
    30  
    31 #    resources = resources[@resourceset.offset.to_i,@resourceset.pagination.to_i] 
    32       
    33   
     31     
     32    #    resources = resources[@resourceset.offset.to_i,@resourceset.pagination.to_i] 
     33     
     34     
    3435    resources = resources.paginate(:page=>@resourceset.offset.to_i,:per_page =>$WILL_PAGINATE_PER_PAGE) 
    3536    resources 
    3637  end 
    37     
     38   
    3839   
    3940  def subjects(predicate, resource=nil)