search for: foolog

Displaying 1 result from an estimated 1 matches for "foolog".

Did you mean: fofolog
2006 Jun 01
0
question about observer callbacks
...destroy(model) model.log("DESTROYED " + Time.now.strftime("%m-%d-%Y %H:%M")) end end and in each model I have a log method to log certain information to a corresponding log table in the database class Foo < ActiveRecord::Base has_many :logs, :class_name => "FooLog" def log(msg) fl = FooLog.new fl.message = msg logs << fl end end now, what i would like to do is customize the message beyond ''CREATED", ''UPDATED'' or ''DESTROYED". I''d like my messages to be more robust beyond the...