search for: log_user_sav

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

Did you mean: log_user_save
2006 Jul 20
0
Custom Rails Application Logging
...doesn''t have access to the application''s ''session'' variable. There are two ways I can see I can go about solving this (neither of which I know how to do). One, I find a way to specify parameters to my method I reference in my call back ie: "before_save :log_user_save(session[:user], self)" (syntax??) Two, I put my module somewhere else so that my models can access it and the module has access to the ''session'' variable (probably what I am going to have to do). It would be nice if I can keep it in the ''/lib'' director...