Displaying 2 results from an estimated 2 matches for "kellyf".
Did you mean:
kelly
2005 Aug 08
0
Fwd: help me override ActiveRecord find?
...d, but I
can''t figure out how to do this.
I''ve tried various things. Here is one example:
class Thing < ActiveRecord::Base
alias_method "kellys_find", "find"
def self.find(*args)
print "doing find\n";
kellys_find(args)
end
end
and I get this:
kellyf@sb61g2:/var/www/rl-dev$ script/console
Loading development environment.
irb(main):001:0> t1 = Thing.find(2)
NameError: undefined method `find'' for class `Thing''
from ./script/../config/..//app/models/thing.rb:12:in `alias_method''
from ./script/../config/..//app/models/...
2004 Sep 26
1
samba, wireless, winamp or windows media libraries - slow, hangs
...r/share/samba/panic-action %d
invalid users = root
[homes]
comment = Home Directories
read only = No
create mask = 0700
directory mask = 0700
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[mp3s]
path = /wd/nobackup/home/mp3s/music/audio/
write list = kellyf
force group = +mp3users