Changeset 842

Show
Ignore:
Timestamp:
10/29/07 19:35:34 (6 years ago)
Author:
cho45
Message:

lang/ruby/Amalgam/user-plugins/firefox_places.rb:

余計なことしていたのを削除

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/Amalgam/user-plugins/firefox_places.rb

    r841 r842  
    3838 
    3939        def filter(cand, text) 
    40                 MozPlaces.find(:all, :conditions => ["url like ?", "%#{text}%"], :limit => 10, :order => "visit_count DESC").sort_by {|i| 
    41                         -i.visit_count 
    42                 }.map {|place| 
     40                MozPlaces.find(:all, :conditions => ["url like ?", "%#{text}%"], :limit => 10, :order => "visit_count DESC").map {|place| 
    4341                        Candidate.new(place.url.sub(%r|^http://|, ""), place.title, @icon) do 
    4442                                system "open", "-a", "Firefox", place.url