[Rails] Re: I don't know "super".... Sorry for my ignorance

2009-05-09 Thread Arthur Chan
Hi Bjørn, thanks for your direction. The question is created by one bug in my program - I wanna use the super to in my overriding "find_by_email" functions. I found that I can override it the first time, but afterwards, the super class method is called instead (skipped my overriding code tota

[Rails] Re: I don't know "super".... Sorry for my ignorance

2009-05-08 Thread Bjørn Arild Mæland
> Hi All, > > Today, when I debug, I found that I don't understand a very basic > function "super". > > > > class User < ActiveRecord::Base > def self.columns >puts "here." >@ret = super >return @ret > end > > end > > > This return only one line of "here