search for: destroy_history

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

2006 Apr 06
7
LoginSystem : make @session available to models
...on self.class.session end end end Is this code OK ? --- Now that this framework is set, I can store who did what on what on any database update : (In controllers/application.rb) class ActiveRecord::Base after_update :update_history after_create :create_history before_destroy :destroy_history def update_history history (''update'') end def create_history history (''create'') end def destroy_history history (''destroy'') end def history(action) unless kind_of?(History) history = History.new(:action =>...