Changeset 351

Show
Ignore:
Timestamp:
03/13/09 12:29:53 (10 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/app/controllers/repository_controller.rb

    r335 r351  
    1616      #create a model repository passing the repository's id, title and enableness  
    1717      if repository.title == params[:title] 
    18         repository.limit=params[:limit] 
     18         
     19        repository.limit=params[:limit].rstrip 
     20        repository.limit=nil if repository.limit == 0 || repository.limit =='' 
     21        puts repository.limit 
    1922      end 
    2023    end        
     
    4851      adapter = ConnectionPool.add_data_source :type => :sparql,:engine => :sesame2, :url => params[:uri], :results => :sparql_xml, :caching =>true 
    4952      adapter.title=params[:title]     
    50       adapter.limit=params[:limit]  if params[:limit] != nil    
     53      adapter.limit=params[:limit]  if params[:limit] != nil && params[:limit].rstrip != ''   
    5154      session[:addrepositories]<<adapter 
    5255    session[:disablerepositories] << (params[:title])