Changeset 355

Show
Ignore:
Timestamp:
03/17/09 17:44:30 (10 years ago)
Author:
samuraraujo
Message:
 
Location:
Explorator/trunk/app/controllers
Files:
2 modified

Legend:

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

    r325 r355  
    1414      session[:disablerepositories]=Array.new 
    1515      session[:disablerepositories] << 'INTERNAL' 
    16       session[:disablerepositories] << 'EXPLORATOR_LOCAL'      
     16      session[:disablerepositories] << 'EXPLORATOR(Local)'      
    1717      session[:addrepositories] = Array.new 
    1818      session[:application] =  Application.new(session.session_id) 
  • Explorator/trunk/app/controllers/repository_controller.rb

    r351 r355  
    100100    adapters.each do |repository| 
    101101      #create a model repository passing the repository's id, title and enableness  
    102       if repository.title!= 'INTERNAL' && (repository.title.index('_LOCAL') || session[:addrepositories].include?(repository)) 
     102      if repository.title!= 'INTERNAL' && (repository.title.index('(Local)') || session[:addrepositories].include?(repository)) 
    103103        @repositories <<  Repository.new(repository.object_id,repository.title, session[:disablerepositories].include?(repository.title),repository.limit) 
    104104      end