avatar

28

activity log returns nil on errors from methods which call an association

by abloke, 02 Feb, 2007 10:46 AM
27 28  
1111         "You must set a :method in the options to use this") : 
1212       the_culprit
1313   rescue
14     return "anonymous"
14     return nil
1515   end
1616   
1717   alias the_referenced referenced
------
2222         "You must set a :method in the options to use this") :
2323         the_referenced
2424   rescue
25     return "anonymous"  
25     return nil
2626   end
2727 
2828   alias the_activity_loggable activity_loggable
------
3333         "You must set a :method in the options to use this") :
3434         the_activity_loggable
3535   rescue
36     return "anonymous"  
36     return nil
3737   end
3838   
3939   def self.latest(limit=5)