search for: create_history

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

2006 Apr 06
7
LoginSystem : make @session available to models
...) end end def session 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) h...