public
Description: The web app builder for Rails
Homepage: http://hobocentral.net
Clone URL: git://github.com/tablatom/hobo.git
Fix to autocompleters
tablatom (author)
Fri Jul 25 06:07:19 -0700 2008
commit  c99f473574f38c579c77952573860a1c8886f73d
tree    8436e89ad1a6d0ed0ec2fd1b4a548bed173cdfc2
parent  e4d4b0199431a21a00e3760f02e7c8d329a81430
...
588
589
590
591
 
592
593
594
...
588
589
590
 
591
592
593
594
0
@@ -588,7 +588,7 @@ module Hobo
0
 
0
     def hobo_completions(attribute, finder, options={})
0
       options = options.reverse_merge(:limit => 10, :param => :query)
0
- finder = finder.limit(options[:limit]) unless finder.scope(:find, :limit)
0
+ finder = finder.limit(options[:limit]) unless finder.send(:scope, :find, :limit)
0
       finder = finder.send("#{attribute}_contains", params[options[:param]])
0
       items = finder.find(:all)
0
       render :text => "<ul>\n" + items.map {|i| "<li>#{i.send(attribute)}</li>\n"}.join + "</ul>"

Comments

    No one has commented yet.